(de)associate local profile with remote accounts
This commit is contained in:
parent
4029deb1bf
commit
4753a2a84c
@ -2,14 +2,32 @@
|
||||
{% load bootstrap %}
|
||||
|
||||
{% block content %}
|
||||
<h1>User Profile of {{ request.user.username }}</h1>
|
||||
<div class="row">
|
||||
<div class="col-lg-4">
|
||||
<h1>User Profile of {{ request.user.username }}</h1>
|
||||
<form method="post" action="">
|
||||
{% csrf_token %}
|
||||
{{ form|bootstrap }}
|
||||
<button type="submit" class="btn btn-primary">Save</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="col-lg-1">
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<h1>Associate with remote Account</h1>
|
||||
<ul>
|
||||
{% for backend in backends.not_associated %}
|
||||
<li><a href="{% url 'social:begin' backend %}">{{ backend }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<h1>Deassociate from remote Account</h1>
|
||||
<ul>
|
||||
{% for socauth in backends.associated %}
|
||||
<li><a href="{% url 'social:disconnect_individual' socauth.provider socauth.pk %}">{{ socauth.provider }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-lg-1">
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user