21 lines
578 B
HTML
21 lines
578 B
HTML
{% extends 'layouts/master.html' %}
|
|
{% block title %}Edit contact{% endblock %}
|
|
{% block body %}
|
|
<h1>Edit contact</h1>
|
|
<form method="post">
|
|
{{ form.csrf_token }}
|
|
{% for field in form %}
|
|
{% if field.label.text != 'CSRF Token' %}
|
|
<div class="form-group{%if field.errors %} has-error{% endif %}">
|
|
{{ field.label }}
|
|
{{ field(class='form-control') }}
|
|
{% for error in field.errors %}
|
|
<span class="help-block">{{ error }}</span>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
{% endfor %}
|
|
<input type="submit" class="btn btn-success" value="Save">
|
|
</form>
|
|
{% endblock %}
|