-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
164 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{% extends "layout.html" %} | ||
{% load i18n locale %} | ||
|
||
{% block title %}{% trans "OpenID Login" %} | {{ block.super }}{% endblock %} | ||
|
||
{% block breadcrumbs %} | ||
{{ block.super }}<li>{% trans "OpenID Login" %}</li> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div id="login-wrapper"> | ||
<div id="login" class="form"> | ||
<h2>{% trans 'OpenID Login' %}</h2> | ||
<form id="openid_login_form" class="openid_login" method="post" action="{% url 'openid_login' %}"> | ||
{% csrf_token %} | ||
{{form.as_p}} | ||
<p class="buttons"> | ||
<input type="submit" class="login" value="{% trans 'Login' %}"/> | ||
</p> | ||
</form> | ||
</div> | ||
|
||
<div id="login-alternative"> | ||
<h5><a href="{% url 'account_login' %}">{% trans "Return to password login" %}</a> | ||
</div> | ||
</div> | ||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{% extends "layout.html" %} | ||
{% load i18n locale %} | ||
|
||
{% block title %}{% trans "Register" %} | {{ block.super }}{% endblock %} | ||
|
||
{% block breadcrumbs %} | ||
{{ block.super }}<li>{% trans "Register" %}</li> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div id="register" class="form" dir="{% locale_dir %}"> | ||
<h2>{% trans "Register a New Pootle Account" %}</h2> | ||
|
||
<p> | ||
{% blocktrans with provider_name=account.get_provider.name site_name=site.name %}You are about to use your {{provider_name}} account to login to {{site_name}}.<br/> | ||
As a final step, please complete the following form:{% endblocktrans %} | ||
</p> | ||
|
||
<form class="signup" id="signup_form" method="post" action="{% url 'socialaccount_signup' %}"> | ||
{% csrf_token %} | ||
{{ form.as_p }} | ||
{% if redirect_field_value %} | ||
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" /> | ||
{% endif %} | ||
<p class="buttons"> | ||
<input type="submit" class="register" value="{% trans 'Register' %}" /> | ||
</p> | ||
</form> | ||
</div> | ||
{% endblock %} |