More Py3 compatibility fixes.
[wolnelektury.git] / src / wolnelektury / templates / socialaccount / connections.html
1 {% extends "site_base.html" %}
2
3 {% load i18n %}
4
5 {% block head_title %}{% trans "Account Connections" %}{% endblock %}
6
7 {% block body %}
8 <div class="normal-text white-box">
9
10 <h1>{% trans "Account Connections" %}</h1>
11
12 {% if form.accounts %}
13 <p>{% blocktrans %}You can sign in to your account using any of the following third party accounts:{% endblocktrans %}</p>
14
15
16 <form method="post">
17 {% csrf_token %}
18
19 {% if form.non_field_errors %}
20 <div>{{form.non_field_errors}}</div>
21 {% endif %}
22
23 {% for base_account in form.accounts %}
24 {% with base_account.get_provider_account as account %}
25 <label for="id_account_{{base_account.id}}">
26 <input id="id_account_{{base_account.id}}" type="radio" name="account" value="{{base_account.id}}"/>
27 <span class="socialaccount_provider {{base_account.provider}} {{account.get_brand.id}}">{{account.get_brand.name}}</span>
28 <small>{{account}}</small>
29 </label><br><br>
30 {% endwith %}
31 {% endfor %}
32
33 <button type="submit">{% trans "Remove" %}</button>
34
35
36 </form>
37
38 {% else %}
39 <p>{% trans "You currently have no social network accounts connected to this account." %}</p>
40 {% endif %}
41
42 {% if USE_OPENID %}
43 <h2>{% trans 'Add a 3rd Party Account' %}</h2>
44
45 <ul class="socialaccount_providers">
46 {% include "socialaccount/snippets/provider_list.html" with process="connect" %}
47 </ul>
48
49 {% include "socialaccount/snippets/login_extra.html" %}
50 {% endif %}
51 </div>
52 {% endblock %}
53
54