OpenSlides/openslides/assignment/templates/assignment/edit.html

40 lines
1.1 KiB
HTML
Raw Normal View History

2011-07-31 10:46:29 +02:00
{% extends "assignment/base_assignment.html" %}
2012-02-09 16:57:10 +01:00
{% load i18n %}
{% block title %}
{{ block.super }}
{% if assignment %}
{% trans "Edit election" %}
{% else %}
{% trans "New election" %}
{% endif %}
{% endblock %}
2011-07-31 10:46:29 +02:00
{% block content %}
{% if assignment %}
<h1>{% trans "Edit election" %}</h1>
2011-07-31 10:46:29 +02:00
{% else %}
<h1>{% trans "New election" %}</h1>
2011-07-31 10:46:29 +02:00
{% endif %}
<form action="" method="post">{% csrf_token %}
{{ form.as_p }}
<p>
<button class="button" type="submit">
<span class="icon ok">{% trans 'Save' %}</span>
2011-07-31 10:46:29 +02:00
</button>
<button class="button" type="submit" name="apply">
<span class="icon apply">{% trans 'Apply' %}</span>
</button>
2011-07-31 10:46:29 +02:00
<a href='{% url assignment_overview %}'>
<button class="button" type="button" onclick="window.location='{% url assignment_overview %}'">
<span class="icon cancel">{% trans 'Cancel' %}</span>
</button>
2011-07-31 10:46:29 +02:00
</a>
</p>
2012-04-27 08:02:01 +02:00
<small>* {% trans "required" %}</small>
2011-07-31 10:46:29 +02:00
</form>
{% endblock %}