{include file='q_basic/header.tpl' login_page=true}
<!-- q resetlicense -->

<div class="usx4style">
    <div class="dashboard__containerTop">
        {if $agent_browser_is_really_old}
            <div class="p-inline-message p-component p-inline-message-info p-inline-message-icon-only message__container" role="alert">
                <span class="dialog_make_btn16 error ui-corner-all"></span> {$i.basic_old_any}<br />
                <small>{$agent_browser} {$agent_version}: {$agent_agent}</small>
            </div>
        {/if}
        <div class="p-inline-message p-component p-inline-message-info p-inline-message-icon-only message__container" id="caps_is_on"   style="display: none; margin: 0 8%;" role="alert">
            <span class="dialog_make_btn16 error ui-corner-all"></span> {$i.auth_caps_on}<br />
        </div>

        <div class="p-inline-message p-component p-inline-message-icon-only message__container" style="margin: 0 8%;">
            {$i.pages_logoff_warning|markdown}
        </div>

        {if isset($error_main)}
            {foreach from=$error_main item='error'}
                <div class="p-inline-message p-component p-inline-message-info p-inline-message-icon-only message__container showerror" role="alert">
                    {$error}
                </div>
            {/foreach}
        {/if}
    </div>

    <div id="mainblock" class="dashboard__containerBottom">
        <form action="{site_url url="auth/resetlicense"}" method="post">
            <div class="form__fieldContainer">
                {include file='r/textarea.tpl' name="license_key" title="auth_license_key" class="t-long input__input" formcol="input__container"}
                <hr />
                {if $login_force_username}
                    {include file='r/input.tpl' name="login_username" title="auth_username" default=$staff_last_login_name
                        class="input__input t-mid" formcol="input__container"}
                {else}
                    {include file='r/select.tpl' name="login_userid" title="auth_user"
                        list=$staff_list id="id" text="fullname" default=$staff_last_login
                        class="input__input t-mid" formcol="dropdown__container"}
                {/if}
            </div>
            <div class="form__fieldContainer">
                {include file='r/password.tpl' name="login_password" title="auth_password"
                    class="us_password input__input t-mid" filter_extra='autocomplete="off"'
                    formcol="input__container"}
            </div>
            <input type="hidden" name="login_id" value="{$auth_login_hash}" />
            <div class="form__buttonsContainer" id="login_btns">
                <input type="submit" value="{$i.auth_log_in}" class="p-button p-component button__button form__button form__button--submit button__button--primary p-c">
                </input>
            </div>
        </form>
    </div>
</div>

{include file='q_basic/footer.tpl'}
