{% 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 %}
