-
Notifications
You must be signed in to change notification settings - Fork 0
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
8 changed files
with
122 additions
and
137 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
{% extends "base.html" %} | ||
{% block title %}{% block head_title %}{% endblock head_title %}{% endblock title %} | ||
|
||
{% block content %} | ||
<div class="row"> | ||
<div class="col-md-6 offset-md-3"> | ||
{% block inner %}{% endblock %} | ||
{% extends "base.html" %} {% block content %} | ||
<div class="flex h-screen"> | ||
<div | ||
class="hidden sm:flex sm:w-1/2 bg-gray-700 text-white flex-col justify-center p-2 text-center" | ||
> | ||
<div class="text-5xl font-bold pb-1">Arike</div> | ||
<div class="text-lg"> | ||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Laudantium est | ||
commodi sed. | ||
</div> | ||
</div> | ||
<div | ||
class="overflow-y-auto w-full sm:w-1/2 py-4 px-5 flex flex-col justify-center" | ||
> | ||
<div class="text-2xl text-gray-700 font-semibold pb-1 text-center"> | ||
{% block title %} {% endblock title %} | ||
</div> | ||
<div class="">{% block inner %}{% endblock %}</div> | ||
</div> | ||
</div> | ||
{% endblock %} |
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 |
---|---|---|
@@ -1,59 +1,47 @@ | ||
{% extends "account/base.html" %} | ||
|
||
{% load i18n %} | ||
{% load account socialaccount %} | ||
{% load crispy_forms_tags %} | ||
|
||
{% block head_title %}{% translate "Sign In" %}{% endblock %} | ||
|
||
{% block inner %} | ||
|
||
<h1>{% translate "Sign In" %}</h1> | ||
|
||
{% get_providers as socialaccount_providers %} | ||
|
||
{% extends "account/base.html" %} {% load i18n %} {% load crispy_forms_tags %} | ||
{% load account socialaccount %} {% block title %} Sign In {% endblock %} | ||
{% block inner %} {% get_providers as socialaccount_providers %} | ||
{% if socialaccount_providers %} | ||
<p> | ||
{% translate "Please sign in with one of your existing third party accounts:" %} | ||
{% if ACCOUNT_ALLOW_REGISTRATION %} | ||
{% blocktranslate trimmed %} | ||
Or, <a href="{{ signup_url }}">sign up</a> | ||
for a {{ site_name }} account and sign in below: | ||
{% endblocktranslate %} | ||
{% endif %} | ||
</p> | ||
|
||
<div class="socialaccount_ballot"> | ||
|
||
<ul class="socialaccount_providers"> | ||
{% include "socialaccount/snippets/provider_list.html" with process="login" %} | ||
</ul> | ||
|
||
<div class="login-or">{% translate "or" %}</div> | ||
|
||
</div> | ||
|
||
{% include "socialaccount/snippets/login_extra.html" %} | ||
|
||
{% else %} | ||
{% if ACCOUNT_ALLOW_REGISTRATION %} | ||
<p> | ||
{% blocktranslate trimmed %} | ||
If you have not created an account yet, then please | ||
<a href="{{ signup_url }}">sign up</a> first. | ||
{% endblocktranslate %} | ||
</p> | ||
{% endif %} | ||
{% endif %} | ||
<p> | ||
{% translate "Please sign in with one of your existing third party accounts:" | ||
%} {% if ACCOUNT_ALLOW_REGISTRATION %} {% blocktranslate trimmed %} Or, | ||
<a href="{{ signup_url }}">sign up</a> | ||
for a {{ site_name }} account and sign in below: {% endblocktranslate %} {% | ||
endif %} | ||
</p> | ||
|
||
<div class="socialaccount_ballot"> | ||
<ul class="socialaccount_providers"> | ||
{% include "socialaccount/snippets/provider_list.html" with process="login" | ||
%} | ||
</ul> | ||
|
||
<div class="login-or">{% translate "or" %}</div> | ||
</div> | ||
|
||
{% include "socialaccount/snippets/login_extra.html" %} {% else %} {% if | ||
ACCOUNT_ALLOW_REGISTRATION %} | ||
<p> | ||
{% blocktranslate trimmed %} If you have not created an account yet, then | ||
please | ||
<a href="{{ signup_url }}">sign up</a> first. {% endblocktranslate %} | ||
</p> | ||
{% endif %} {% endif %} | ||
|
||
<form class="login" method="POST" action="{% url 'account_login' %}"> | ||
{% csrf_token %} | ||
{{ form|crispy }} | ||
{% if redirect_field_value %} | ||
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" /> | ||
{% csrf_token %} {{ form|crispy }} {% if redirect_field_value %} | ||
<input | ||
type="hidden" | ||
name="{{ redirect_field_name }}" | ||
value="{{ redirect_field_value }}" | ||
/> | ||
{% endif %} | ||
<a class="button secondaryAction" href="{% url 'account_reset_password' %}">{% translate "Forgot Password?" %}</a> | ||
<button class="primaryAction btn btn-primary" type="submit">{% translate "Sign In" %}</button> | ||
<a class="font-semibold text-gray-600 mb-2" href="{% url 'account_reset_password' %}"> | ||
Forgot Password? | ||
</a> | ||
<button class="bg-gray-700 p-2 rounded-xl w-full text-white" type="submit"> | ||
Login | ||
</button> | ||
</form> | ||
|
||
{% endblock %} |
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 |
---|---|---|
@@ -1,19 +1,20 @@ | ||
{% extends "account/base.html" %} | ||
|
||
{% load i18n %} | ||
|
||
{% block head_title %}{% translate "Sign Out" %}{% endblock %} | ||
{% extends "account/base.html" %} {% load i18n %} | ||
{% block title %}Sign Out {% endblock %} | ||
|
||
{% block inner %} | ||
<h1>{% translate "Sign Out" %}</h1> | ||
|
||
<p>{% translate 'Are you sure you want to sign out?' %}</p> | ||
<p class="text-xl py-2 text-center">{% translate 'Are you sure you want to sign out?' %}</p> | ||
|
||
<form method="post" action="{% url 'account_logout' %}"> | ||
{% csrf_token %} | ||
{% if redirect_field_value %} | ||
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}"/> | ||
{% csrf_token %} {% if redirect_field_value %} | ||
<input | ||
type="hidden" | ||
name="{{ redirect_field_name }}" | ||
value="{{ redirect_field_value }}" | ||
/> | ||
{% endif %} | ||
<button class="btn btn-danger" type="submit">{% translate 'Sign Out' %}</button> | ||
<button class="bg-red-700 p-2 rounded-xl w-full text-white mt-3" type="submit"> | ||
Log Out | ||
</button> | ||
</form> | ||
{% endblock %} |
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 |
---|---|---|
@@ -1,22 +1,27 @@ | ||
{% extends "account/base.html" %} | ||
{% extends "account/base.html" %} {% load i18n %} {% load crispy_forms_tags %} | ||
{% block title %} Sign Up {% endblock %} {% block inner %} | ||
|
||
{% load i18n %} | ||
{% load crispy_forms_tags %} | ||
|
||
{% block head_title %}{% translate "Signup" %}{% endblock %} | ||
|
||
{% block inner %} | ||
<h1>{% translate "Sign Up" %}</h1> | ||
|
||
<p>{% blocktranslate %}Already have an account? Then please <a href="{{ login_url }}">sign in</a>.{% endblocktranslate %}</p> | ||
|
||
<form class="signup" id="signup_form" method="post" action="{% url 'account_signup' %}"> | ||
{% csrf_token %} | ||
{{ form|crispy }} | ||
{% if redirect_field_value %} | ||
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" /> | ||
<form | ||
class="signup" | ||
id="signup_form" | ||
method="post" | ||
action="{% url 'account_signup' %}" | ||
> | ||
{% csrf_token %} {{ form|crispy }} {% if redirect_field_value %} | ||
<input | ||
type="hidden" | ||
name="{{ redirect_field_name }}" | ||
value="{{ redirect_field_value }}" | ||
/> | ||
{% endif %} | ||
<button class="btn btn-primary" type="submit">{% translate "Sign Up" %} »</button> | ||
<button class="bg-gray-700 p-2 rounded-xl w-full text-white" type="submit"> | ||
Sign Up | ||
</button> | ||
</form> | ||
|
||
<p class="pt-2"> | ||
Already have an account? Then please | ||
<a href="{{ login_url }}" class="font-semibold text-gray-600">sign in</a>. | ||
</p> | ||
|
||
{% endblock %} |
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