diff options
Diffstat (limited to 'src/templates/edit.html')
-rw-r--r-- | src/templates/edit.html | 45 |
1 files changed, 19 insertions, 26 deletions
diff --git a/src/templates/edit.html b/src/templates/edit.html index 961fe66..400a087 100644 --- a/src/templates/edit.html +++ b/src/templates/edit.html @@ -2,31 +2,24 @@ {% load prefix %} {% block content %} {% block beforeform %}{% endblock %} -<form method="POST"> - <div class="ui-widget-content ui-corner-all infopanel"> - <h1>{{formtitle}}</h1> - <table class="formtable"> - {% for field in form %} - <tr style="padding-top: 10px;"> - <td> - {% if not field.is_hidden %} - <div class="ui-widget fieldlabel">{{ field.label_tag }}</div> - {% endif %} - {% if field.errors %} - <div class="ui-widget ui-state-error">{{ field.errors }}</div> - {% endif %} - </td> - <td> - <div class="ui-widget">{{ field }}</div> - </td> - </tr> - {% endfor %} - </table> - </div> - <br/> - <div class="button"> - <input type="submit" value="{{submitname}}" /> - <input type="button" onClick="document.location='{% prefix %}/rooms'" value="Cancel"/> - </div> +<h1>{{formtitle}}</h1> +<form method="POST" class="ui-widget ui-corner-all ui-state-highlight bbq infopanel" style="width: 50%"> +<ul class="links"> + {% for field in form %} + {% if field.is_hidden %} + {{ field }} + {% else %} + <li class="links {% if field.field.required %}required{% endif %}" {{ field.row_attrs }} style="margin-bottom: 10px;"> + {{ field.errors }} + <label for="id_{{ field.html_name }}" class="fieldlabel" style="border-bottom: 1px solid #CECECE;"><em>{{ field.label }}{% if field.field.required %}<b>*</b>{% endif %}</em></label> + <div class="fieldinput">{{ field }}</div> + </li> + {% endif %} + {% endfor %} +</ul> +<ul class="ilist" style="padding-top: 10px; padding-bottom: 5px;"> + <li class="button"><input type="submit" value="{{submitname}}" /></li> + <li class="button right"><input type="button" onClick="document.location='{% prefix %}/rooms'" value="Cancel"/></li> +</ul> </form> {% endblock %}
\ No newline at end of file |