diff --git a/templates/vibration_location_detail.html b/templates/vibration_location_detail.html new file mode 100644 index 0000000..acb41dd --- /dev/null +++ b/templates/vibration_location_detail.html @@ -0,0 +1,415 @@ +{% extends "base.html" %} + +{% block title %}{{ location.name }} - Monitoring Location{% endblock %} + +{% block content %} + +
+ +
+ + +
+
+
+

+ + + + + {{ location.name }} +

+

+ Monitoring Location • {{ project.name }} +

+
+
+ {% if assigned_unit %} + + + + + Unit Assigned + + {% else %} + + No Unit Assigned + + {% endif %} +
+
+
+ + +
+ +
+ + +
+ +
+
+ +
+

Location Details

+
+
+
Name
+
{{ location.name }}
+
+ {% if location.description %} +
+
Description
+
{{ location.description }}
+
+ {% endif %} + {% if location.address %} +
+
Address
+
{{ location.address }}
+
+ {% endif %} + {% if location.coordinates %} +
+
Coordinates
+
{{ location.coordinates }}
+
+ {% endif %} +
+
Created
+
{{ location.created_at|local_datetime if location.created_at else 'N/A' }}
+
+
+
+ + +
+

Unit Assignment

+ {% if assigned_unit %} +
+
+
Assigned Unit
+ +
+ {% if assigned_unit.device_type %} +
+
Device Type
+
{{ assigned_unit.device_type|capitalize }}
+
+ {% endif %} + {% if assignment %} +
+
Assigned Since
+
{{ assignment.assigned_at|local_datetime if assignment.assigned_at else 'N/A' }}
+
+ {% if assignment.notes %} +
+
Notes
+
{{ assignment.notes }}
+
+ {% endif %} + {% endif %} +
+ +
+
+ {% else %} +
+ + + +

No unit currently assigned

+ +
+ {% endif %} +
+
+
+ + + +
+ + + + + +{% endblock %}