champ_domaine_contenu.html 12 lignes · 1341 octets
<div id="field-domaine" class="field flex flex-col gap-xs">
  <label for="domaine" class="text-sm text-foreground">Domaine DNS <span class="text-error-ink" aria-hidden="true">*</span></label>
  <input id="domaine" name="domaine" value="{{ domaine }}"{% if fige %} disabled{% endif %} required aria-required="true" spellcheck="false" autocapitalize="none"
         hx-post="/install/organisation/champ/domaine" hx-trigger="change" hx-target="#field-domaine" hx-swap="outerHTML" hx-select="#field-domaine"
         x-on:input="majDomaine"
         class="h-10 rounded-xs border bg-background px-sm font-mono text-sm text-foreground {% if erreurs.get("domaine").is_some() %}border-error{% else %}border-input{% endif %}"
         aria-describedby="{% if erreurs.get("domaine").is_some() %}erreur-domaine {% endif %}{% if erreurs.avertissement("domaine").is_some() %}avert-domaine {% endif %}aide-domaine"
         {% if erreurs.get("domaine").is_some() %}aria-invalid="true"{% endif %}>
  {% if let Some(e) = erreurs.get("domaine") %}<p id="erreur-domaine" class="text-sm text-error-ink">{{ e }}</p>{% endif %}
  {% if let Some(e) = erreurs.avertissement("domaine") %}<p id="avert-domaine" class="text-sm text-warning">{{ e }}</p>{% endif %}
  <p id="aide-domaine" class="text-sm text-muted-foreground">Par exemple mairie-exemple.fr</p>
</div>