Semaine 11
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
{% extends "parc/base.html" %}
|
||||
|
||||
{% block title %}{{ equipment.hostname }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{{ equipment.hostname }}</h1>
|
||||
<p><strong>Adresse IP :</strong> {{ equipment.ip }}</p>
|
||||
<p><strong>État :</strong>
|
||||
{% if equipment.is_active %}
|
||||
<span class="status-active">Actif</span>
|
||||
{% else %}
|
||||
<span class="status-inactive">Inactif</span>
|
||||
{% endif %}
|
||||
</p>
|
||||
<a class="btn btn-secondary" href="{% url 'equipment_update' equipment.pk %}">Modifier</a>
|
||||
<a class="btn btn-danger" href="{% url 'equipment_delete' equipment.pk %}">Supprimer</a>
|
||||
<a class="btn" href="{% url 'equipment_list' %}">Retour</a>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user