Semaine 11
This commit is contained in:
@@ -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 %}
|
||||
Reference in New Issue
Block a user