(de)associate local profile with remote accounts

This commit is contained in:
Thomas Waldmann 2013-11-02 08:26:15 +01:00
parent 4029deb1bf
commit 4753a2a84c

View File

@ -2,14 +2,32 @@
{% load bootstrap %} {% load bootstrap %}
{% block content %} {% block content %}
<h1>User Profile of {{ request.user.username }}</h1>
<div class="row"> <div class="row">
<div class="col-lg-4"> <div class="col-lg-4">
<form method="post" action=""> <h1>User Profile of {{ request.user.username }}</h1>
{% csrf_token %} <form method="post" action="">
{{ form|bootstrap }} {% csrf_token %}
<button type="submit" class="btn btn-primary">Save</button> {{ form|bootstrap }}
</form> <button type="submit" class="btn btn-primary">Save</button>
</div> </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> </div>
{% endblock %} {% endblock %}