Commit 9b58f955 authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers 🍪

account details page contains links to passwords and accounts

parent fdf8a2d5
Pipeline #2111 passed with stages
in 4 minutes and 12 seconds
{% extends "base_dashboard.html" %}
{% load i18n bootstrap4 %}
{% block head_title %}{% trans "Change Password" %}{% endblock %}
{% block nav_account %}active{% endblock %}
{% block content %}
<h1 class="mt-4">{% trans "Change Password" %}</h1>
<form method="POST" action="{% url 'account_change_password' %}" class="password_change">
{% csrf_token %}
{% bootstrap_form form %}
<button type="submit" class="btn btn-primary" name="action">{% trans "Change Password" %}</button>
</form>
{% endblock %}
{% extends "base_dashboard.html" %}
{% load i18n %}
{% block head_title %}{% trans "Account Connections" %}{% endblock %}
{% block nav_account %} active {% endblock %}
{% block content %}
<h1>{% trans "Account Connections" %}</h1>
{% 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 }}">{{account.get_brand.name}}</span>
{{ account }}
</label>
</div>
{% endwith %}
{% endfor %}
<div>
<button type="submit">{% trans 'Remove' %}</button>
</div>
</fieldset>
</form>
{% else %}
<p>{% trans 'You currently have no social network accounts connected to this account.' %}</p>
{% endif %}
<h2>{% trans 'Add a 3rd Party Account' %}</h2>
<ul class="socialaccount_providers">
{% include "socialaccount/snippets/provider_list.html" with process="connect" %}
</ul>
{% include "socialaccount/snippets/login_extra.html" %}
{% endblock %}
......@@ -6,9 +6,13 @@
{% block content %}
<div class="my-4">
<h1>{% user_display profile %}</h1>
<h1 class="my-5">{% user_display profile %}</h1>
<h2>Account options</h2>
<ul>
<li><a href="{% url 'account_change_password' %}">Change Password</a></li>
<li><a href="{% url 'socialaccount_connections' %}">Account Connections</a></li>
</ul>
<h2>Change password</h2>
<p>You can change your password <a href="{% url 'account_change_password' %}">here</a></a>
</div>
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment