Skip to content

Commit

Permalink
Removed more empty actions (closes #463)
Browse files Browse the repository at this point in the history
  • Loading branch information
pennersr committed Nov 26, 2013
1 parent 5aec19d commit f1b703f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions allauth/templates/socialaccount/connections.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{% extends "socialaccount/base.html" %}

{% load i18n %}
{% load url from future %}

{% block head_title %}{% trans "Account Connections" %}{% endblock %}

Expand All @@ -11,17 +12,17 @@ <h1>{% trans "Account Connections" %}</h1>
<p>{% blocktrans %}You can sign in to your account using any of the following third party accounts:{% endblocktrans %}</p>


<form class="uniForm" method="post">
<form method="post" action="{% url 'socialaccount_connections' %}">
{% csrf_token %}

<fieldset class="blockLabels">
<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 class="ctrlHolder">
<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>
Expand All @@ -31,7 +32,7 @@ <h1>{% trans "Account Connections" %}</h1>
{% endwith %}
{% endfor %}

<div class="buttonHolder">
<div>
<button type="submit">{% trans 'Remove' %}</button>
</div>

Expand All @@ -52,5 +53,3 @@ <h2>{% trans 'Add a 3rd Party Account' %}</h2>
{% include "socialaccount/snippets/login_extra.html" %}

{% endblock %}


0 comments on commit f1b703f

Please sign in to comment.