Semaine 11

This commit is contained in:
gauvainboiche
2026-07-11 21:38:00 +02:00
parent d3d2416dea
commit 0d071d2843
281 changed files with 54412 additions and 0 deletions
@@ -0,0 +1,43 @@
{% extends "base.html" %}
{% block title %}Equipment - Network Inventory{% endblock %}
{% block content %}
<p>Signed-in as <strong>{{ username }}</strong>.</p>
{% if equipment %}
<h1>{{ equipment.hostname }}</h1>
<table>
<tbody>
<tr>
<th>ID</th>
<td>{{ equipment.id }}</td>
</tr>
<tr>
<th>Hostname</th>
<td>{{ equipment.hostname }}</td>
</tr>
<tr>
<th>Type</th>
<td>{{ equipment.type }}</td>
</tr>
<tr>
<th>State</th>
<td>
{% if equipment.active %}
<span class="up">UP</span>
{% else %}
<span class="down">DOWN</span>
{% endif %}
</td>
</tr>
</tbody>
</table>
{% else %}
<h1>There's no device with this ID</h1>
<p>The requested equipment (ID {{ equipment_id }}) does not exist.</p>
{% endif %}
<p><a href="{{ url_for('details') }}">← Back to all devices</a></p>
{% endblock %}