forked from agoravoting/agora-ciudadana
/
auth.html
51 lines (42 loc) · 1.65 KB
/
auth.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{% extends 'base.html' %}
{% load i18n %}
{% load crispy_forms_tags %}
{% block title %}{% trans 'Log in' %}{% endblock %}
{% block running-board-wrapper-class %}auth-board{% endblock %}
{% block running-board %}
{% block script-block %}
<script type="text/javascript">
$(document).ready(function() {
$(".span3").bind("click", function(e) {
$(".auth-highlight").removeClass("auth-highlight");
$(this).addClass("auth-highlight");
console.log("ergerg");
});
});
</script>
{% endblock %}
<div class="row">
<div class="span3 {% ifequal action 'login' %}auth-highlight{% endifequal %}">
<h3>{% trans "Log in" %}</h3>
<p>{% trans "Please log in to continue." %}</p>
{% crispy login_form %}
</div>
<div class="span3 {% ifequal action 'register' %}auth-highlight{% endifequal %}">
<h3>{% blocktrans %}New to {{ SITE_NAME }}?{% endblocktrans %}</h3>
<p>{% blocktrans %}An account in {{ SITE_NAME }} is required to continue.{% endblocktrans %}</p>
{% crispy register_form %}
</div>
<div class="span3 use-account">
<h3>{% trans "Use your account in.." %}</h3>
<p>{% trans "You can log in using your account in Twitter." %}</p>
<div>
<a href="{% url socialauth_begin 'twitter' %}">
<img src="{{ STATIC_URL }}img/sign-in-with-twitter-l.png" />
</a>
</div>
<strong>{% trans "Privacy" %}</strong>
<small>{% trans "We won't give any private data to Twitter and we will not use your profile to post anything without your permission." %}</small>
</a>
</div>
</div>
{% endblock %}