blob: 4e2e21cc7cfd77010adadf2bbd2bb928a648bd80 (
plain) (
blame)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
{% extends "pages/abstract/base.html.twig" %}
{# Overrides blocks in head of base template #}
{% block page_title %}{{ translate('SIGNIN') }}{% endblock %}
{% block page_description %}{{ translate('PAGE.LOGIN.DESCRIPTION', {'site_name': site.title }) }}{% endblock %}
{% block body_attributes %}
class="hold-transition login-page"
{% endblock %}
{% block content %}
<div class="login-box">
<div class="login-logo">
<a href="{{ site.uri.public }}">{{ site.title }}</a>
</div>
<!-- /.login-logo -->
<div class="login-box-body login-form">
<p class="login-box-msg"><strong>{{ translate('SIGNIN') }}</strong></p>
<div class="form-alerts" id="alerts-page"></div>
<form action="{{ site.uri.public }}/account/login" id="sign-in" method="post">
{% include "forms/csrf.html.twig" %}
<div class="form-group has-feedback">
<input type="text" class="form-control"
placeholder="{% if site.login.enable_email %}{{ translate('EMAIL_OR_USERNAME') }}{% else %}{{ translate('USERNAME') }}{% endif %}"
name="user_name">
<i class="glyphicon glyphicon-user form-control-icon" aria-hidden="true"></i>
</div>
<div class="form-group has-feedback">
<input type="password" class="form-control" placeholder="{{ translate('PASSWORD') }}"
name="password">
<i class="glyphicon glyphicon-lock form-control-icon" aria-hidden="true"></i>
</div>
<div class="row">
<div class="col-xs-8">
<div class="checkbox icheck">
<label>
<input type="checkbox" class="js-icheck"
name="rememberme"> {{ translate('REMEMBER_ME') }}
</label>
</div>
</div>
<!-- /.col -->
<div class="col-xs-4">
<button type="submit"
class="btn btn-primary btn-block btn-flat">{{ translate('LOGIN') }}</button>
</div>
<!-- /.col -->
</div>
</form>
<a href="{{ site.uri.public }}/account/forgot-password">{{ translate('PASSWORD.FORGET') }}</a><br>
{% if site.registration.require_email_verification %}
<a href="{{ site.uri.public }}/account/resend-verification">{{ translate('ACCOUNT.VERIFICATION.RESEND') }}</a>
<br>
{% endif %}
{% if site.registration.enabled %}
<a href="{{ site.uri.public }}/account/register">{{ translate('REGISTER') }}</a>
{% endif %}
</div>
<!-- /.login-box-body -->
</div>
<!-- /.login-box -->
{% endblock %}
{% block scripts_page %}
<!-- Include validation rules -->
<script>
{% include "pages/partials/page.js.twig" %}
</script>
<script>
site = $.extend(
true, // deep extend
{
"registration": {
"enabled": "{{ site.registration.enabled }}"
}
},
site
);
</script>
<!-- Include page-specific JS -->
{{ assets.js('js/pages/sign-in') | raw }}
{% endblock %}
|