summaryrefslogtreecommitdiff
path: root/templates/general_form.html
diff options
context:
space:
mode:
authorThayer Williams <thayerw@gmail.com>2010-03-16 11:18:45 -0700
committerDan McGee <dan@archlinux.org>2010-05-17 14:49:44 -0500
commit465a74eddb0df7fa8312c8ca2e65596812470922 (patch)
treecdfe578eb4e2a27c058e39dd522ed7c7f0c1f238 /templates/general_form.html
parent7aa129155ff44c0058471358d6a561149ff7d1f0 (diff)
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.html36
1 files changed, 17 insertions, 19 deletions
diff --git a/templates/general_form.html b/templates/general_form.html
index 776f3672..d499919a 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 %}