summaryrefslogtreecommitdiffstats
path: root/templates/general_form.html
diff options
context:
space:
mode:
authorDusty Phillips <buchuki@gmail.com>2008-06-28 00:34:47 +0200
committerDusty Phillips <buchuki@gmail.com>2008-06-28 00:40:10 +0200
commit1bd352cb29b47949d68d4f6671e637a43c2ab747 (patch)
tree93ad7afb19540b2fc020cf9fb15e5ab5f844fa79 /templates/general_form.html
parent34c744967ac869859778a46e41cbdeebeb150d85 (diff)
downloadarchweb-1bd352cb29b47949d68d4f6671e637a43c2ab747.tar.gz
archweb-1bd352cb29b47949d68d4f6671e637a43c2ab747.tar.xz
use newforms on todo list
Diffstat (limited to 'templates/general_form.html')
-rw-r--r--templates/general_form.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/templates/general_form.html b/templates/general_form.html
new file mode 100644
index 0000000..4c17481
--- /dev/null
+++ b/templates/general_form.html
@@ -0,0 +1,24 @@
+{% extends "base.html" %}
+
+{% block content %}
+ <div class="greybox">
+ <h2 class="title">{{title}}</h2>
+ <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 %}