2011-07-31 10:46:29 +02:00
|
|
|
|
{% extends "agenda/base_agenda.html" %}
|
2012-02-09 16:57:10 +01:00
|
|
|
|
|
|
|
|
|
{% load i18n %}
|
|
|
|
|
|
2012-07-13 00:44:12 +02:00
|
|
|
|
{% 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 %}
|
2012-04-27 21:36:12 +02:00
|
|
|
|
{% if item %}
|
|
|
|
|
<h1>{%trans "Edit item" %}</h1>
|
|
|
|
|
{% else %}
|
|
|
|
|
<h1>{%trans "New item" %}</h1>
|
|
|
|
|
{% endif %}
|
2011-07-31 10:46:29 +02:00
|
|
|
|
<form action="" method="post">{% csrf_token %}
|
|
|
|
|
{{ form.as_p }}
|
2012-04-26 17:50:46 +02:00
|
|
|
|
<p>
|
2011-11-14 19:33:45 +01:00
|
|
|
|
<button class="button" type="submit">
|
2011-07-31 10:46:29 +02:00
|
|
|
|
<span class="icon ok">{%trans 'Save' %}</span>
|
|
|
|
|
</button>
|
2011-11-14 19:33:45 +01:00
|
|
|
|
<button class="button" type="submit" name="apply">
|
2011-09-03 16:20:10 +02:00
|
|
|
|
<span class="icon apply">{%trans 'Apply' %}</span>
|
2011-09-03 12:14:17 +02:00
|
|
|
|
</button>
|
2011-07-31 10:46:29 +02:00
|
|
|
|
<a href='{% url item_overview %}'>
|
2011-11-14 19:33:45 +01:00
|
|
|
|
<button class="button" type="button" onclick="window.location='{% url item_overview %}'">
|
2011-07-31 10:46:29 +02:00
|
|
|
|
<span class="icon cancel">{%trans 'Cancel' %}</span>
|
2011-11-14 19:33:45 +01:00
|
|
|
|
</button>
|
2011-07-31 10:46:29 +02:00
|
|
|
|
</a>
|
2012-04-26 17:50:46 +02:00
|
|
|
|
</p>
|
|
|
|
|
<small>* {%trans "required" %}</small>
|
2011-07-31 10:46:29 +02:00
|
|
|
|
</form>
|
|
|
|
|
{% endblock %}
|