recapitulatif.html
80 lignes · 4788 octets
{% extends "layouts/assistant.html" %} {% import "components/stepper.html" as stepper %} {% import "components/bouton.html" as b %} {% block title %}Récapitulatif{% endblock %} {% block organisation %}{% if let Some(nom) = organisation %}<span class="text-sm text-ink-secondary">· {{ nom }}</span>{% endif %}{% endblock %} {% block stepper %}{% call stepper::stepper(etapes, courante) %}{% endcall %}{% endblock %} {% block content %} {# E-010 Récapitulatif #} {% include "assistant/bandeau_evolution.html" %} <h1 class="text-2xl text-foreground">Récapitulatif</h1> <p class="mt-xs text-sm text-muted-foreground">{% if evolution %}Relisez les ajouts. L'évolution rejouera l'installation sur les serveurs cibles ; ce qui est installé reste en place.{% else %}Relisez vos choix. L'installation modifiera réellement les serveurs cibles.{% endif %}</p> {% if let Some((installes, ajoutes)) = composants_evolution %} {# E022-C16 Déjà installé / À ajouter #} <div class="mt-xl grid gap-md md:grid-cols-2"> <section class="border border-border bg-card p-xl" aria-labelledby="titre-deja-installe"> <h2 id="titre-deja-installe" class="text-md text-title-ink">Déjà installé</h2> <ul id="deja-installe" class="mt-sm flex flex-col gap-xxs text-sm text-foreground"> {% for (cle, nom) in installes %}<li>{{ nom }} <code class="font-mono text-xs text-muted-foreground">{{ cle }}</code></li>{% endfor %} </ul> </section> <section class="border border-border bg-card p-xl" aria-labelledby="titre-a-ajouter"> <h2 id="titre-a-ajouter" class="text-md text-title-ink">À ajouter</h2> <ul id="a-ajouter" class="mt-sm flex flex-col gap-xxs text-sm text-foreground"> {% for (cle, nom) in ajoutes %}<li>{{ nom }} <code class="font-mono text-xs text-info">{{ cle }}</code></li>{% endfor %} </ul> </section> </div> {% endif %} {% if !avertissements.is_empty() %} <ul class="mt-xl flex flex-col gap-xs"> {% for a in avertissements %}<li class="border-l-4 border-l-warning bg-warning-bg p-md text-sm text-foreground">{{ a }}</li>{% endfor %} </ul> {% endif %} <div class="mt-xl grid gap-md md:grid-cols-2"> {% for carte in cartes %} <section class="border border-border bg-card p-xl" aria-labelledby="carte-{{ loop.index }}"> <div class="flex items-start justify-between gap-sm"> <h2 id="carte-{{ loop.index }}" class="text-md text-title-ink">{{ carte.titre }}</h2> {% if !carte.url.is_empty() %}<a href="{{ carte.url }}" class="text-sm text-primary underline-offset-4 hover:underline">Modifier<span class="sr-only"> : {{ carte.titre }}</span></a>{% else %}<span class="text-xs text-muted-foreground">Fixé à l'installation</span>{% endif %} </div> <dl class="mt-sm flex flex-col gap-xxs text-sm"> {% for (cle, valeur) in carte.lignes %} <div class="flex flex-wrap gap-x-sm"><dt class="text-muted-foreground">{{ cle }}</dt><dd class="font-mono text-foreground">{{ valeur }}</dd></div> {% endfor %} </dl> </section> {% endfor %} </div> <section class="mt-xxl" aria-labelledby="titre-plan"> <h2 id="titre-plan" class="text-lg text-foreground">Plan d'exécution</h2> <div class="mt-md overflow-x-auto" tabindex="0" aria-label="Plan d'exécution"> <table class="w-full text-sm"> <thead class="bg-muted text-left text-xs text-muted-foreground"><tr><th class="px-md py-sm">Serveur</th><th class="px-md py-sm">Étapes appliquées, dans l'ordre</th></tr></thead> <tbody> {% for (serveur, phases) in plan %} <tr class="border-b border-border"><td class="px-md py-sm font-mono">{{ serveur }}</td><td class="px-md py-sm">{{ phases|join(" → ") }}</td></tr> {% endfor %} </tbody> </table> </div> </section> <section class="mt-xxl flex flex-col gap-md" aria-labelledby="titre-verification"> <h2 id="titre-verification" class="text-lg text-foreground">Vérification préalable</h2> <div class="flex flex-wrap gap-sm"> <button type="button" class="{% call b::classes("outline") %}{% endcall %}" hx-post="/install/verification" hx-target="#resultat-verification" hx-swap="innerHTML" hx-disabled-elt="this" hx-indicator="#verification-en-cours">Lancer la vérification</button> <a href="/install/openiam.yaml" class="{% call b::classes("outline") %}{% endcall %}">Télécharger openiam.yaml</a> </div> {# Sonde SSH de chaque serveur : jusqu'à 20 secondes par serveur injoignable #} <p id="verification-en-cours" class="hidden text-sm text-muted-foreground [&.htmx-request]:block" role="status">Vérification en cours : connexion SSH à chaque serveur et contrôle de la configuration, quelques secondes…</p> <div id="resultat-verification" aria-live="polite"></div> {% include "assistant/lancer.html" %} </section> {% endblock %}
GitRust