Source

pyforum / views / default / login.html

Full commit
{{extend 'zlayout.html'}}

<h2 class="fancy">{{=XML(T('Login'))}}</h2>

{{if errors:}}
    <p class="err">{{=XML(T('There was one or more messages generated while processing your request, please review the following'))}}</p>
    <ul>
        {{for error in errors:}}
            <li class="err">{{=XML(T(error))}}</li>
        {{pass}}
    </ul>
{{pass}}

<form id="login" method="post" action="">
    <fieldset id="login_form_fields">
        <input type="hidden" id="form_submitted" name="form_submitted" value="1" />
        <table cellspacing="2" cellpadding="1">
        <tbody>
            <tr>
                <td>{{=XML(T('Username'))}}:</td>
                <td>
                    <input class="formelem" type="text" id="auth_alias" name="auth_alias" value="" style="width:200px;" />
                </td>
            </tr>
            <tr>
                <td>{{=XML(T('Password'))}}:</td>
                <td>
                    <input class="formelem" type="password" id="passwd" name="passwd" value="" style="width:200px;" />
                </td>
            </tr>
            <tr>
                <td colspan="2"><label for="google_account">{{=XML(T('This is a Google Account'))}}</label> <input type="checkbox" id="google_account" name="google_account" /></td>
            </tr>
        </tbody>
        </table>

        <br />

        <input type="submit" id="login_b" name="login_b" value="{{=XML(T('Login'))}}" />
        <input type="submit" id="cancel_b" name="cancel_b" value="{{=XML(T('Cancel'))}}" />

        <p>{{=XML(T('If you forgot your password please'))}}
        <a href="#" title="" onclick="document.getElementById('forgot_pwd').style.display='block';">{{=XML(T('Click Here'))}}</a>.</p>

        <p>{{=XML(T('Alternatively, you may'))}} <a href="{{=URL(r=request, c='default', f='contact_admin')}}" title="{{=XML(T('Contact the Administrator directly'))}}">{{=XML(T('Contact the Administrator directly'))}}</a>.</p>

        <div id="forgot_pwd" style="display:none;">
            {{=XML(T('Please enter the email account used in the system'))}}:
            <input type="text" id="req_email" name="req_email" value="" class="formelem" style="width:200px;" />
            <input type="submit" id="request_pwd" name="request_pwd" value="{{=XML(T('Request Password'))}}" />
        </div>

    </fieldset>
</form>