FEAT: Add conditional formatting to whole auth panel

Matches the formatting on the button
This commit is contained in:
2020-01-13 21:05:09 +00:00
parent 16b950c3b2
commit 3a25b85e95
2 changed files with 10 additions and 2 deletions

View File

@@ -158,7 +158,15 @@
</div>
{% if event.is_rig and event.internal %}
<div class="col-sm-12">
<div class="panel panel-default">
<div class="panel panel-default
{% if object.authorised %}
panel-success
{% elif event.authorisation and event.authorisation.amount != event.total and event.authorisation.last_edited_at > event.auth_request_at %}
panel-warning
{% elif event.auth_request_to %}
panel-info
{% endif %}
">
<div class="panel-heading">Client Authorisation</div>
<div class="panel-body">
<dl class="dl-horizontal col-sm-6">