Created
January 23, 2017 12:03
-
-
Save dennis90/722f4728408060c83eabd2e71a3883f9 to your computer and use it in GitHub Desktop.
This file contains 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
{% load add_class %} | |
<form method="post"> | |
{% csrf_token %} | |
{{ form.non_field_errors }} | |
{% for field in form %} | |
<div class="form-group"> | |
{{field.label_tag}} | |
{{field | add_class:"form-control"}} | |
{{field.errors}} | |
</div> | |
{% endfor %} | |
<div class="form-group"> | |
<button type="submit" class="btn btn-primary">Cadastrar</button> | |
</div> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment