31 lines
950 B
HTML
31 lines
950 B
HTML
{% extends "agenda/base_agenda.html" %}
|
|
|
|
{% load i18n %}
|
|
|
|
{% block title %}{{ block.super }} - {%trans "Item" %}{% endblock %}
|
|
|
|
{% block content %}
|
|
{% if item %}
|
|
<h1>{%trans "Edit item" %}</h1>
|
|
{% else %}
|
|
<h1>{%trans "New item" %}</h1>
|
|
{% endif %}
|
|
<form action="" method="post">{% csrf_token %}
|
|
{{ form.as_p }}
|
|
<p>
|
|
<button class="button" type="submit">
|
|
<span class="icon ok">{%trans 'Save' %}</span>
|
|
</button>
|
|
<button class="button" type="submit" name="apply">
|
|
<span class="icon apply">{%trans 'Apply' %}</span>
|
|
</button>
|
|
<a href='{% url item_overview %}'>
|
|
<button class="button" type="button" onclick="window.location='{% url item_overview %}'">
|
|
<span class="icon cancel">{%trans 'Cancel' %}</span>
|
|
</button>
|
|
</a>
|
|
</p>
|
|
<small>* {%trans "required" %}</small>
|
|
</form>
|
|
{% endblock %}
|