Disable auth request button for authorised events

Overrides and closes #377
This commit is contained in:
2022-02-15 00:29:29 +00:00
parent 5215af349a
commit 6c14b30c13
2 changed files with 13 additions and 13 deletions

View File

@@ -9,7 +9,7 @@
{% if event.internal %}
<a class="btn item-add modal-href event-authorise-request
{% if event.authorised %}
btn-success active
btn-success active disabled
{% elif event.authorisation and event.authorisation.amount != event.total and event.authorisation.last_edited_at > event.auth_request_at %}
btn-warning
{% elif event.auth_request_to %}
@@ -18,7 +18,7 @@
btn-secondary
{% endif %}
"
href="{% url 'event_authorise_request' object.pk %}">
{% if event.authorised %}aria-disabled="true"{% else %}href="{% url 'event_authorise_request' object.pk %}"{% endif %}>
<span class="fas fa-paper-plane"></span>
<span class="d-none d-sm-inline">
{% if event.authorised %}