Merge branch 'master' into funding
[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 <div class="normal-text white-box">
11 {% if form.accounts %}
12 <p>{% blocktrans %}You can sign in to your account using any of the following third party accounts:{% endblocktrans %}</p>
13
14
15 <form class="uniForm" method="post">
16 {% csrf_token %}
17
18 <fieldset class="blockLabels">
19 {% if form.non_field_errors %}
20 <div id="errorMsg">{{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 <div class="ctrlHolder">
26 <label for="id_account_{{base_account.id}}">
27 <input id="id_account_{{base_account.id}}" type="radio" name="account" value="{{base_account.id}}"/>
28 <span class="socialaccount_provider {{base_account.provider}} {{account.get_brand.id}}">{{account.get_brand.name}}</span>
29 <small>{{account}}</small>
30 </label>
31 </div>
32 {% endwith %}
33 {% endfor %}
34
35 <div class="buttonHolder">
36 <button type="submit">{% trans "Remove" %}</button>
37 </div>
38
39 </fieldset>
40
41 </form>
42
43 {% else %}
44 <p>{% trans "You currently have no social network accounts connected to this account." %}</p>
45 {% endif %}
46
47 <h2>{% trans 'Add a 3rd Party Account' %}</h2>
48
49 <ul class="socialaccount_providers">
50 {% include "socialaccount/snippets/provider_list.html" %}
51 </ul>
52
53 {% include "socialaccount/snippets/login_extra.html" %}
54 </div>
55 {% endblock %}
56
57