Add basic functionality for self-registration.
[cas.git] / src / cas / templates / socialaccount / connections.html
1 {% extends "base.html" %}
2
3 {% load i18n %}
4 {% load static from staticfiles %}
5
6 {% block title %}{% trans "Account Connections" %}{% endblock %}
7
8 {% block content %}
9 <h1>{% trans "Account Connections" %}</h1>
10
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}}" style="display: inline; ;" 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 <img alt="{{ base_account.provider.name }}" style="vertical-align:middle"
30                 src="{% static 'img/auth/'|add:account.get_brand.id|add:'.png' %}" />
31 <small>{{account}}</small>
32 </label>
33 </div>
34 {% endwith %}
35 {% endfor %}
36
37 <div class="buttonHolder">
38 <button type="submit">{% trans "Remove" %}</button>
39 </div>
40
41 </fieldset>
42
43 </form>
44
45 {% else %}
46 <p>{% trans "You currently have no social network accounts connected to this account." %}</p>
47 {% endif %}
48
49 <h2>{% trans 'Add a 3rd Party Account' %}</h2>
50
51 <ul class="socialaccount_providers">
52 {% include "socialaccount/snippets/provider_list.html" %}
53 </ul>
54
55 {% include "socialaccount/snippets/login_extra.html" %}
56 {% endblock %}
57
58