modal_content blocks for allauth social templates
This commit is contained in:
parent
f79e3a2fd5
commit
b693320f8d
|
@ -1,11 +1,11 @@
|
||||||
{% extends "socialaccount/base.html" %}
|
{% extends "socialaccount/base.html" %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% block head_title %}{% trans "Account Inactive" %}{% endblock %}
|
{% block head_title %}{% trans "Account Inactive" %}{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block modal_content %}
|
||||||
<h1>{% trans "Account Inactive" %}</h1>
|
<h1>{% trans "Account Inactive" %}</h1>
|
||||||
|
|
||||||
<p>{% trans "This account is inactive." %}</p>
|
<p>{% trans "This account is inactive." %}</p>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{% extends "socialaccount/base.html" %}
|
{% extends "socialaccount/base.html" %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% block head_title %}{% trans "Social Network Login Failure" %}{% endblock %}
|
{% block head_title %}{% trans "Social Network Login Failure" %}{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block modal_content %}
|
||||||
<h1>{% trans "Social Network Login Failure" %}</h1>
|
<h1>{% trans "Social Network Login Failure" %}</h1>
|
||||||
|
|
||||||
<p>{% trans "An error occured while attempting to login via your social network account." %}</p>
|
<p>{% trans "An error occured while attempting to login via your social network account." %}</p>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,56 +1,56 @@
|
||||||
{% extends "socialaccount/base.html" %}
|
{% extends "socialaccount/base.html" %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% block head_title %}{% trans "Account Connections" %}{% endblock %}
|
{% block head_title %}{% trans "Account Connections" %}{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block modal_content %}
|
||||||
<h1>{% trans "Account Connections" %}</h1>
|
<h1>{% trans "Account Connections" %}</h1>
|
||||||
|
|
||||||
{% if form.accounts %}
|
{% if form.accounts %}
|
||||||
<p>{% blocktrans %}You can sign in to your account using any of the following third party accounts:{% endblocktrans %}</p>
|
<p>{% blocktrans %}You can sign in to your account using any of the following third party accounts:{% endblocktrans %}</p>
|
||||||
|
|
||||||
|
|
||||||
<form class="uniForm" method="post">
|
<form class="uniForm" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
||||||
<fieldset class="blockLabels">
|
<fieldset class="blockLabels">
|
||||||
{% if form.non_field_errors %}
|
{% if form.non_field_errors %}
|
||||||
<div id="errorMsg">{{form.non_field_errors}}</div>
|
<div id="errorMsg">{{form.non_field_errors}}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% for base_account in form.accounts %}
|
{% for base_account in form.accounts %}
|
||||||
{% with base_account.get_provider_account as account %}
|
{% with base_account.get_provider_account as account %}
|
||||||
<div class="ctrlHolder">
|
<div class="ctrlHolder">
|
||||||
<label for="id_account_{{base_account.id}}">
|
<label for="id_account_{{base_account.id}}">
|
||||||
<input id="id_account_{{base_account.id}}" type="radio" name="account" value="{{base_account.id}}"/>
|
<input id="id_account_{{base_account.id}}" type="radio" name="account" value="{{base_account.id}}"/>
|
||||||
<span class="socialaccount_provider {{base_account.provider}} {{account.get_brand.id}}">{{account.get_brand.name}}</span>
|
<span class="socialaccount_provider {{base_account.provider}} {{account.get_brand.id}}">{{account.get_brand.name}}</span>
|
||||||
{{account}}
|
{{account}}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
<div class="buttonHolder">
|
<div class="buttonHolder">
|
||||||
<button type="submit">Remove</button>
|
<button type="submit">Remove</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>You currently have no social network accounts connected to this account.</p>
|
<p>You currently have no social network accounts connected to this account.</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<h2>{% trans 'Add a 3rd Party Account' %}</h2>
|
<h2>{% trans 'Add a 3rd Party Account' %}</h2>
|
||||||
|
|
||||||
<ul class="socialaccount_providers">
|
<ul class="socialaccount_providers">
|
||||||
{% include "socialaccount/snippets/provider_list.html" %}
|
{% include "socialaccount/snippets/provider_list.html" %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
{% include "socialaccount/snippets/login_extra.html" %}
|
{% include "socialaccount/snippets/login_extra.html" %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
{% extends "socialaccount/base.html" %}
|
{% extends "socialaccount/base.html" %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% block head_title %}{% trans "Login Cancelled" %}{% endblock %}
|
{% block head_title %}{% trans "Login Cancelled" %}{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block modal_content %}
|
||||||
|
|
||||||
<h1>{% trans "Login Cancelled" %}</h1>
|
<h1>{% trans "Login Cancelled" %}</h1>
|
||||||
|
|
||||||
{% url socialaccount_login as login_url %}
|
{% url socialaccount_login as login_url %}
|
||||||
|
|
||||||
<p>{% blocktrans %}You decided to cancel logging in to our site using one of your exisiting accounts. If this was a mistake, please proceed to <a href="{{login_url}}">sign in</a>.{% endblocktrans %}</p>
|
<p>{% blocktrans %}You decided to cancel logging in to our site using one of your exisiting accounts. If this was a mistake, please proceed to <a href="{{login_url}}">sign in</a>.{% endblocktrans %}</p>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
|
@ -1,25 +1,25 @@
|
||||||
{% extends "socialaccount/base.html" %}
|
{% extends "socialaccount/base.html" %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% block head_title %}{% trans "Signup" %}{% endblock %}
|
{% block head_title %}{% trans "Signup" %}{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block modal_content %}
|
||||||
<h1>{% trans "Sign Up" %}</h1>
|
<h1>{% trans "Sign Up" %}</h1>
|
||||||
|
|
||||||
<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
|
<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}}. As a final step, please complete the following form:{% endblocktrans %}</p>
|
{{site_name}}. As a final step, please complete the following form:{% endblocktrans %}</p>
|
||||||
|
|
||||||
<form class="signup" id="signup_form" method="post" action="">
|
<form class="signup" id="signup_form" method="post" action="">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{ form.as_p }}
|
{{ form.as_p }}
|
||||||
{% if redirect_field_value %}
|
{% if redirect_field_value %}
|
||||||
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" />
|
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<button type="submit">{% trans "Sign Up" %} »</button>
|
<button type="submit">{% trans "Sign Up" %} »</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user