OpenSlides/openslides/agenda/templates/agenda/edit.html

54 lines
1.7 KiB
HTML
Raw Normal View History

{% extends "base.html" %}
2012-02-09 16:57:10 +01:00
{% load i18n %}
{% block title %}
{{ block.super }}
{% if item %}
{{ item.title }} {% trans "Edit item" %}
{% else %}
{% trans "New item" %}
{% endif %}
{% endblock %}
2011-07-31 10:46:29 +02:00
{% block content %}
<h1>
{% if item %}
{% trans "Edit item" %}
{% else %}
{% trans "New item" %}
{% endif %}
<small class="pull-right">
<a href="{% url item_overview %}" class="btn btn-mini"><i class="icon-chevron-left"></i> {% trans "Back to overview" %}</a>
</small>
</h1>
2011-07-31 10:46:29 +02:00
<form action="" method="post">{% csrf_token %}
{% for field in form %}
<div class="control-group{% if field.errors %} error{% endif%}">
<label for="id_{{ field.name }}">{{ field.label }}{% if field.field.required %}<span class="required">*</span>{% endif %}:</label>
{{ field }}
{% if field.errors %}
<span class="help-inline">{{ field.errors }}</span>
{% endif %}
{% if field.help_text %}
<span class="help-inline">{{ field.help_text }})</span>
{% endif %}
</div>
{% endfor %}
<div class="control-group">
<button class="btn btn-primary" type="submit">
{% trans 'Save' %}
</button>
<button class="btn" type="submit" name="apply">
{% trans 'Apply' %}
</button>
<a href='{% url item_overview %}'>
<button class="btn" type="button" onclick="window.location='{% url item_overview %}'">
{% trans 'Cancel' %}</span>
</button>
</a>
</div>
<small>* {% trans "required" %}</small>
2011-07-31 10:46:29 +02:00
</form>
{% endblock %}