Fix table colors for dry hires

This commit is contained in:
2020-06-24 12:11:11 +01:00
parent b28377e1f5
commit 8a9eefb722
2 changed files with 14 additions and 10 deletions

View File

@@ -9,9 +9,11 @@
{% endif %} {% endif %}
<!-- TODO show invoice stuff here --> <!-- TODO show invoice stuff here -->
{% if not event.dry_hire %}
{% if event.riskassessment %} {% if event.riskassessment %}
<span class="badge badge-success">RA: <i class="fas fa-check"></i></span> <span class="badge badge-success">RA: <i class="fas fa-check"></i></span>
{% else %} {% else %}
<span class="badge badge-danger">RA: <i class="fas fa-times"></i></span> <span class="badge badge-danger">RA: <i class="fas fa-times"></i></span>
{% endif %} {% endif %}
{% endif %} {% endif %}
{% endif %}

View File

@@ -1,5 +1,7 @@
class="{% if event.cancelled %} class="{% if event.cancelled %}
text-muted table-secondary text-muted table-secondary
{% elif event.dry_hire and event.authorised and event.mic %}
table-success
{% elif event.authorised and event.risk_assessment_edit_url and event.mic %} {% elif event.authorised and event.risk_assessment_edit_url and event.mic %}
table-success table-success
{% elif not event.is_rig %} {% elif not event.is_rig %}