Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form method="post">
- {% csrf_token %}
- {% for hidden in form.hidden_fields %}
- {{ hidden }}
- {% endfor %}
- {% for field in form.visible_fields %}
- <div class="form-group">
- <label for="{{ field.id_for_label }}">{{ field.label }}</label>
- {{ field|add_class:'form-control' }}
- {% for error in field.errors %}
- <span class="help-block">{{ error }}</span>
- {% endfor %}
- </div>
- {% endfor %}
- <div class="form-group">
- <button type="submit" class="btn btn-success">
- <span class="glyphicon glyphicon-ok"></span> Save
- </button>
- <a href="{% url 'student_new' %}" class="btn btn-default">Cancel</a>
- </div>
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement