{% do setAriane(1, 'Modification de la visibilité' | trad) %}
{% extends 'layout.twig' %}
{% block body %}
<section class="contenu">

    <h1>{{ 'Gestion des états' | trad }}</h1>

    {{ ariane() }}

    <h2>{{ strBuild(
        'Modification de la visibilité de @1@' | trad,
        [entityLabel(subject, 'CODETAT', 'DESCRIPT')]
    )}}</h2>
    <form class="form-default box-form" method="POST"
        action="{{ path('EtatStatistique.Type.visiEtat', {id: subject.CODETAT}) }}"
        onsubmit="return ajaxSubmit(event)"
        data-onsuccess="arianePop"
    >
        <div class="bs-row gutter-x-base">
            {% for input in form %}
            <div class="bs-col-half">
                {{ formInput(input, subject, input.label) }}
            </div>
            {% endfor %}
        </div>
        <footer class="text-right">
            {% include '@G/Component/_btnAnnuler.twig' %}
            <button type="submit" class="button principal">
                {{- 'Enregistrer' | trad -}}
            </button>
        </footer>
    </form>
</section>
{% endblock %}
