ADD: add a cleared event status to indicate the financal clearance.

This commit is contained in:
2019-08-29 10:29:14 +02:00
parent 51f276d719
commit cbc69d4589
6 changed files with 95 additions and 5 deletions

View File

@@ -145,6 +145,17 @@
{% trans 'Veröffentlichung bestätigen' %}
</a>
{% endif %}
{% if has_permission_clear %}
<a id="btn-confirmclearance" class="btn btn-sm {% if not is_cleared %}btn-black{% else %}btn-default disabled{% endif %}"
href="{% url 'dav_events:updatestatus' event.pk 'cleared' %}">
{% if is_cleared %}
{% bootstrap_icon 'check' %}&thinsp;
{% else %}
{% bootstrap_icon 'unchecked' %}&thinsp;
{% endif %}
{% trans 'Abgerechnet' %}
</a>
{% endif %}
<a id="btn-clone" class="btn btn-sm btn-primary"
href="{% url 'dav_events:create' %}?copy={{ event.pk }}"
title="{% trans 'Diese Veranstaltung als Vorlage für eine neue Veranstaltung benutzen' %}">