fix of a fix
[wolnelektury.git] / apps / wolnelektury_core / 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 <h1>{% trans "Account Connections" %}</h1>
9
10 {% if form.accounts %}
11 <p>{% blocktrans %}You can sign in to your account using any of the following third party accounts:{% endblocktrans %}</p>
12
13
14 <form class="uniForm" method="post">
15 {% csrf_token %}
16
17 <fieldset class="blockLabels">
18 {% if form.non_field_errors %}
19 <div id="errorMsg">{{form.non_field_errors}}</div>
20 {% endif %}
21
22 {% for base_account in form.accounts %}
23 {% with base_account.get_provider_account as account %}
24 <div class="ctrlHolder">
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 {{account.get_provider}}">{{account.get_provider}}</span>
28 {{account}}
29 </label>
30 </div>
31 {% endwith %}
32 {% endfor %}
33
34 <div class="buttonHolder">
35 <button type="submit">{% trans "Remove" %}</button>
36 </div>
37
38 </fieldset>
39
40 </form>
41
42 {% else %}
43 <p>{% trans "You currently have no social network accounts connected to this account." %}</p>
44 {% endif %}
45
46 <h2>{% trans 'Add a 3rd Party Account' %}</h2>
47
48 <ul class="socialaccount_providers">
49 {% include "socialaccount/snippets/provider_list.html" %}
50 </ul>
51
52 {% include "socialaccount/snippets/login_extra.html" %}
53
54 {% endblock %}
55
56