This repository has been archived by the owner on Oct 1, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conflicts: requirements.txt
- Loading branch information
Showing
18 changed files
with
261 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{% load compress %} | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
{% include 'apostello/includes/head.html' %} | ||
{% compress css %} | ||
<style> | ||
body { | ||
color: #ffffff; | ||
background-color: #222222; | ||
padding: 50px; | ||
} | ||
a { | ||
color: #ffffff; | ||
font-weight: bold; | ||
} | ||
a:hover { | ||
color: #ffffff; | ||
font-weight: bold; | ||
} | ||
div { | ||
border-radius: 5px; | ||
} | ||
</style> | ||
{% endcompress %} | ||
</head> | ||
<body> | ||
<div class="container-fluid"> | ||
<div class="row"> | ||
<div class="col-sm-4 col-sm-offset-4" style="background-color: #5c569c; padding: 10px"> | ||
{% block content %} | ||
{% endblock %} | ||
</div> | ||
</div> | ||
</div> | ||
</body> |
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,26 @@ | ||
{% extends 'account/base_apsotello.html' %} | ||
{% load i18n %} | ||
{% load account %} | ||
{% block content %} | ||
<h1>{% trans "Confirm E-mail Address" %}</h1> | ||
|
||
{% if confirmation %} | ||
|
||
{% user_display confirmation.email_address.user as user_display %} | ||
|
||
<p>{% blocktrans with confirmation.email_address.email as email %}Please confirm that <a href="mailto:{{ email }}">{{ email }}</a> is an e-mail address for user {{ user_display }}.{% endblocktrans %}</p> | ||
|
||
<form method="post" action="{% url 'account_confirm_email' confirmation.key %}"> | ||
{% csrf_token %} | ||
<button class="btn btn-primary" type="submit">{% trans 'Confirm' %}</button> | ||
</form> | ||
|
||
{% else %} | ||
|
||
{% url 'account_email' as email_url %} | ||
|
||
<p>{% blocktrans %}This e-mail confirmation link expired or is invalid. Please <a href="{{ email_url }}">issue a new e-mail confirmation request</a>.{% endblocktrans %}</p> | ||
|
||
{% endif %} | ||
|
||
{% 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{% extends 'account/base_apsotello.html' %} | ||
{% load i18n %} | ||
{% load account socialaccount %} | ||
{% load bootstrap3 %} | ||
{% load url from future %} | ||
{% block content %} | ||
{% get_providers as socialaccount_providers %} | ||
<h3>{% trans "Sign In" %}</h3> | ||
{% if socialaccount_providers %} | ||
<p>{% blocktrans with site.name as site_name %}Please sign in with one of your existing third party accounts. Or, <a href="{{ signup_url }}">sign up</a> | ||
for an {{site_name}} account and sign in below:{% endblocktrans %}</p> | ||
<div class="socialaccount_ballot"> | ||
<ul class="socialaccount_providers"> | ||
{% include "socialaccount/snippets/provider_list.html" with process="login" %} | ||
</ul> | ||
<div class="login-or">{% trans 'or' %}</div><br> | ||
</div> | ||
{% include "socialaccount/snippets/login_extra.html" %} | ||
{% else %} | ||
<p>{% blocktrans %}If you have not created an account yet, then please | ||
<a href="{{ signup_url }}">sign up</a> first.{% endblocktrans %}</p> | ||
{% endif %} | ||
|
||
<form class="login" method="POST" action="{% url 'account_login' %}"> | ||
{% csrf_token %} | ||
{% bootstrap_form form %} | ||
{% if redirect_field_value %} | ||
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" /> | ||
{% endif %} | ||
<button class="btn btn-primary" type="submit">{% trans "Sign In" %}</button> | ||
<br><br> | ||
<p><a href="{% url 'account_reset_password' %}">{% trans "Forgot Password?" %}</a></p> | ||
</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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% extends 'account/base_apsotello.html' %} | ||
{% load i18n %} | ||
{% load url from future %} | ||
{% block content %} | ||
<h3>{% trans "Sign Out" %}</h3> | ||
<p>{% trans '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}}"/> | ||
{% endif %} | ||
<button class="btn btn-warning" type="submit">{% trans 'Sign 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{% extends 'account/base_apsotello.html' %} | ||
{% load i18n %} | ||
{% load bootstrap3 %} | ||
{% load account %} | ||
{% block content %} | ||
<h3>{% trans "Password Reset" %}</h3> | ||
{% if user.is_authenticated %} | ||
{% include "account/snippets/already_logged_in.html" %} | ||
{% endif %} | ||
|
||
<p>{% trans "Forgotten your password? Enter your e-mail address below, and we'll send you an e-mail allowing you to reset it." %}</p> | ||
|
||
<form method="POST" action="{% url 'account_reset_password' %}" class="password_reset"> | ||
{% csrf_token %} | ||
{% bootstrap_form form %} | ||
<button class="btn btn-primary" type="submit">{% trans "Reset My Password" %}</button> | ||
</form> | ||
|
||
<p>{% blocktrans %}Please contact us if you have any trouble resetting your password.{% endblocktrans %}</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{% extends 'account/base_apsotello.html' %} | ||
{% load i18n %} | ||
{% load account %} | ||
{% block content %} | ||
<h3>{% trans "Password Reset" %}</h3> | ||
{% if user.is_authenticated %} | ||
{% include "account/snippets/already_logged_in.html" %} | ||
{% endif %} | ||
<p>{% blocktrans %}We have sent you an e-mail. Please contact us if you do not receive it within a few minutes.{% endblocktrans %}</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{% extends 'account/base_apsotello.html' %} | ||
{% load i18n %} | ||
{% load bootstrap3 %} | ||
{% block content %} | ||
<h3>{% if token_fail %}{% trans "Bad Token" %}{% else %}{% trans "Change Password" %}{% endif %}</h3> | ||
{% if token_fail %} | ||
{% url 'account_reset_password' as passwd_reset_url %} | ||
<p>{% blocktrans %}The password reset link was invalid, possibly because it has already been used. Please request a <a href="{{ passwd_reset_url }}">new password reset</a>.{% endblocktrans %}</p> | ||
{% else %} | ||
{% if form %} | ||
<form method="POST" action="."> | ||
{% csrf_token %} | ||
bootstrap_form form %} | ||
<button class="btn btn-primary" type="submit" name="action">{% trans "change password" %}</button> | ||
</form> | ||
{% else %} | ||
<p>{% trans 'Your password is now changed.' %}</p> | ||
{% endif %} | ||
{% endif %} | ||
{% endblock %} |
6 changes: 6 additions & 0 deletions
6
apostello/templates/account/password_reset_from_key_done.html
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,6 @@ | ||
{% extends "apostello/base.html" %} | ||
{% load i18n %} | ||
{% block content %} | ||
<h3>{% trans "Change Password" %}</h3> | ||
<p>{% trans 'Your password is now changed.' %}</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{% extends 'account/base_apsotello.html' %} | ||
{% load i18n %} | ||
{% load bootstrap3 %} | ||
{% block content %} | ||
<h3>{% trans "Set Password" %}</h3> | ||
<form method="POST" action="{% url 'account_set_password' %}" class="password_set"> | ||
{% csrf_token %} | ||
{% bootstrap_form form %} | ||
<input type="submit" name="action" value="{% trans "Set Password" %}"/> | ||
</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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{% extends 'account/base_apsotello.html' %} | ||
{% load i18n %} | ||
{% load account %} | ||
{% load bootstrap3 %} | ||
{% load url from future %} | ||
{% block content %} | ||
<h3>{% trans "Sign Up" %}</h3> | ||
<p>{% blocktrans %}Already have an account? Then please <a href="{{ login_url }}">sign in</a>.{% endblocktrans %}</p> | ||
<form class="signup" id="signup_form" method="post" action="{% url 'account_signup' %}"> | ||
{% csrf_token %} | ||
{% bootstrap_form form %} | ||
{% if redirect_field_value %} | ||
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" /> | ||
{% endif %} | ||
<button class="btn btn-primary" type="submit">{% trans "Sign Up" %} »</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
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,13 @@ | ||
{% extends "apostello/base.html" %} | ||
{% load bootstrap3 %} | ||
{% block content %} | ||
|
||
<h3>Account Not Approved</h3> | ||
|
||
<p>Your account has not yet been approved.</p> | ||
|
||
<p>All new accounts require approval to help prevent abuse. Someone should approve your account soon.</p> | ||
|
||
<p>Please get in touch if you believe you are seeing this in error.</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
Oops, something went wrong.