-
Notifications
You must be signed in to change notification settings - Fork 1
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
66 changed files
with
1,037 additions
and
34 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,3 +1,3 @@ | ||
venv | ||
*.sqlite3 | ||
*.pyc | ||
*.pyc |
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 |
---|---|---|
|
@@ -137,3 +137,5 @@ | |
) | ||
|
||
CRISPY_TEMPLATE_PACK = 'bootstrap3' | ||
|
||
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.html" %} | ||
|
||
{% load i18n %} | ||
|
||
{% block head_title %}{% trans "Account Inactive" %}{% endblock %} | ||
|
||
{% block content %} | ||
<h1>{% trans "Account Inactive" %}</h1> | ||
|
||
<p>{% trans "This account is inactive." %}</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,3 @@ | ||
{% extends "base.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,88 @@ | ||
{% extends "account/base.html" %} | ||
{% load i18n %} | ||
{% load url from future %} | ||
{% block title %}{% trans "Email" %}{% endblock %} | ||
|
||
{% block content %} | ||
{% if messages %} | ||
{% for message in messages %} | ||
<div class="alert alert-{{message.tags}} alert-dismissable"> | ||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> | ||
{{message}} | ||
</div> | ||
{% endfor %} | ||
{% endif %} | ||
<div class="email-setting-wrapper"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-sm-6 col-sm-offset-3"> | ||
<h1>{% trans "Direcciones de E-mail" %}</h1> | ||
{% if user.emailaddress_set.all %} | ||
<p>{% trans 'Estas direcciones de email están asociadas a tu cuenta:' %}</p> | ||
|
||
<form action="{% url 'account_email' %}" class="email_list" method="post"> | ||
{% csrf_token %} | ||
<div class="form-group"> | ||
{% for emailaddress in user.emailaddress_set.all %} | ||
<div class="radio"> | ||
<label for="email_radio_{{forloop.counter}}" class="{% if emailaddress.primary %}primary_email{%endif%}"> | ||
|
||
<input id="email_radio_{{forloop.counter}}" type="radio" name="email" {% if emailaddress.primary %}checked="checked" {%endif %} value="{{emailaddress.email}}" /> | ||
<span class="{% if emailaddress.primary %}primary-email{% endif %}">{{ emailaddress.email }}</span> {% if emailaddress.verified %} | ||
<span class="verified">{% trans "Verified" %}</span> | ||
{% else %} | ||
<small class="text-muted">{% trans "Unverified" %}</small> | ||
{% endif %} {% if emailaddress.primary %} | ||
<small class="text-muted">{% trans "Primary" %}</small>{% endif %} | ||
</label> | ||
</div> | ||
|
||
{% endfor %} | ||
<hr> | ||
<div class="buttonHolder"> | ||
<button class="btn btn-default" type="submit" name="action_primary">{% trans 'Hacer primario' %}</button> | ||
<button class="btn btn-primary" type="submit" name="action_send">{% trans 'Re-enviar verificación' %}</button> | ||
<button class="btn btn-danger" type="submit" name="action_remove">{% trans 'Remover' %}</button> | ||
</div> | ||
</div> | ||
</form> | ||
<hr> | ||
{% else %} | ||
<p> | ||
<strong>{% trans 'Warning:'%}</strong>{% trans "You currently do not have any e-mail address set up. You should really add an e-mail address so you can receive notifications, reset your password, etc." %}</p> | ||
|
||
{% endif %} | ||
|
||
|
||
<h2>{% trans "Añadir direcciones de email" %}</h2> | ||
|
||
<form method="post" action="{% url 'account_email' %}" class="add_email"> | ||
{% csrf_token %} | ||
<div class="form-group"> | ||
<label for="id_email">E-mail:</label> | ||
<input id="id_email" class="form-control" name="email" size="30" type="text"> | ||
</div> | ||
<div class="form-group"> | ||
<button name="action_add" class="btn btn-primary" type="submit">{% trans "Añadir email" %}</button> | ||
<a href="{% url 'users:settings' %}" class="btn btn-link">Volver a configuración</a> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} {% block extra_bottom %} | ||
<script type="text/javascript"> | ||
(function() { | ||
var message = "{% trans 'Do you really want to remove the selected e-mail address?' %}"; | ||
var actions = document.getElementsByName('action_remove'); | ||
if (actions.length) { | ||
actions[0].addEventListener("click", function(e) { | ||
if (!confirm(message)) { | ||
e.preventDefault(); | ||
} | ||
}); | ||
} | ||
})(); | ||
</script> | ||
{% 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,4 @@ | ||
{% load account %}{% user_display user as user_display %}{% load i18n %}{% autoescape off %}{% blocktrans with current_site.name as site_name %}User {{ user_display }} at {{ site_name }} has given this as an email address. | ||
|
||
To confirm this is correct, go to {{ activate_url }} | ||
{% endblocktrans %}{% endautoescape %} |
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 @@ | ||
{% include "account/email/email_confirmation_message.txt" %} |
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 @@ | ||
{% include "account/email/email_confirmation_subject.txt" %} |
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,4 @@ | ||
{% load i18n %} | ||
{% autoescape off %} | ||
{% blocktrans %}Confirm E-mail Address{% endblocktrans %} | ||
{% endautoescape %} |
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,9 @@ | ||
{% load i18n %}{% blocktrans with site.domain as site_domain and user.username as username %}You're receiving this e-mail because you or someone else has requested a password for your user account at {{site_domain}}. | ||
It can be safely ignored if you did not request a password reset. Click the link below to reset your password. | ||
|
||
{{password_reset_url}} | ||
|
||
In case you forgot, your username is {{username}}. | ||
|
||
Thanks for using our site! | ||
{% endblocktrans %} |
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,4 @@ | ||
{% load i18n %} | ||
{% autoescape off %} | ||
{% blocktrans %}Password Reset E-mail{% endblocktrans %} | ||
{% endautoescape %} |
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,31 @@ | ||
{% extends "account/base.html" %} | ||
{% load url from future %} | ||
{% load i18n %} | ||
{% load account %} | ||
|
||
{% block head_title %}{% trans "Confirm E-mail Address" %}{% endblock %} | ||
|
||
|
||
{% 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 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,17 @@ | ||
{% extends "account/base.html" %} | ||
|
||
{% load i18n %} | ||
{% load account %} | ||
|
||
{% block head_title %}{% trans "Confirm E-mail Address" %}{% endblock %} | ||
|
||
|
||
{% block content %} | ||
|
||
<h1>{% trans "Confirm E-mail Address" %}</h1> | ||
|
||
{% user_display email_address.user as user_display %} | ||
|
||
<p>{% blocktrans with email_address.email as email %}You have confirmed that <a href="mailto:{{email}}">{{ email }}</a> is an e-mail address for user {{ user_display }}.{% endblocktrans %}</p> | ||
|
||
{% endblock %} |
Oops, something went wrong.