{% endif %}
-
- {% include 'partials/item_table.html' %}
+
Event Items
+ {% include 'partials/item_table.html' %}
+ {% if event.subhire_set %}
+
Associated Subhires
+ {% with event.subhire_set.all as events %}
+ {% include 'partials/event_table.html' %}
+ {%endwith%}
+ {% endif %}
{% if not request.is_ajax and perms.RIGS.view_event %}
diff --git a/RIGS/templates/partials/event_detail_buttons.html b/RIGS/templates/partials/event_detail_buttons.html
index f04f20f8..ce033264 100644
--- a/RIGS/templates/partials/event_detail_buttons.html
+++ b/RIGS/templates/partials/event_detail_buttons.html
@@ -47,7 +47,5 @@
class="fas fa-pound-sign">
Invoice
{% endif %}
-
- Subhire Insurance Form
{% endif %}
diff --git a/RIGS/templates/partials/item_table.html b/RIGS/templates/partials/item_table.html
index 5e3dce46..5947dd88 100644
--- a/RIGS/templates/partials/item_table.html
+++ b/RIGS/templates/partials/item_table.html
@@ -15,7 +15,7 @@
{% endif %}
diff --git a/RIGS/templates/subhire_detail.html b/RIGS/templates/subhire_detail.html
index 29bc78c3..f5c723ec 100644
--- a/RIGS/templates/subhire_detail.html
+++ b/RIGS/templates/subhire_detail.html
@@ -46,14 +46,12 @@
-
+
Associated Events
-
- {% for event in object.events.all %}
- {{event}}
- {%endfor%}
-
+ {% with object.events.all as events %}
+ {% include 'partials/event_table.html' %}
+ {%endwith%}
{% if not request.is_ajax and perms.RIGS.view_event %}
@@ -69,5 +67,6 @@
{% if perms.RIGS.view_event %}
{% include 'partials/last_edited.html' with target="event_history" %}
{% endif %}
+ Open Event Page
{% endblock %}
{% endif %}