aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/zurich/auth/general.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/zurich/auth/general.html')
-rw-r--r--templates/web/zurich/auth/general.html73
1 files changed, 73 insertions, 0 deletions
diff --git a/templates/web/zurich/auth/general.html b/templates/web/zurich/auth/general.html
new file mode 100644
index 000000000..11c729fde
--- /dev/null
+++ b/templates/web/zurich/auth/general.html
@@ -0,0 +1,73 @@
+[% INCLUDE 'header.html', title = loc('Sign in or create an account') %]
+
+[% 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 %]
+
+<form action="[% c.uri_for() %]" 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="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 &lsquo;sign in by email&rsquo; section of the form.') %]</div>
+ [% END %]
+ <input type="email" class="required email" id="email" name="email" value="[% email | html %]" placeholder="[% loc('Your email address') %]">
+
+ <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" 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="[% c.uri_for() %]" 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="email2">[% loc('Email') %]</label>
+ [% IF loc_email_error %]
+ <div class="form-error">[% loc_email_error %]</div>
+ [% END %]
+ <input type="email" class="required email" id="email2" name="email" value="[% email | 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="email_sign_in" value="Registrieren">
+ </div>
+
+ </div>
+ </fieldset>
+</form>
+
+[% INCLUDE 'footer.html' %]