blob: 899f0ca7171115d96bb322ab92b4b189446025c5 (
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
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
|
[% INCLUDE 'header.html', title = loc('Sign in or create an account') %]
[% IF username_error;
# other keys include fqdn, mxcheck if you'd like to write a custom error message
errors = {
missing_email = loc('Please enter your email'),
other_email = loc('Please check your email address is correct')
};
loc_username_error = errors.$username_error || errors.other_email;
END %]
<form action="/auth" method="post" name="general_auth_login" class="validate">
<fieldset>
<h1>[% loc('Sign in') %]</h1>
<input type="hidden" name="r" value="[% c.req.params.r | html %]">
<div id="form_sign_in_yes" class="form-box">
<label class="n" for="username">[% loc('Email') %]</label>
[% IF loc_username_error %]
<div class="form-error">[% loc_username_error %]</div>
[% ELSIF sign_in_error %]
<div class="form-error">[% loc('There was a problem with your login information. If you cannot remember your password, or do not have one, please fill in the ‘No’ section of the form.') %]</div>
[% END %]
<input type="email" class="required email" id="username" name="username" value="[% username | html %]" placeholder="[% loc('Your email address') %]" autofocus>
<label for="password_sign_in">[% loc('Password (optional)') %]</label>
<div class="form-txt-submit-box">
<input type="password" class="required" name="password_sign_in" id="password_sign_in" value="" placeholder="[% loc('Your password') %]">
<input class="green-btn" type="submit" name="sign_in_by_password" value="[% loc('Sign in') %]">
</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>
</fieldset>
</form>
<form action="/auth" method="post" name="general_auth_register" class="validate">
<fieldset>
<input type="hidden" name="r" value="[% c.req.params.r | html %]">
<h1>[% loc('<strong>No</strong> let me sign in by email') %]</h1>
<div id="form_sign_in_no" class="form-box">
<label class="n" for="username2">[% loc('Email') %]</label>
[% IF loc_username_error %]
<div class="form-error">[% loc_username_error %]</div>
[% END %]
<input type="email" class="required email" id="username2" name="username" value="[% username | html %]" placeholder="[% loc('Your email address') %]">
<label for="name">[% loc('Name') %]</label>
<input type="text" class="required" name="name" value="" placeholder="[% loc('Your name') %]">
<label for="password_register">[% loc('Password (optional)') %]</label>
<div class="form-txt-submit-box">
<input type="password" class="required" name="password_register" id="password_register" value="" placeholder="[% loc('Enter a password') %]">
<input class="green-btn" type="submit" name="sign_in_by_code" value="Registrieren">
</div>
</div>
</fieldset>
</form>
[% INCLUDE 'footer.html' %]
|