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

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

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

    {% if description %}{{description}}{% endif %}

    <form class="general-form" method="post" action=".">{% csrf_token %}
        <fieldset>
            {% for field in form %}
                <p><label>{{field.label}}{% if field.help_text %}:</label><br />
                <span class="form-help">{{field.help_text}}</span> {% else %}:</label> {% endif %}
                {{field}} {% if 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 %}