{assign var='title' value="untermStrich - `$i.auth_log_in`"}
{include file='Mobile/r_basic/htmlheader.tpl'}

<div data-role="page" data-theme="a">
    
    <div data-role="header">
        <h1>{$i.auth_log_in}</h1>
    </div><!-- /header -->
    
{if isset($error_main)}
    <div data-role="header" data-theme="b">
        <a href="{site_url url="mobile/"}" data-ajax="false" data-role="button" data-icon="alert" data-iconpos="notext"></a>
    {foreach from=$error_main item='error'}
            <h4>{$error}</h4>
    {/foreach}
    </div>
{/if}
    <script type="text/javascript">
    /* <![CDATA[ */
        if (typeof(navigator.cookieEnabled)!=='undefined' && !navigator.cookieEnabled) {ldelim}
            document.writeln('<div data-role="header" data-theme="b">');
            document.write('<h4>{$i.auth_no_cookies}</h4>');
            document.writeln('</div>');
        {rdelim};
    /* ]]> */
    </script>

    <div data-role="content">
        <style type="text/css">
            #loginform .ui-btn-up-c {
                max-width: 140px;
                text-align: center;
                margin: 0 auto;
            }
            #loginform .ui-btn-up-e .ui-btn-inner {
                white-space: normal;
            }
        </style>
        <form action="{site_url url="mobile/login/"}" data-ajax="false" method="post" id="loginform">
            {if $login_force_username}
                {include file='r/input.tpl' name="login_username" title="auth_username" default=$staff_last_login_name required="true"}
            {else}
                {include file='r/select.tpl' name="login_userid" title="auth_user"
                    list=$staff_list id="id" text="fullname" default=$staff_last_login required="true" class="required"}
            {/if}
            {include file='r/password.tpl' name="login_password" title="auth_password" class="us_password" required="true"}
            <input type="hidden" name="login_id" value="{$auth_login_hash}" />

            <p style="padding:10px;">
                <a href="{site_url url="/auth/login"}" class="dialog_make_text_btn ui-corner-all" data-role="button" data-ajax="false" data-theme="e">
                    <span class="dialog_make_btn16 parent"></span>
                    {$i.auth_go_desktop}
                </a>
            </p>
            
            <button  value="submit-value" name="submit" type="submit" class="ui-btn-hidden" 
                data-transition="fade" aria-disabled="false" data-theme="c">{$i.auth_log_in}</button>

        </form>
    </div><!-- /content -->

    {include file='Mobile/r_basic/footer.tpl'}
    
</div><!-- /page -->

{include file='Mobile/r_basic/htmlfooter.tpl'}