aboutsummaryrefslogtreecommitdiffstats
path: root/root/register
diff options
context:
space:
mode:
authorBuchan Milne <buchan@mageia.org>2010-10-26 14:51:48 +0000
committerBuchan Milne <buchan@mageia.org>2010-10-26 14:51:48 +0000
commit601b41083cf7c2186ecce70ec07aebdb9310edd6 (patch)
tree23d14b17ec560316d94f0d840f47a4ae48e9d7b3 /root/register
parent195308dcc10a015aaae5fd1f1bd0be817c2127bd (diff)
downloadidentity-601b41083cf7c2186ecce70ec07aebdb9310edd6.tar
identity-601b41083cf7c2186ecce70ec07aebdb9310edd6.tar.gz
identity-601b41083cf7c2186ecce70ec07aebdb9310edd6.tar.bz2
identity-601b41083cf7c2186ecce70ec07aebdb9310edd6.tar.xz
identity-601b41083cf7c2186ecce70ec07aebdb9310edd6.zip
Clean up repo
Diffstat (limited to 'root/register')
-rw-r--r--root/register/check.tt4
-rw-r--r--root/register/complete.tt16
-rw-r--r--root/register/index.tt45
3 files changed, 65 insertions, 0 deletions
diff --git a/root/register/check.tt b/root/register/check.tt
new file mode 100644
index 0000000..aab8e33
--- /dev/null
+++ b/root/register/check.tt
@@ -0,0 +1,4 @@
+<h2>Success</h2>
+<p>
+[% message %]
+
diff --git a/root/register/complete.tt b/root/register/complete.tt
new file mode 100644
index 0000000..a4f07e2
--- /dev/null
+++ b/root/register/complete.tt
@@ -0,0 +1,16 @@
+[% MACRO l(text, args) BLOCK;
+ c.localize(text, args);
+END; %]
+
+
+<h2>[% l('Registration completed') %]</h2>
+
+<span class="error">
+[% FOREACH error IN errors %]
+[% error %]<br/>
+[% END %]
+</span>
+
+<p>
+[% l('Registration was successful.') %]
+[% l('Check your mail for activation instructions') %]
diff --git a/root/register/index.tt b/root/register/index.tt
new file mode 100644
index 0000000..f509316
--- /dev/null
+++ b/root/register/index.tt
@@ -0,0 +1,45 @@
+[% MACRO l(text, args) BLOCK;
+ c.localize(text, args);
+END; %]
+
+
+<h2>[% l('Register') %]</h2>
+
+<span class="error">
+[% FOREACH error IN errors %]
+[% error %]<br/>
+[% END %]
+</span>
+
+<form method=POST action="/register/check">
+
+<table border=0>
+<tr>
+<td>[% l('Username') %]</td>
+<td><input type=text name="uid" value=[% c.request.params.uid %]></td>
+</tr>
+<tr>
+<td>[% l('First name') %]</td>
+<td><input type=text name='gn' value=[% c.request.params.gn %]></td>
+</tr>
+<tr>
+<td>[% l('Surname') %]</td>
+<td><input type=text name='sn' value=[% c.request.params.sn %]></td>
+</tr>
+<tr>
+<td>[% l('Email address') %]</td>
+<td><input type=text name='mail1' value=[% c.request.params.mail1 %]></td>
+</tr>
+<tr>
+<td>[% l('Confirm Email address') %]</td>
+<td><input type=text name='mail2' value=[% c.request.params.mail2 %]></td>
+</tr>
+<tr>
+<td><img src=/register/captcha></td>
+<td><input type=text name=validate>
+</tr>
+<tr>
+<td></td>
+<td colspan=1><input type='Submit' value='[% l('Register') %]'>
+</tr>
+</table>