summaryrefslogtreecommitdiff
path: root/src/templates/edit.html
blob: a5986bbc0a0a96a2be6035432c1b496264ec6fde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{% extends "base.html" %}
{% load prefix %}
{% block content %}
{% block beforeform %}{% endblock %}
<h1>{{formtitle}}</h1>
<form method="POST" class="ui-widget ui-corner-all ui-state-highlight bbq infopanel" style="width: 66%">
{% block beforefields %}{% endblock %}
<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"><input type="button" onClick="document.location='{% prefix %}/rooms'" value="Done"/></li>
    <li class="button right"><input type="button" onClick="document.location='{% prefix %}/rooms'" value="Cancel"/></li>
</ul>
</form>
{% endblock %}