update to new appbar markup (#25933)

This commit is contained in:
Frédéric Péters 2018-08-19 17:34:02 +02:00
parent 33ba0fe29d
commit 2fdf730c05
9 changed files with 18 additions and 0 deletions

View File

@ -22,10 +22,12 @@
{% endwith %}
<a href="{{ view.get_next_day_url }}"></a>
</h2>
<span class="actions">
{% if user_can_manage %}
<a href="{% url 'chrono-manager-agenda-settings' pk=agenda.id %}">{% trans 'Settings' %}</a>
{% endif %}
<a href="" onclick="window.print()">{% trans 'Print' %}</a>
</span>
{% endblock %}
{% block content %}

View File

@ -10,6 +10,7 @@
<h2>{% trans "Settings" %}
<span class="identifier">[{% trans "identifier:" %} {{object.slug}}]</span>
</h2>
<span class="actions">
{% if user.is_staff %}
<a rel="popup" href="{% url 'chrono-manager-agenda-delete' pk=object.id %}">{% trans 'Delete' %}</a>
{% endif %}
@ -23,6 +24,7 @@
<a rel="popup" href="{% url 'chrono-manager-agenda-add-desk' pk=object.id %}">{% trans 'New Desk' %}</a>
{% endif %}
{% endif %}
</span>
{% endblock %}
{% block content %}

View File

@ -8,7 +8,9 @@
{% block appbar %}
<h2>{{ object.label }}</h2>
{% if user_can_manage %}
<span class="actions">
<a href="{% url 'chrono-manager-agenda-settings' pk=object.id %}">{% trans 'Settings' %}</a>
</span>
{% endif %}
{% endblock %}

View File

@ -18,7 +18,9 @@
{% 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 %}

View File

@ -16,7 +16,9 @@
{% block appbar %}
{% if object.id %}
<h2>{% trans "Edit Event" %}</h2>
<span class="actions">
<a rel="popup" href="{% url 'chrono-manager-event-delete' pk=object.id %}">{% trans 'Delete' %}</a>
</span>
{% else %}
<h2>{% trans "New Event" %}</h2>
{% endif %}

View File

@ -4,7 +4,9 @@
{% block appbar %}
<h2>{% trans 'Agendas' %}</h2>
{% if user.is_staff %}
<span class="actions">
<a rel="popup" href="{% url 'chrono-manager-agenda-add' %}">{% trans 'New' %}</a>
</span>
{% endif %}
{% endblock %}

View File

@ -16,7 +16,9 @@
{% block appbar %}
{% if object.id %}
<h2>{% trans "Edit Meeting Type" %}</h2>
<span class="actions">
<a rel="popup" href="{% url 'chrono-manager-meeting-type-delete' pk=object.id %}">{% trans 'Delete' %}</a>
</span>
{% else %}
<h2>{% trans "New Meeting Type" %}</h2>
{% endif %}

View File

@ -18,7 +18,9 @@
{% block appbar %}
{% if object.id %}
<h2>{% trans "Edit time period exception" %}</h2>
<span class="actions">
<a rel="popup" href="{% url 'chrono-manager-time-period-exception-delete' pk=object.id %}">{% trans 'Delete' %}</a>
</span>
{% else %}
<h2>{% trans "New time period exception" %}</h2>
{% endif %}

View File

@ -18,7 +18,9 @@
{% block appbar %}
{% if object.id %}
<h2>{% trans "Edit Time Period" %}</h2>
<span class="actions">
<a rel="popup" href="{% url 'chrono-manager-time-period-delete' pk=object.id %}">{% trans 'Delete' %}</a>
</span>
{% else %}
<h2>{% trans "New Time Period" %}</h2>
{% endif %}