mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-21 23:42:14 +00:00
Initial work at coercing activity feed into showing RAs
Also shows Asset/Supplier on the homepage feed.
This commit is contained in:
@@ -608,3 +608,6 @@ class RiskAssessment(models.Model):
|
||||
suspended_structures = models.BooleanField(default=False, help_text="Are any structures (excluding projector screens and IWBs) being suspended from TEC's structures?")
|
||||
|
||||
# Blimey that was a lot of options
|
||||
|
||||
def __str__(self):
|
||||
return "%i: %s" % (self.pk, self.event)
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
{% load to_class_name from filters %}
|
||||
{# pass in variable "object" to this template #}
|
||||
|
||||
<a title="{% if object.is_rig == False %}Non-rig{% elif object.dry_hire %}Dry Hire{% elif object.is_rig %}Rig{%else%}{{object|to_class_name}}{% endif %} | '{{object.name}}'" href="{{ object.get_absolute_url }}">{% if object.is_rig == False %}Non-rig{% elif object.dry_hire %}Dry Hire{% elif object.is_rig %}Rig{%else%}{{object|to_class_name}}{% endif %} | '{{ object.activity_feed_string|default:object.name }}'</a>
|
||||
@@ -9,7 +9,7 @@
|
||||
{% endif %}
|
||||
<!-- TODO show invoice stuff here -->
|
||||
|
||||
{% if event.risk_assessment_edit_url %}
|
||||
{% if event.riskassessment %}
|
||||
<span class="badge badge-success">RA: <i class="fas fa-check"></i></span>
|
||||
{% else %}
|
||||
<span class="badge badge-danger">RA: <i class="fas fa-times"></i></span>
|
||||
|
||||
Reference in New Issue
Block a user