summaryrefslogtreecommitdiff
path: root/templates/general_form.html
blob: 5e620087e9633ef289f679759537086e1d6d7bde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{% extends "base.html" %}
{% block title %}Parabola - {{title}}{% endblock %}

{% block content %}
<div id="generic-form" class="box">

    <h2>{{title}}</h2>

    {{description}}
    {{form.non_field_errors}}

    <form class="general-form" method="post">{% csrf_token %}
        <fieldset>
            {% for field in form %}
            {{field.errors}}
            <p><label for="{{field.auto_id}}">{{field.label}}:</label>
            {% if field.help_text %}<br/><span class="form-help">{{field.help_text}}</span>{% endif %}
            {{field}}
            {% if field.field.required %}<span class="form-req-field">*</span>{% endif %}
            </p>
            {% endfor %}
        </fieldset>
        <p><label></label> <input type="submit" value="{{submit_text}}" /></p>
    </form>

</div>
{% endblock %}