40 lines
983 B
HTML
40 lines
983 B
HTML
{% extends "chrono/manager_agenda_view.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block extrascripts %}
|
|
{{ block.super }}
|
|
{{ form.media }}
|
|
{% endblock %}
|
|
|
|
{% block breadcrumb %}
|
|
{{ block.super }}
|
|
{% if object.id %}
|
|
<a href="">{{object.label}}</a>
|
|
{% else %}
|
|
<a href="">{% trans "New Desk" %}</a>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block appbar %}
|
|
{% if object.id %}
|
|
<h2>{% trans "Edit Desk" %}</h2>
|
|
<span class="actions">
|
|
<a rel="popup" href="{% url 'chrono-manager-desk-delete' pk=object.id %}">{% trans 'Delete' %}</a>
|
|
</span>
|
|
{% else %}
|
|
<h2>{% trans "New Desk" %}</h2>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<form method="post" enctype="multipart/form-data">
|
|
{% csrf_token %}
|
|
{{ form.as_p }}
|
|
<div class="buttons">
|
|
<button class="submit-button">{% trans "Save" %}</button>
|
|
<a class="cancel" href="{% url 'chrono-manager-agenda-settings' pk=agenda.id %}">{% trans 'Cancel' %}</a>
|
|
</div>
|
|
</form>
|
|
{% endblock %}
|