pyforum / views / default / login.html

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

{{if request.vars.get('ask'):}}
    <div class="note">You must log in before you can post your question.</div>

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

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

{{if request.vars.get('err') is not None:}}
    {{if request.vars.get('err', '') == 'needrole':}}
        <p class="err">{{=XML(T('The previous operation requires you to have elevated credentials to access'))}}.</p>
        <p class="err">{{=XML(T('The previous operation requires the user to be logged in the system'))}}.</p>

<form id="login" method="post" action="">
    <fieldset id="login_form_fields">
        <input type="hidden" id="form_submitted" name="form_submitted" value="1" />
        <input type="hidden" id="ask" name="ask" value="{{='0' if request.vars.get('ask') is None else '1'}}" />
        <div class="paragraph">
            <b>{{=XML(T('New Users'))}}:</b>
            <a href="{{=URL(r=request, c='default', f='signup')}}" title="{{=XML(T('Create a New LOCAL Account Here'))}}" class="bold">{{=XML(T('Create a New LOCAL Account Here'))}}</a>
        <table cellspacing="2" cellpadding="1">
                    <input class="formelem" type="text" id="auth_alias" name="auth_alias" value="{{=request.vars.get('auth_alias', request.post_vars.get('auth_alias', ''))}}" style="width:200px;" />
                    <input class="formelem" type="password" id="passwd" name="passwd" value="" style="width:200px;" />

        <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'))}}" />

        <br />&nbsp;<br />

        <div class="paragraph">{{=XML(T('If you forgot your LOCAL password, or for any other questions, please'))}}
        <a href="{{=URL(r=request, c='default', f='contact_admin')}}"
        title="{{=XML(T('Contact the Administrator directly'))}}">{{=XML(T('contact the administrator directly'))}}</a>.</div>


<script type="text/javascript">

<p>If you wish to sign in using any of the providers below, you may do so without
having to enter your password in this website.</p>

<!-- Make sure your token_url corresponds to a valid hostname defined in your janrain settings //-->
<iframe src="{{=request.env.wsgi_url_scheme}}://{{=request.env.http_host}}{{=URL(r=request, c='default', f='login_janrain')}}"