summaryrefslogtreecommitdiff
path: root/templates/general_form.html
blob: 1fa335136a18913b9aa3ee56887782eb0a9211db (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 %}Arch Linux - {{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 %}