|
@@ -24,100 +24,16 @@
|
|
|
{% block content %}
|
|
{% block content %}
|
|
|
<div class="row">
|
|
<div class="row">
|
|
|
<div class="col col-12 col-md-6">
|
|
<div class="col col-12 col-md-6">
|
|
|
- <div class="card">
|
|
|
|
|
- <h2 class="card-header">{% trans "Site" %}</h2>
|
|
|
|
|
- <table class="table table-hover attr-table">
|
|
|
|
|
- <tr>
|
|
|
|
|
- <th scope="row">{% trans "Region" %}</th>
|
|
|
|
|
- <td>
|
|
|
|
|
- {% nested_tree object.region %}
|
|
|
|
|
- </td>
|
|
|
|
|
- </tr>
|
|
|
|
|
- <tr>
|
|
|
|
|
- <th scope="row">{% trans "Group" %}</th>
|
|
|
|
|
- <td>
|
|
|
|
|
- {% nested_tree object.group %}
|
|
|
|
|
- </td>
|
|
|
|
|
- </tr>
|
|
|
|
|
- <tr>
|
|
|
|
|
- <th scope="row">{% trans "Status" %}</th>
|
|
|
|
|
- <td>{% badge object.get_status_display bg_color=object.get_status_color %}</td>
|
|
|
|
|
- </tr>
|
|
|
|
|
- <tr>
|
|
|
|
|
- <th scope="row">{% trans "Tenant" %}</th>
|
|
|
|
|
- <td>
|
|
|
|
|
- {% if object.tenant.group %}
|
|
|
|
|
- {{ object.tenant.group|linkify }} /
|
|
|
|
|
- {% endif %}
|
|
|
|
|
- {{ object.tenant|linkify|placeholder }}
|
|
|
|
|
- </td>
|
|
|
|
|
- </tr>
|
|
|
|
|
- <tr>
|
|
|
|
|
- <th scope="row">{% trans "Facility" %}</th>
|
|
|
|
|
- <td>{{ object.facility|placeholder }}</td>
|
|
|
|
|
- </tr>
|
|
|
|
|
- <tr>
|
|
|
|
|
- <th scope="row">{% trans "Description" %}</th>
|
|
|
|
|
- <td>{{ object.description|placeholder }}</td>
|
|
|
|
|
- </tr>
|
|
|
|
|
- <tr>
|
|
|
|
|
- <th scope="row">{% trans "Time Zone" %}</th>
|
|
|
|
|
- <td>
|
|
|
|
|
- {% if object.time_zone %}
|
|
|
|
|
- {{ object.time_zone }} ({% trans "UTC" %} {{ object.time_zone|tzoffset }})<br />
|
|
|
|
|
- <small class="text-muted">{% trans "Site time" %}: {% timezone object.time_zone %}{% now 'Y-m-d H:i' %}{% endtimezone %}</small>
|
|
|
|
|
- {% else %}
|
|
|
|
|
- {{ ''|placeholder }}
|
|
|
|
|
- {% endif %}
|
|
|
|
|
- </td>
|
|
|
|
|
- </tr>
|
|
|
|
|
- <tr>
|
|
|
|
|
- <th scope="row">{% trans "Physical Address" %}</th>
|
|
|
|
|
- <td class="d-flex justify-content-between align-items-start">
|
|
|
|
|
- {% if object.physical_address %}
|
|
|
|
|
- <span>{{ object.physical_address|linebreaksbr }}</span>
|
|
|
|
|
- {% if config.MAPS_URL %}
|
|
|
|
|
- <a href="{{ config.MAPS_URL }}{{ object.physical_address|urlencode }}" target="_blank" class="btn btn-primary btn-sm d-print-none">
|
|
|
|
|
- <i class="mdi mdi-map-marker"></i> {% trans "Map" %}
|
|
|
|
|
- </a>
|
|
|
|
|
- {% endif %}
|
|
|
|
|
- {% else %}
|
|
|
|
|
- {{ ''|placeholder }}
|
|
|
|
|
- {% endif %}
|
|
|
|
|
- </td>
|
|
|
|
|
- </tr>
|
|
|
|
|
- <tr>
|
|
|
|
|
- <th scope="row">{% trans "Shipping Address" %}</th>
|
|
|
|
|
- <td>{{ object.shipping_address|linebreaksbr|placeholder }}</td>
|
|
|
|
|
- </tr>
|
|
|
|
|
- <tr>
|
|
|
|
|
- <th scope="row">{% trans "GPS Coordinates" %}</th>
|
|
|
|
|
- <td class="position-relative">
|
|
|
|
|
- {% if object.latitude and object.longitude %}
|
|
|
|
|
- {% if config.MAPS_URL %}
|
|
|
|
|
- <div class="position-absolute top-50 end-0 me-2 translate-middle-y d-print-none">
|
|
|
|
|
- <a href="{{ config.MAPS_URL }}{{ object.latitude|unlocalize }},{{ object.longitude|unlocalize }}" target="_blank" class="btn btn-primary btn-sm">
|
|
|
|
|
- <i class="mdi mdi-map-marker"></i> {% trans "Map" %}
|
|
|
|
|
- </a>
|
|
|
|
|
- </div>
|
|
|
|
|
- {% endif %}
|
|
|
|
|
- <span>{{ object.latitude }}, {{ object.longitude }}</span>
|
|
|
|
|
- {% else %}
|
|
|
|
|
- {{ ''|placeholder }}
|
|
|
|
|
- {% endif %}
|
|
|
|
|
- </td>
|
|
|
|
|
- </tr>
|
|
|
|
|
- </table>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ {{ site_panel }}
|
|
|
{% include 'inc/panels/custom_fields.html' %}
|
|
{% include 'inc/panels/custom_fields.html' %}
|
|
|
{% include 'inc/panels/tags.html' %}
|
|
{% include 'inc/panels/tags.html' %}
|
|
|
{% include 'inc/panels/comments.html' %}
|
|
{% include 'inc/panels/comments.html' %}
|
|
|
{% plugin_left_page object %}
|
|
{% plugin_left_page object %}
|
|
|
- </div>
|
|
|
|
|
- <div class="col col-12 col-md-6">
|
|
|
|
|
- {% include 'inc/panels/related_objects.html' with filter_name='site_id' %}
|
|
|
|
|
- {% include 'inc/panels/image_attachments.html' %}
|
|
|
|
|
- {% plugin_right_page object %}
|
|
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="col col-12 col-md-6">
|
|
|
|
|
+ {% include 'inc/panels/related_objects.html' with filter_name='site_id' %}
|
|
|
|
|
+ {% include 'inc/panels/image_attachments.html' %}
|
|
|
|
|
+ {% plugin_right_page object %}
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="row">
|
|
<div class="row">
|