From 899f958aa3545147ade2e5fa64a09c3f0ec9628d Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Sun, 16 Mar 2025 22:05:35 +0000 Subject: [PATCH] Store legacy rigboard in new template file --- .../partials/legacy_event_table.html | 195 ++++++++++++++++++ 1 file changed, 195 insertions(+) create mode 100644 RIGS/templates/partials/legacy_event_table.html diff --git a/RIGS/templates/partials/legacy_event_table.html b/RIGS/templates/partials/legacy_event_table.html new file mode 100644 index 00000000..cbb17b7e --- /dev/null +++ b/RIGS/templates/partials/legacy_event_table.html @@ -0,0 +1,195 @@ +{% load namewithnotes from filters %} +{% load markdown_tags %} + +
+
+
#
+
Dates & Times
+
Event Details
+
MIC
+
+ {% for event in events %} +
+ +
{{ event.display_id }}
+ +
+
+ {% if not event.cancelled %} + {% if event.meet_at %} +
Meet:
+
{{ event.meet_at|date:"D d/m/Y H:i" }}
+ {% endif %} + {% if event.access_at %} +
Access:
+
{{ event.access_at|date:"D d/m/Y H:i" }}
+ {% endif %} + {% endif %} +
Start:
+
{{ event.start_date|date:"D d/m/Y" }} + {% if event.has_start_time %} + {{ event.start_time|date:"H:i" }} + {% endif %} +
+ {% if event.end_date %} +
End:
+
{{ event.end_date|date:"D d/m/Y" }} + {% if event.has_end_time %} + {{ event.end_time|date:"H:i" }} + {% endif %} +
+ {% endif %} +
+
+ +
+

+ + {{ event }}{{ event.name }} + + {% if event.dry_hire %} + Dry Hire + {% endif %} +
+ {% if event.venue %} + at {{ event.venue|namewithnotes:'venue_detail' }} + {% endif %} +

+ {% if event.is_rig and not event.cancelled %} +
+ {{ event.person.name }} + {% if event.organisation %} + for {{ event.organisation.name }} + {% endif %} +
+ {% endif %} + {% if not event.cancelled and event.description %} +

{{ event.description|markdown }}

+ {% endif %} +
+ {% include 'partials/event_status.html' %} + +
+ MIC: + {% if event.mic %} + {% if perms.RIGS.view_profile %} + + {% endif %} + + {{ event.mic }} + {% if perms.RIGS.view_profile %} + + {% endif %} + {% elif event.is_rig %} + + {% endif %} +
+
+{% endfor %} +