diff options
Diffstat (limited to 'templates/web/default/auth')
-rw-r--r-- | templates/web/default/auth/change_password.html | 39 | ||||
-rw-r--r-- | templates/web/default/auth/general.html | 84 | ||||
-rw-r--r-- | templates/web/default/auth/sign_out.html | 7 | ||||
-rw-r--r-- | templates/web/default/auth/token.html | 26 |
4 files changed, 0 insertions, 156 deletions
diff --git a/templates/web/default/auth/change_password.html b/templates/web/default/auth/change_password.html deleted file mode 100644 index c10560c3e..000000000 --- a/templates/web/default/auth/change_password.html +++ /dev/null @@ -1,39 +0,0 @@ -[% INCLUDE 'header.html', title = loc('Change Password') %] - -<h1>[% loc('Change Password') %]</h1> - -[% IF password_changed %] - <p id="fixed">[% loc('Your password has been changed') %]</p> -[% END %] - - -<form action="[% c.uri_for('change_password') %]" method="post" name="change_password" class="fieldset"> - - [% IF password_error; - - errors = { - missing => loc('Please enter a password'), - mismatch => loc('The passwords do not match'), - other => loc('Please check the passwords and try again'), - }; - - loc_password_error = errors.$password_error || errors.other; %] - <div class="form-error">[% loc_password_error %]</div> - [% END %] - - <div class="form-field"> - <label for="new_password">[% loc('Password:') %]</label> - <input type="password" name="new_password" value="[% new_password | html %]"> - </div> - <div class="form-field"> - <label for="confirm">[% loc('Again:') %]</label> - <input type="password" name="confirm" value="[% confirm | html %]"> - </div> - <div class="checkbox"> - <input type="submit" value="[% loc('Change Password') %]"> - </div> - -</form> - - -[% INCLUDE 'footer.html' %] diff --git a/templates/web/default/auth/general.html b/templates/web/default/auth/general.html deleted file mode 100644 index f5e2e423f..000000000 --- a/templates/web/default/auth/general.html +++ /dev/null @@ -1,84 +0,0 @@ -[% 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"> -<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 %] - - [% 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 %] - - <div class="form-field"> - <label class="n" for="email">[% loc('Your email address:') %]</label> - <input type="email" class="required email" size="30" id="email" name="email" value="[% email | html %]"> - </div> - -<div id="form_sign_in"> - <h3>[% loc("Do you have a FixMyStreet password?") %]</h3> - - <div id="form_sign_in_yes"> - - <p> - <label class="n" for="password_sign_in">[% loc('<strong>Yes</strong> I have a password') %]</label> - <input type="password" name="password_sign_in" id="password_sign_in" value=""> - </p> - - <p> - <input type="checkbox" id="remember_me" name="remember_me" value='1'[% ' checked' IF remember_me %]> - <label class="n" for="remember_me"> - [% loc('Keep me signed in on this computer') %] - </label> - </p> - - <p> - <input type="submit" name="sign_in" value="[% loc('Sign in') %]"> - </p> - - </div> - <div id="form_sign_in_no"> - - <p>[% loc('<strong>No</strong>, I do not, let me sign in by email:') %]</p> - - <div class="fieldset"> - <div class="form-field"> - <label for="name">[% loc('Your name:') %]</label> - <input type="text" name="name" value=""> - </div> - - <div class="form-field"> - <label for="password_register">[% loc('Enter a new password:') %]</label> - <input type="password" name="password_register" id="password_register" value=""> - </div> - </div> - - <p><small>Providing a name and password is optional, but doing so - will allow you to more easily report problems, leave updates and - manage your reports.</small></p> - - <p> - <input type="submit" name="email_sign_in" value="[% loc('Sign in by email') %]"> - </p> - - </div> - -</div> - -</form> - - -[% INCLUDE 'footer.html' %] diff --git a/templates/web/default/auth/sign_out.html b/templates/web/default/auth/sign_out.html deleted file mode 100644 index 571e13f9f..000000000 --- a/templates/web/default/auth/sign_out.html +++ /dev/null @@ -1,7 +0,0 @@ -[% INCLUDE 'header.html', title = loc('Sign out'), bodyclass = 'fullwidthpage' %] - -<h1>[% loc('You have been signed out') %]</h1> - -<p>[% tprintf( loc('Please feel free to <a href="%s">sign in again</a>, or go back to the <a href="/">front page</a>.'), c.uri_for('/auth') ) %]</p> - -[% INCLUDE 'footer.html' %] diff --git a/templates/web/default/auth/token.html b/templates/web/default/auth/token.html deleted file mode 100644 index 361d4fbd5..000000000 --- a/templates/web/default/auth/token.html +++ /dev/null @@ -1,26 +0,0 @@ -[% INCLUDE 'header.html', title => loc('Confirm account') %] - -[% IF token_not_found %] - -<h1>[% loc('Error') %]</h1> - -<p> - [% loc('We have not been able to confirm your account - sorry.') %] - [% loc('This may be because the link is too old or already used, or the address was not copied correctly.') %] -</p> - -[% ELSE %] - -<h1>[% loc('Please check your email') %]</h1> - -<p>[% loc("We have sent you an email containing a link to confirm your account.") %]</p> - -[% IF c.cobrand.moniker != 'zurich' %] -<p>[% loc("The confirmation email <strong>may</strong> take a few minutes to arrive — <em>please</em> be patient.") %]</p> -[% END %] - -<p>[% loc("If you use web-based email or have 'junk mail' filters, you may wish to check your bulk/spam mail folders: sometimes, our messages are marked that way.") %]</p> - -[% END %] - -[% INCLUDE 'footer.html' %] |