Source

django-authopenid / example / templates / authopenid / signin.html

Full commit
benoitc d6ba15b 







benoitc 0797af3 

Sergey Maranchuk 9dd9fc5 
benoitc 0797af3 

benoitc d6ba15b 
benoitc 0797af3 








benoitc d6ba15b 

benoitc 0797af3 
benoitc d6ba15b 



Sergey Maranchuk 9dd9fc5 


benoitc d6ba15b 
Sergey Maranchuk 9dd9fc5 


benoitc d6ba15b 
Sergey Maranchuk 9dd9fc5 
benoitc d6ba15b 

benoitc 43dcc52 

benoitc d6ba15b 


benoitc 43dcc52 




benoitc afe744c 
benoitc 43dcc52 

benoitc d6ba15b 





benoitc 43dcc52 

Sergey Maranchuk 9dd9fc5 
benoitc 43dcc52 

Sergey Maranchuk 9dd9fc5 
benoitc 43dcc52 




{% extends "base.html" %}
{% load i18n %}

{% block content %}
{% if msg %}
<br />
	<p class="warning">{{ msg }}</p>
{% endif %}
{% if form2.errors %}
<div class="errors"><p>{% trans "Please correct errors below:" %}<br />

</p></div>
<br>
{% endif %}

{% if form1.errors %}
<div class="errors">
    <p><span class="error">{{ form1.openid_url.errors|join:", " }}</span></p>
</div>
<br>
{% endif %}
<h2>Make a choice:</h2>
<p> <a href="{% url registration_register %}">Register</a> | <a href="{% url user_signin %}">Log-In</a></p>
<div class="login">

    <form id="auth_form" name="auth_form" action="{% url user_signin %}" method="post">
    <input type="hidden" name="next" value="{{ next }}" />
	<fieldset>
		<legend>{% trans "Sign In Using Your Account ID" %}</legend>
		<div class="form-row"><label for="id_username">{% trans "Username:" %}</label><br />{{ form2.username }}</div>
		{% if form2.username.errors %} 
			<span class="error">{{ form2.username.errors|join:", " }}</span>
		{% endif %}
		<div class="form-row"><label for="id_password">{% trans "Password" %}</label><br />{{ form2.password }}</div>
		{% if form2.password.errors %} 
			<span class="error">{{ form2.password.errors|join:", " }}</span>
		{% endif %}
        <div class="submit-row"><input type="submit" name="blogin" value="{% trans "Sign in" %}"> </div>
	</fieldset>
</form>

<form id="openid_form" name="openid_form" action="{% url user_signin %}" method="post">
    <input type="hidden" name="action" value="verify" />
    <input type="hidden" name="next" value="{{ next }}" />
	<fieldset>
		<legend>{% trans "Sign In Using Your OpenID URL" %}</legend>
		<div id="openid_choice">
    		<p>Please click your account provider:</p>
    		<div id="openid_btns"></div>
    	</div>
    	    <div id="openid_input_area">
                <label for="id_openid_url">{% trans "OpenId URL :" %}</label>{{ form1.openid_url }}
                <input name="openid_submit" type="submit" value="{% trans "Sign in with OpenID" %}">
            </div>
		
	</fieldset>
</form>	
</div>	
{% endblock %}

{% block extra_scripts %}
<script type="text/javascript" src="{{ MEDIA_URL }}/js/openid-jquery.js"></script>
<script type="text/javascript" src="{{ MEDIA_URL }}/js/openid-jquery-en.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    openid.init('openid_url');
});
</script>
<!-- /Simple OpenID Selector -->
    
{% endblock %}