{#
/**
 * Copyright © 2003-2024 The Galette Team
 *
 * This file is part of Galette (https://galette.eu).
 *
 * Galette is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Galette is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Galette. If not, see <http://www.gnu.org/licenses/>.
 */
#}
{% include "components/forms/input.html.twig" with {
        type: "password",
        name: entry.field_id,
        id: entry.field_id,
        required: entry.required,
        disabled: entry.disabled,
        label: entry.label,
        autocomplete: "off",
        value: null,
        component_id: entry.field_id ~ '_field',
    }
%}
{% include "components/forms/input.html.twig" with {
        type: "password",
        name: "mdp_adh2",
        id: "mdp_adh2",
        required: entry.required,
        disabled: entry.disabled,
        label: _T("Password confirmation:"),
        autocomplete: "off",
        elt_class: "labelalign",
        value: null,
    }
%}
<script type="text/javascript">
    $(function() {
        {% include "elements/js/pwdcheck.js.twig" with {
                selector: '#' ~ entry.field_id,
                loader: 'inline mini'
        } %}
    });
</script>
