]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/auth/auth_settings.html
Remove DJANGO_VERSION from the recommended settings
[osqa.git] / forum / skins / default / templates / auth / auth_settings.html
1 {% extends "user.html" %}
2 <!-- changepw.html -->
3 {% load i18n %}
4 {% block head %}{% endblock %}
5 {% block title %}{% spaceless %}{% trans "Authentication settings" %}{% endspaceless %}{% endblock %}
6 {% block usercontent %}
7 <h2>{% trans "Authentication settings" %}</h2>
8 {% if auth_keys %}
9     <p class="message">{% blocktrans %}These are the external authentication providers currently associated with your account.{% endblocktrans %}</p>
10     <div>
11         {% for key in auth_keys %}
12             <p>{{ key.name }} (<a href="{% url user_remove_external_provider id=key.id %}">{% trans "remove" %}</a>)</p>
13         {% endfor %}
14     </div>
15 {% endif %}
16 {% if not auth_keys %}
17     <p class="message">{% blocktrans %}You currently have no external authentication provider associated with your account.{% endblocktrans %}</p>
18 {% endif %}
19 {% ifequal view_user request.user %}
20     <input type="button" class="submit" value="{% trans "Add new provider" %}" onclick="window.location='{% url user_add_external_provider %}'" />
21 {% endifequal %}
22 {% if allow_local_auth %}
23 {% if has_password %}
24     <p class="message">{% blocktrans %}This is where you can change your password. Make sure you remember it!{% endblocktrans %}</p>
25 {% else %}
26     <p class="message">{% blocktrans %}You can set up a password for your account, so you can login using standard username and password!{% endblocktrans %}</p>
27 {% endif %}
28 <div class="aligned">
29         <form action="" method="post" accept-charset="utf-8">
30         {% csrf_token %}
31         <ul id="changepw-form" class="form-horizontal-rows">
32         {{form.as_ul}}
33         </ul>
34         <div class="submit-row"><input type="submit" class="submit" value="{% if has_password %}{% trans "Change password" %}{% endif %}{% if not has_password %}{% trans "Create password" %}{% endif %}" /></div>
35         </form>
36         </div>
37 {% endif %}
38 {% endblock %}
39 <!-- end changepw.html -->