mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-24 17:38:37 -06:00
Rearrange site view layout
This commit is contained in:
parent
806dcd74ec
commit
0bbd186635
@ -95,49 +95,48 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
<th scope="row">Physical Address</th>
|
|
||||||
<td>
|
|
||||||
{% if object.physical_address %}
|
|
||||||
<div class="float-end noprint">
|
|
||||||
<a href="{{ config.MAPS_URL }}{{ object.physical_address|urlencode }}" target="_blank" class="btn btn-primary btn-sm">
|
|
||||||
<i class="mdi mdi-map-marker"></i> Map It
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<span>{{ object.physical_address|linebreaksbr }}</span>
|
|
||||||
{% else %}
|
|
||||||
<span class="text-muted">—</span>
|
|
||||||
{% endif %}
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">Shipping Address</th>
|
|
||||||
<td>{{ object.shipping_address|linebreaksbr|placeholder }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">GPS Coordinates</th>
|
|
||||||
<td>
|
|
||||||
{% if object.latitude and object.longitude %}
|
|
||||||
<div class="float-end noprint">
|
|
||||||
<a href="{{ config.MAPS_URL }}{{ object.latitude }},{{ object.longitude }}" target="_blank" class="btn btn-primary btn-sm">
|
|
||||||
<i class="mdi mdi-map-marker"></i> Map It
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<span>{{ object.latitude }}, {{ object.longitude }}</span>
|
|
||||||
{% else %}
|
|
||||||
<span class="text-muted">—</span>
|
|
||||||
{% endif %}
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% include 'inc/panels/contacts.html' %}
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h5 class="card-header">Contact Info</h5>
|
<h5 class="card-header">Contact Info</h5>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
{% with deprecation_warning="This field will be removed in a future release. Please migrate this data to contact objects." %}
|
{% with deprecation_warning="This field will be removed in a future release. Please migrate this data to contact objects." %}
|
||||||
<table class="table table-hover attr-table">
|
<table class="table table-hover attr-table">
|
||||||
|
<tr>
|
||||||
|
<th scope="row">Physical Address</th>
|
||||||
|
<td>
|
||||||
|
{% if object.physical_address %}
|
||||||
|
<div class="float-end noprint">
|
||||||
|
<a href="{{ config.MAPS_URL }}{{ object.physical_address|urlencode }}" target="_blank" class="btn btn-primary btn-sm">
|
||||||
|
<i class="mdi mdi-map-marker"></i> Map It
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<span>{{ object.physical_address|linebreaksbr }}</span>
|
||||||
|
{% else %}
|
||||||
|
<span class="text-muted">—</span>
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">Shipping Address</th>
|
||||||
|
<td>{{ object.shipping_address|linebreaksbr|placeholder }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">GPS Coordinates</th>
|
||||||
|
<td>
|
||||||
|
{% if object.latitude and object.longitude %}
|
||||||
|
<div class="float-end noprint">
|
||||||
|
<a href="{{ config.MAPS_URL }}{{ object.latitude }},{{ object.longitude }}" target="_blank" class="btn btn-primary btn-sm">
|
||||||
|
<i class="mdi mdi-map-marker"></i> Map It
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<span>{{ object.latitude }}, {{ object.longitude }}</span>
|
||||||
|
{% else %}
|
||||||
|
<span class="text-muted">—</span>
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">Contact Name</th>
|
<th scope="row">Contact Name</th>
|
||||||
<td>
|
<td>
|
||||||
@ -180,8 +179,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% include 'inc/panels/custom_fields.html' %}
|
{% include 'inc/panels/custom_fields.html' %}
|
||||||
{% include 'inc/panels/tags.html' %}
|
|
||||||
{% include 'inc/panels/comments.html' %}
|
{% include 'inc/panels/comments.html' %}
|
||||||
|
{% include 'inc/panels/contacts.html' %}
|
||||||
{% plugin_left_page object %}
|
{% plugin_left_page object %}
|
||||||
</div>
|
</div>
|
||||||
<div class="col col-md-5">
|
<div class="col col-md-5">
|
||||||
|
Loading…
Reference in New Issue
Block a user