mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-26 09:52:16 +00:00
FEAT: Add conditional formatting to whole auth panel
Matches the formatting on the button
This commit is contained in:
@@ -158,7 +158,15 @@
|
|||||||
</div>
|
</div>
|
||||||
{% if event.is_rig and event.internal %}
|
{% if event.is_rig and event.internal %}
|
||||||
<div class="col-sm-12">
|
<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-heading">Client Authorisation</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<dl class="dl-horizontal col-sm-6">
|
<dl class="dl-horizontal col-sm-6">
|
||||||
|
|||||||
Reference in New Issue
Block a user