Skip to content

Commit

Permalink
Adding google login buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe Álvarez committed May 6, 2016
1 parent 8ef2f3c commit 8a2530e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
7 changes: 7 additions & 0 deletions votai_general_theme/templates/_social_login_buttons.html
@@ -0,0 +1,7 @@
{% load i18n %}
<a class="btn btn-block btn-social btn-facebook" href="{% url 'social:begin' 'facebook' %}?next={% url 'backend_citizen:index' %}">
<span class="fa fa-facebook"></span>{% trans 'Entra con Facebook' %}
</a>
<a class="btn btn-block btn-social btn-google" href="{% url 'social:begin' 'google-oauth2' %}?next={% url 'backend_citizen:index' %}">
<span class="fa fa-google"></span>{% trans 'Entra con Google' %}
</a>
4 changes: 1 addition & 3 deletions votai_general_theme/templates/elections/home.html
Expand Up @@ -48,9 +48,7 @@ <h2 class="text-center">Registra tu usuario para crear una propuesta</h2>
<div class="row">
<div class="col-md-8 col-md-offset-2">
<h4>Ingresa con Facebook o Gmail</h4>
<a class="btn btn-block btn-social btn-facebook" href="{% url 'social:begin' 'facebook' %}?next={% url 'backend_citizen:index' %}">
<span class="fa fa-facebook"></span>{% trans 'Entra con Facebook' %}
</a>
{% include '_social_login_buttons.html' %}
</div>
</div>

Expand Down
7 changes: 1 addition & 6 deletions votai_general_theme/templates/registration/login.html
Expand Up @@ -24,12 +24,7 @@
<input type="hidden" name="next" value="{{ next }}" />
</form>
<div class="form-group">
{% include '_social_login_buttons.html' %}

<a class="btn btn-block btn-social btn-facebook" href="{% url 'social:begin' 'facebook' %}?next={% url 'backend_citizen:index' %}">
<span class="fa fa-facebook"></span>{% trans 'Entra con Facebook' %}
</a>
<a class="btn btn-block btn-social btn-google" href="{% url 'social:begin' 'google-oauth2' %}?next={% url 'backend_citizen:index' %}">
<span class="fa fa-google"></span>{% trans 'Entra con Google' %}
</a>
</div>
{% endblock %}

0 comments on commit 8a2530e

Please sign in to comment.