Deploy in Makefile.
[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 class="uniForm" method="post">
17 {% csrf_token %}
18
19 <fieldset class="blockLabels">
20 {% if form.non_field_errors %}
21 <div id="errorMsg">{{form.non_field_errors}}</div>
22 {% endif %}
23
24 {% for base_account in form.accounts %}
25 {% with base_account.get_provider_account as account %}
26 <div class="ctrlHolder">
27 <label for="id_account_{{base_account.id}}">
28 <input id="id_account_{{base_account.id}}" type="radio" name="account" value="{{base_account.id}}"/>
29 <span class="socialaccount_provider {{base_account.provider}} {{account.get_brand.id}}">{{account.get_brand.name}}</span>
30 <small>{{account}}</small>
31 </label>
32 </div>
33 {% endwith %}
34 {% endfor %}
35
36 <div class="buttonHolder">
37 <button type="submit">{% trans "Remove" %}</button>
38 </div>
39
40 </fieldset>
41
42 </form>
43
44 {% else %}
45 <p>{% trans "You currently have no social network accounts connected to this account." %}</p>
46 {% endif %}
47
48 {% if USE_OPENID %}
49 <h2>{% trans 'Add a 3rd Party Account' %}</h2>
50
51 <ul class="socialaccount_providers">
52 {% include "socialaccount/snippets/provider_list.html" with process="connect" %}
53 </ul>
54
55 {% include "socialaccount/snippets/login_extra.html" %}
56 {% endif %}
57 </div>
58 {% endblock %}
59
60