mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 13:32:15 +00:00
* Add absolute URL to power tests * Update to target Python 3.10 * Return user to current page when clicking 'mark reviewed' * Add units to power test record detail and form I'm a bad scientist (coz I'm an engineer) * Allow a higher value in PSSC fields * Default venue to event venue in EC/PT * Fix population of initial venue values for EC/PT * Add link to create power test from EC detail * Do not set power plan field to required on RA "This might be a problem if the risk assessment is being done by one person and the power plan by another." * Default power MIC to MIC * Implement some suggestions from the Doctor * Prevent checking in to cancelled events and dry hires Will close #539 * Exclude dry hires from H&S overview list * Add "ex VAT" tooltips to asset purchase price and replacement cost * Automagically clear and focus ID field when audit modal closes Closes #533 * Delete unused things * Allow two decimal places in cable length, show training item IDs in selectpicker Will close #540 * Fix #524 500 Error when viewing qualification list for items nobody is qualified in * Update README.md * Add a guard against nulls in recent changes Maybe fixes #537 I'm unable to replicate locally * Turn down verbosity of CI tests, fix tests, potential speedup * Squash migration * Add encoding to open * Update to v3 upload-artifact Resolves a deprecation warning
49 lines
2.7 KiB
HTML
49 lines
2.7 KiB
HTML
<div>
|
|
<span class="badge badge-{% if event.confirmed %}success{% elif event.cancelled %}dark{% else %}warning{% endif %}">Status: {{ event.get_status_display }}</span>
|
|
{% if event.is_rig %}
|
|
{% if event.sum_total > 0 %}
|
|
{% if event.purchase_order %}
|
|
<span class="badge badge-success">PO: {{ event.purchase_order }}</span>
|
|
{% elif event.authorised %}
|
|
<span class="badge badge-success">Authorisation: Complete <span class="fas fa-check"></span></span>
|
|
{% elif event.authorisation and event.authorisation.amount != event.total and event.authorisation.last_edited_at > event.auth_request_at %}
|
|
<span class="badge badge-warning"> Authorisation: Issue <span class="fas fa-exclamation-circle"></span></span>
|
|
{% elif event.auth_request_to %}
|
|
<span class="badge badge-info"> Authorisation: Sent <span class="fas fa-paper-plane"></span></span>
|
|
{% else %}
|
|
<span class="badge badge-danger">Authorisation: <span class="fas fa-times"></span></span>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% if not event.dry_hire %}
|
|
{% if event.riskassessment %}
|
|
<a href="{{ event.riskassessment.get_absolute_url }}"><span class="badge badge-success">RA: <span class="fas fa-check{% if event.riskassessment.reviewed_by %}-double{%endif%}"></span></a>
|
|
{% else %}
|
|
<span class="badge badge-danger">RA: <span class="fas fa-times"></span></span>
|
|
{% endif %}
|
|
{% if event.has_checklist %}
|
|
<span class="badge badge-success">Checklist: <span class="fas fa-check"></span> {% if event.checklists.count > 1 %}({{event.checklists.count}}){% endif %}</span>
|
|
{% else %}
|
|
<span class="badge badge-danger">Checklist: <span class="fas fa-times"></span></span>
|
|
{% endif %}
|
|
{% if event.has_power %}
|
|
<span class="badge badge-success">Power Record: <span class="fas fa-check"></span> {% if event.power_tests.count > 1 %}({{event.power_tests.count}}){% endif %}</span>
|
|
{% else %}
|
|
<span class="badge badge-danger">Power Record: <span class="fas fa-times"></span></span>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% if perms.RIGS.view_invoice %}
|
|
{% if event.invoice %}
|
|
{% if event.invoice.void %}
|
|
<span class="badge badge-secondary">Invoice: Void</span>
|
|
{% elif event.invoice.is_closed %}
|
|
<span class="badge badge-success">Invoice: Paid</span>
|
|
{% else %}
|
|
<span class="badge badge-warning">Invoice: Outstanding</span>
|
|
{% endif %}
|
|
{% else %}
|
|
<span class="badge badge-info">Invoice: Not Generated</span>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endif %}
|
|
</div>
|