summaryrefslogtreecommitdiff
path: root/src/templates/edit.html
blob: dc6cf08e9bbcc17d1daa0da7e597b8aa84ccbb0e (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
{% 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 right"><input type="button" onClick="document.location='{% prefix %}/rooms'" value="{{cancelname}}"/></li>
</ul>
</form>
{% endblock %}