Skip to content

Commit

Permalink
update device detail template
Browse files Browse the repository at this point in the history
  • Loading branch information
silvioheinze committed Jan 7, 2025
1 parent 12d5d41 commit 67d69a8
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions app/templates/devices/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,21 @@ <h2>{% trans "Device:" %} {{ device.id }}</h2>
<li class="list-group-item"><strong>{% trans "Name:" %}</strong> {{ device.device_name|default:_("N/A") }}</li>
<li class="list-group-item"><strong>{% trans "Model:" %}</strong> {{ device.model|default:_("N/A") }}</li>
<li class="list-group-item"><strong>{% trans "Firmware:" %}</strong> {{ device.firmware|default:_("N/A") }}</li>
<li class="list-group-item">
<strong>{% trans "Sensors:" %}</strong>
<ul>
<li>Sensorname: Dimension 1, Dimension 2, Dimension 3</li>
<li>Sensorname: Dimension 1, Dimension 2</li>
<li>Sensorname: Dimension 2</li>
</ul>
</li>
<li class="list-group-item">
<strong>{% trans "Last update:" %}</strong> 01.01.2025 13:00
</li>
</ul>

</div>
<div class="col-md-6">
<ul class="list-group mb-3">
<li class="list-group-item"><strong>{% trans "Organization:" %}</strong> {{ device.current_organization|default:_("N/A") }}</li>
<li class="list-group-item"><strong>{% trans "Room:" %}</strong> {{ device.current_room|default:_("N/A") }}</li>
Expand All @@ -57,7 +70,7 @@ <h2>{% trans "Device:" %} {{ device.id }}</h2>

<hr class="my-5">

<h3 class="mb-4">{% trans "Device Statuses" %}</h3>
<h3 class="mb-4">{% trans "Battery Status" %}</h3>

{% if device_statuses %}
<div class="accordion" id="deviceStatusAccordion">
Expand Down Expand Up @@ -96,6 +109,13 @@ <h2 class="accordion-header" id="heading{{ forloop.counter }}">
</div>
{% endif %}

<a href="{% url 'device-list' %}" class="btn btn-outline-secondary mt-4">{% trans "Back to List" %}</a>
<hr class="my-5">

<h3 class="mb-4">{% trans "Log" %}</h3>
<div class="alert alert-info" role="alert">
{% trans "No log updates available for this device." %}
</div>

<a href="{% url 'device-list' %}" class="btn btn-outline-secondary mt-4 mb-4">{% trans "Back to Devices" %}</a>
</div>
{% endblock content %}

0 comments on commit 67d69a8

Please sign in to comment.