Created
November 11, 2014 09:17
-
-
Save chriswitko/a919fcb82198a013472b to your computer and use it in GitHub Desktop.
Easy contact form in Jade
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extends layout | |
| block content | |
| .container.container-fix | |
| .page-header | |
| h3 Contact Form | |
| form.form-horizontal(role='form', method='POST') | |
| input(type='hidden', name='_csrf', value=_csrf) | |
| .form-group | |
| label(class='col-sm-2 control-label', for='name') Name | |
| .col-sm-8 | |
| input.form-control(type='text', name='name', id='name', autofocus=true) | |
| .form-group | |
| label(class='col-sm-2 control-label', for='email') Email | |
| .col-sm-8 | |
| input.form-control(type='text', name='email', id='email') | |
| .form-group | |
| label(class='col-sm-2 control-label', for='message') Body | |
| .col-sm-8 | |
| textarea.form-control(type='text', name='message', id='message', rows='7') | |
| .form-group | |
| .col-sm-offset-2.col-sm-8 | |
| button.btn.btn-primary(type='submit') | |
| span.ion-paper-airplane | |
| | Send |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment