diff options
author | Dusty Phillips <buchuki@gmail.com> | 2008-06-28 00:34:47 +0200 |
---|---|---|
committer | Dusty Phillips <buchuki@gmail.com> | 2008-06-28 00:40:10 +0200 |
commit | 1bd352cb29b47949d68d4f6671e637a43c2ab747 (patch) | |
tree | 93ad7afb19540b2fc020cf9fb15e5ab5f844fa79 /templates/general_form.html | |
parent | 34c744967ac869859778a46e41cbdeebeb150d85 (diff) | |
download | archweb-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.html | 24 |
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 %} |