login.djhtml
1 |
|
2 |
{% load i18n %} |
3 |
|
4 |
{% block title %} |
5 |
{% trans "Log in | ◀ Joeni /▶" %} |
6 |
{% endblock %} |
7 |
|
8 |
{% block main %} |
9 |
<h1>{% trans "Authenticate with Joeni" %}</h1> |
10 |
<p> |
11 |
{% blocktrans %} |
12 |
This page is only visible for students and personnel of Hasselt University. |
13 |
Please authenticate yourself with Joeni in order to continue. |
14 |
{% endblocktrans %} |
15 |
</p> |
16 |
|
17 |
<style> |
18 |
/* label color */ |
19 |
.input-field label { |
20 |
color: #9e9e9e; |
21 |
} |
22 |
/* label focus color */ |
23 |
.input-field input[type=password]:focus + label { |
24 |
color: #ffc107; |
25 |
} |
26 |
/* label underline focus color */ |
27 |
.input-field input[type=password]:focus { |
28 |
border-bottom: 1px solid #ffc107; |
29 |
box-shadow: 0 1px 0 0 #ffc107; |
30 |
} |
31 |
.input-field input[type=text]:focus + label { |
32 |
color: #ffc107; |
33 |
} |
34 |
/* label underline focus color */ |
35 |
.input-field input[type=text]:focus { |
36 |
border-bottom: 1px solid #ffc107; |
37 |
box-shadow: 0 1px 0 0 #ffc107; |
38 |
} |
39 |
/* icon prefix focus color */ |
40 |
.input-field .prefix.active { |
41 |
color: #ffc107; |
42 |
} |
43 |
</style> |
44 |
<form action="{% url 'administration-login' %}" method="post"> |
45 |
{% csrf_token %} {# This is necessary for forms, CSRF protection. #} |
46 |
<input type="hidden" name="next" value="{{ next }}" /> |
47 |
<label for="name">{% trans "Name" %}</label> |
48 |
<input id="name" name="name" type="text" class="validate" require /> |
49 |
<br /> |
50 |
<label for="pass">{% trans "Passphrase" %}</label> |
51 |
<input id="pass" name="pass" type="password" require /> |
52 |
<input type="submit" value="{% trans "Log in" %}" /> |
53 |
</form> |
54 |
{% endblock main %} |
55 |