Created
March 15, 2013 11:29
-
-
Save johnschimmel/5169233 to your computer and use it in GitHub Desktop.
Redisplaying html form with user input and form validation using MongooseJS
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
<label for="thenamebox"> | |
{{#errors.name}} | |
<span class="help-block alert alert-error">{{type}}</span> | |
{{/errors.name}} | |
Name <input type="text" name="name" id="thenamebox" value="{{astro.name}}" required> | |
</label> | |
<label for="birthdate"> | |
{{#errors.birthdate}} | |
<span class="help-block alert alert-error">{{type}}</span> | |
{{/errors.birthdate}} | |
Birthdate <input type="date" name="birthdate" id="birthdate" value="{{astro.birthdate}}"> | |
</label> | |
<!-- add all the other form fields you'll need --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment