<script type="text/javascript">
    $("body").on("shown.bs.modal", ".modal", function() {
        $("#adm_tfa_reset_form").find("*").filter(":input:visible:first").focus()
    });
    $("#adm_tfa_reset_form").submit(formSubmit);
</script>

<div class="modal-header">
    <h3 class="modal-title">{$l10n->get('SYS_TFA_RESET')}</h3>
    <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
    <form {foreach $attributes as $attribute}
            {$attribute@key}="{$attribute}"
        {/foreach}>
        {include 'sys-template-parts/form.input.tpl' data=$elements['adm_csrf_token']}
        <div>{$l10n->get('SYS_TFA_RESET_DESC')}</div>
        <hr />
        <div class="form-alert" style="display: none;">&nbsp;</div>
        {include 'sys-template-parts/form.button.tpl' data=$elements['tfa_reset_button']}
    </form>
</div>