blob: 09639d15b4054258e18653f104e961b791fba7db (
plain)
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
|
[% INCLUDE 'header.html', title = loc('Sign in or create an account') %]
<h1>[% loc('Sign in') %]</h1>
<form action="[% c.uri_for() %]" method="post" name="general_auth" class="validate">
<fieldset>
<input type="hidden" name="r" value="[% c.req.params.r | html %]">
[% IF email_error;
# other keys include fqdn, mxcheck if you'd like to write a custom error message
errors = {
missing => loc('Please enter your email'),
other => loc('Please check your email address is correct')
};
loc_email_error = errors.$email_error || errors.other;
END %]
<label class="n" for="email">[% loc('Email') %]</label>
[% IF loc_email_error %]
<div class="form-error">[% loc_email_error %]</div>
[% ELSIF sign_in_error %]
<div class="form-error">[% loc('There was a problem with your email/password combination. If you cannot remember your password, or do not have one, please fill in the ‘sign in by email’ section of the form.') %]</div>
[% END %]
<input type="email" class="form-control required email" id="email" name="email" value="[% email | html %]" placeholder="[% loc('Your email address') %]">
<div class="form-txt-submit-box">
<label class="n" for="password_sign_in">Password</label>
<input type="password" class="form-control" name="password_sign_in" id="password_sign_in" value="" placeholder="[% loc('Your password') %]">
</div>
<div class="form-txt-submit-box">
<input type="checkbox" id="remember_me" name="remember_me" value='1'[% ' checked' IF remember_me %]>
<label class="inline n" for="remember_me">[% loc('Keep me signed in on this computer') %]</label>
</div>
<div class="form-txt-submit-box">
<input class="green-btn" type="submit" name="sign_in" value="[% loc('Sign in') %]">
</div>
</fieldset>
</form>
[% INCLUDE 'footer.html' %]
|