diff options
author | Thayer Williams <thayerw@gmail.com> | 2010-03-16 19:18:45 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-05-17 21:49:44 +0200 |
commit | 465a74eddb0df7fa8312c8ca2e65596812470922 (patch) | |
tree | cdfe578eb4e2a27c058e39dd522ed7c7f0c1f238 /templates/general_form.html | |
parent | 7aa129155ff44c0058471358d6a561149ff7d1f0 (diff) | |
download | archweb-465a74eddb0df7fa8312c8ca2e65596812470922.tar.gz archweb-465a74eddb0df7fa8312c8ca2e65596812470922.tar.xz |
Updated generic form for accessibility
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/general_form.html')
-rw-r--r-- | templates/general_form.html | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/templates/general_form.html b/templates/general_form.html index 776f367..d499919 100644 --- a/templates/general_form.html +++ b/templates/general_form.html @@ -1,25 +1,23 @@ {% extends "base.html" %} +{% block title %}Arch Linux - {{title}}{% endblock %} {% block content %} - <div class="greybox"> - <h2 class="title">{{title}}</h2> - {% if description %}{{description}}{% endif %} - <form method="post" action="."> - <table> +<div id="generic-form" class="box"> + + <h2>{{title}}</h2> + + {% if description %}{{description}}{% endif %} + + <form class="general-form" method="post" action="."> + <fieldset> {% 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> + <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 %} - <tr> - <td colspan="2" style="text-align:right"> - <input type="submit" value=" {{submit_text}} " /> - </td> - </tr> - </table> - </form> - </div> + </fieldset> + <p><label></label> <input type="submit" value="{{submit_text}}" /></p> + </form> + +</div> {% endblock %} |