summaryrefslogtreecommitdiff
path: root/src/templates/form.html
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2012-10-02 22:23:54 +0200
committerLeif Johansson <leifj@sunet.se>2012-10-02 22:23:54 +0200
commitec839d583fff6b279c7cdec2fdf87762f81f9aa5 (patch)
tree912507bfc3353ba076ae225a8d40ba14f57d2972 /src/templates/form.html
parent2346efdb58afff79fcfc1d581b0091f32ee6fac1 (diff)
- bootstrap
- cleanup - bugfixes
Diffstat (limited to 'src/templates/form.html')
-rw-r--r--src/templates/form.html62
1 files changed, 32 insertions, 30 deletions
diff --git a/src/templates/form.html b/src/templates/form.html
index 2e1e243..27feb42 100644
--- a/src/templates/form.html
+++ b/src/templates/form.html
@@ -1,38 +1,40 @@
{% extends "base.html" %}
{% load prefix %}
{% block content %}
- <h1>{% block formtitle %}{{formtitle}}{% endblock %}</h1>
+ <div class="page-header">
+ <h1>{% block formtitle %}{{formtitle}}{% endblock %}</h1>
+ </div>
{% block beforeform %}{% endblock %}
- <form method="POST" id="wizard" enctype="multipart/form-data" class="bbq infopanel">
+
+<form method="POST" enctype="multipart/form-data">
{% if form.non_field_errors %}{{ form.non_field_errors }}{% endif %}
+ <div id="wizard">
+ <ol>
+ {% for fieldset in form.fieldsets %}
+ <li>{{ fieldset.legend }}</li>
+ {% endfor %}
+ </ol>
{% for fieldset in form.fieldsets %}
- <fieldset id="{{fieldset.name}}" class="{{ fieldset.classes }}">
- {% if fieldset.legend %}
- <legend class="ui-state-highlight ui-corner-all">{{ fieldset.legend }}</legend>
- {% endif %}
- {% if fieldset.description %}
- <p class="description" style="border-bottom: 1px solid #CECECE; padding-bottom: 5px;">{{ fieldset.description }}</p>
- {% endif %}
- <ul class="links">
- {% for field in fieldset %}
- {% 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>
- </fieldset>
- {% endfor %}
- <ul class="ilist" style="padding-top: 10px; padding-bottom: 5px;">
- <li class="button left"><input type="reset" value="Back"/></li>
- <li class="button left"><input type="submit" value="Finish"/></li>
- <li class="button right"><input type="button" onClick="document.location='{% prefix %}/room'" value="Cancel"/></li>
- </ul>
- <div class="clear"></div>
+ <div id="{{fieldset.name}}" class="{{ fieldset.classes }}">
+ {% if fieldset.description %}
+ <p>{{ fieldset.description }}</p>
+ {% endif %}
+ {% for field in fieldset %}
+ {% if field.is_hidden %}
+ {{ field }}
+ {% else %}
+ {{ field.errors }}
+ <label for="id_{{ field.html_name }}">{{ field.label }}{% if field.field.required %}<b>*</b>{% endif %}</label>
+ {{ field }}
+ {% endif %}
+ {% endfor %}
+ <style type="text/css">
+ .bwizard-steps li > div > input.btn { display: none; }
+ </style>
+ <input class="btn btn-success" type="submit" value="{{ submitname }}" />
+ </div>
+ {% endfor %}
+ </div>
</form>
+
{% endblock %}