mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 19:37:06 +00:00
71 lines
1.8 KiB
HTML
Executable File
71 lines
1.8 KiB
HTML
Executable File
{% extends "socialaccount/base.html" %}
|
|
|
|
{% load i18n %}
|
|
|
|
{% block head_title %}{% trans "Account Connections" %}{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
{% load i18n %}
|
|
|
|
<a class="btn btn-primary mb-4" href="{% url 'account_email' %}">{% trans "Account Details" %}</a>
|
|
|
|
<h2 class="h2" id="head_banner">{% trans "Account Connections" %}</h2>
|
|
|
|
{% if form.accounts %}
|
|
<p>{% blocktrans %}You can sign in to your account using any of the following third party accounts:{% endblocktrans %}
|
|
</p>
|
|
|
|
|
|
<form method="post" action="{% url 'socialaccount_connections' %}">
|
|
{% csrf_token %}
|
|
|
|
<fieldset>
|
|
{% if form.non_field_errors %}
|
|
<div id="errorMsg">{{ form.non_field_errors }}</div>
|
|
{% endif %}
|
|
|
|
{% for base_account in form.accounts %}
|
|
{% with base_account.get_provider_account as account %}
|
|
<div>
|
|
<label for="id_account_{{ base_account.id }}">
|
|
<input id="id_account_{{ base_account.id }}" type="radio" name="account"
|
|
value="{{ base_account.id }}" />
|
|
<span class="socialaccount_provider {{ base_account.provider }} {{ account.get_brand.id }}">
|
|
{% if account.get_brand.name == "Microsoft Graph" %}
|
|
Microsoft
|
|
{% else %}
|
|
{{ account.get_brand.name }}
|
|
{% endif %}
|
|
-
|
|
</span>
|
|
{{ account }}
|
|
</label>
|
|
</div>
|
|
{% endwith %}
|
|
{% endfor %}
|
|
|
|
<div>
|
|
<button class="btn btn-danger" type="submit">{% trans 'Remove' %}</button>
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
{% else %}
|
|
<p>{% trans 'You currently have no third party accounts connected to this account.' %}</p>
|
|
{% endif %}
|
|
|
|
<h3 class="h3" id="head_banner">{% trans 'Add Federated Login Account' %}</h3>
|
|
|
|
<p>Adding a third party account allows you to log in to this site with it.</p>
|
|
|
|
<div class="social_providers_list">
|
|
{% include "socialaccount/snippets/provider_list.html" with process="connect" %}
|
|
</div>
|
|
|
|
{% include "socialaccount/snippets/login_extra.html" %}
|
|
|
|
{% endblock %}
|