aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/default
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/default')
-rw-r--r--templates/web/default/auth/confirm.html23
-rw-r--r--templates/web/default/auth/general.html48
-rw-r--r--templates/web/default/auth/logout.html8
-rw-r--r--templates/web/default/auth/welcome.html11
4 files changed, 90 insertions, 0 deletions
diff --git a/templates/web/default/auth/confirm.html b/templates/web/default/auth/confirm.html
new file mode 100644
index 000000000..fc3abeeba
--- /dev/null
+++ b/templates/web/default/auth/confirm.html
@@ -0,0 +1,23 @@
+[% INCLUDE 'header.html', title => loc('Confirm account') %]
+
+[% IF user_now_confirmed %]
+
+<h1>[% loc('Account now confirmed') %]</h1>
+
+<p>Your account has been confirmed - thank you!</p>
+
+[% ELSE %]
+
+<h1>[% loc('Error') %]</h1>
+
+<p>We have not been able to confirm your account - sorry. This may be because:</p>
+
+<ul>
+ <li>Link too old or already used</li>
+ <li>URL not copied correctly</li>
+ <li>FIXME - reasons here</li>
+</ul>
+
+[% END %]
+
+[% INCLUDE 'footer.html' %] \ No newline at end of file
diff --git a/templates/web/default/auth/general.html b/templates/web/default/auth/general.html
new file mode 100644
index 000000000..f68843f41
--- /dev/null
+++ b/templates/web/default/auth/general.html
@@ -0,0 +1,48 @@
+[% INCLUDE 'header.html', title => loc('About Us') %]
+
+<h1>[% loc('Login or create an account') %]</h1>
+
+
+<form action="[% c.uri_for() %]" method="post" name="general_auth">
+
+ [% IF email_error;
+
+ # other keys include fqdn, mxcheck if you'd like to write a custom error message
+
+ errors = {
+ missing => loc('Please enter an email address'),
+ other => loc('Please check your email address is correct')
+ };
+
+ loc_email_error = errors.$email_error || errors.other;
+ END %]
+
+
+ <div>
+ <span class="error">[% loc_email_error %]</span><br>
+ <label for="email">[% loc('Your email:') %]</label>
+ <input type="text" name="email" value="[% email || '' | html %]">
+ </div>
+
+
+ <div>
+ <h3>I already have an account</h3>
+ <label for="password">[% loc('Your password:') %]</label>
+ <input type="password" name="password" value="">
+ <input type="submit" name="login" value="[% loc('Log me in') %]">
+ </div>
+
+ <div>
+ <h3>I don't have an account...</h3>
+ <input type="submit" name="create_account" value="[% loc('...create a new account now') %]">
+ </div>
+
+ <div>
+ <h3>I've forgotten my password...</h3>
+ <input type="submit" name="email_reset" value="[% loc('...email me a reset link') %]">
+ </div>
+
+</form>
+
+
+[% INCLUDE 'footer.html' %]
diff --git a/templates/web/default/auth/logout.html b/templates/web/default/auth/logout.html
new file mode 100644
index 000000000..9f3390f0a
--- /dev/null
+++ b/templates/web/default/auth/logout.html
@@ -0,0 +1,8 @@
+[% INCLUDE 'header.html', title => loc('Logout') %]
+
+<h1>[% loc('You have been logged out') %]</h1>
+
+<p>Please feel free to <a href="[% c.uri_for('/auth/') %]">login again</a>.</p>
+
+
+[% INCLUDE 'footer.html' %] \ No newline at end of file
diff --git a/templates/web/default/auth/welcome.html b/templates/web/default/auth/welcome.html
new file mode 100644
index 000000000..5727f82ad
--- /dev/null
+++ b/templates/web/default/auth/welcome.html
@@ -0,0 +1,11 @@
+[% INCLUDE 'header.html', title => loc('Welcome') %]
+
+<h1>[% loc('Welcome') %]</h1>
+
+<p>Your new account on FIXME has been created!</p>
+
+FIXME - add blurb about being sent an email with a confirmation link to confirm
+account.
+
+
+[% INCLUDE 'footer.html' %] \ No newline at end of file