mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-23 01:57:03 +03:00
Merge pull request #405 from yunti/load-url-tags
remove {% load url from future %} in templates - deprecated in django 1.9
This commit is contained in:
commit
cb9480437b
|
@ -1,7 +1,6 @@
|
|||
{% raw %}{% extends "account/base.html" %}
|
||||
|
||||
{% load i18n %}
|
||||
{% load url from future %}
|
||||
{% load crispy_forms_tags %}
|
||||
|
||||
{% block head_title %}{% trans "Account" %}{% endblock %}
|
||||
|
@ -13,7 +12,7 @@
|
|||
<h2>{% trans "E-mail Addresses" %}</h2>
|
||||
{% if user.emailaddress_set.all %}
|
||||
<p>{% trans 'The following e-mail addresses are associated with your account:' %}</p>
|
||||
|
||||
|
||||
<form action="{% url 'account_email' %}" class="email_list" method="post">
|
||||
{% csrf_token %}
|
||||
<fieldset class="blockLabels">
|
||||
|
@ -44,14 +43,14 @@
|
|||
</fieldset>
|
||||
</form>
|
||||
|
||||
{% else %}
|
||||
{% 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 "Add E-mail Address" %}</h2>
|
||||
|
||||
|
||||
<form method="post" action="." class="add_email">
|
||||
{% csrf_token %}
|
||||
{{ form|crispy }}
|
||||
|
@ -78,4 +77,4 @@
|
|||
})();
|
||||
</script>
|
||||
{% endblock %}
|
||||
{% endraw %}
|
||||
{% endraw %}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{% raw %}{% extends "account/base.html" %}
|
||||
|
||||
{% load url from future %}
|
||||
{% load i18n %}
|
||||
{% load account %}
|
||||
|
||||
|
@ -16,7 +15,7 @@
|
|||
{% 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 %}">
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
{% load i18n %}
|
||||
{% load account %}
|
||||
{% load socialaccount %}
|
||||
{% load url from future %}
|
||||
{% load crispy_forms_tags %}
|
||||
|
||||
{% block head_title %}{% trans "Sign In" %}{% endblock %}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{% raw %}{% extends "account/base.html" %}
|
||||
|
||||
{% load url from future %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block head_title %}{% trans "Sign Out" %}{% endblock %}
|
||||
|
@ -26,4 +25,4 @@
|
|||
</div>
|
||||
|
||||
{% endblock %}
|
||||
{% endraw %}
|
||||
{% endraw %}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{% raw %}{% extends "account/base.html" %}
|
||||
|
||||
{% load url from future %}
|
||||
{% load i18n %}
|
||||
{% load crispy_forms_tags %}
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{% raw %}{% extends "account/base.html" %}
|
||||
|
||||
{% load url from future %}
|
||||
{% load i18n %}
|
||||
{% block head_title %}{% trans "Change Password" %}{% endblock %}
|
||||
|
||||
|
@ -14,4 +13,4 @@
|
|||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% endraw %}
|
||||
{% endraw %}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{% raw %}{% extends "account/base.html" %}
|
||||
|
||||
{% load url from future %}
|
||||
{% load i18n %}
|
||||
{% load crispy_forms_tags %}
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{% raw %}{% extends "account/base.html" %}
|
||||
|
||||
{% load url from future %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block head_title %}{% trans "Sign Up Closed" %}{% endblock %}
|
||||
|
@ -16,4 +15,4 @@
|
|||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% endraw %}
|
||||
{% endraw %}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{% raw %}{% extends "account/base.html" %}
|
||||
|
||||
{% load url from future %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block head_title %}{% trans "Verify Your E-mail Address" %}{% endblock %}
|
||||
|
@ -26,4 +25,4 @@
|
|||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% endraw %}
|
||||
{% endraw %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user