{if isset($otp_error)}
    <div class="warning ui-corner-all" style="border: 3px dashed red;">
        {$otp_error}
    </div>
{else}
    <form action="" id="otp_init_form" onsubmit="return false;">
        <p class="formcoll">
            {$i.pages_init_2fa1|markdown}
        </p>
        <p class="formcoll">
            <img src="data:image/png;base64,{$otp_qr}" alt="OTP QR Code">
        </p>
        <p class="formcoll">
            {$i.pages_init_2fa2|markdown}
        </p>
        {include file='r/input.tpl' name="basic_otp_code" title="basic_init_2fa" labelclass="label4"
        maxlength=10 default='' class="required"}
        <p class="formcoll">
            {$i.pages_init_2fa3|markdown}
        </p>
    </form>
{/if}
