summaryrefslogtreecommitdiff
path: root/templates/general_form.html
blob: 776f36727f6d72bf27c74eddc05325c8c3d9bc0f (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
{% extends "base.html" %}

{% block content %}
	<div class="greybox">
        <h2 class="title">{{title}}</h2>
        {% if description %}{{description}}{% endif %}
		<form method="post" action=".">
		<table>
            {% for field in form %}
                <tr>
                    <td style="vertical-align:top">
                        <span {% if field.required %}style="fontweight: bold"{% endif%}>{{field.label}}:</span>
                        <br /><span style="font-size:x-small">{{field.help_text}}</span></td>
                    <td>{{field}}</td>
                </tr>
            {% endfor %}
            <tr>
				<td colspan="2" style="text-align:right">
                    <input type="submit" value=" {{submit_text}} " />
				</td>
			</tr>
		</table>
		</form>
	</div>
{% endblock %}