diff options
Diffstat (limited to 'root')
-rw-r--r-- | root/email/forgot_password.tt | 7 | ||||
-rw-r--r-- | root/forgot_password/check.tt | 4 | ||||
-rw-r--r-- | root/forgot_password/complete.tt | 6 | ||||
-rw-r--r-- | root/forgot_password/confirm.tt | 21 | ||||
-rw-r--r-- | root/forgot_password/index.tt | 17 | ||||
-rw-r--r-- | root/index.tt | 3 | ||||
-rw-r--r-- | root/template/footer | 4 | ||||
-rw-r--r-- | root/template/layout | 2 | ||||
-rw-r--r-- | root/user/add.tt | 4 | ||||
-rw-r--r-- | root/user/delete.tt | 4 |
10 files changed, 67 insertions, 5 deletions
diff --git a/root/email/forgot_password.tt b/root/email/forgot_password.tt new file mode 100644 index 0000000..af9231f --- /dev/null +++ b/root/email/forgot_password.tt @@ -0,0 +1,7 @@ +[% l('Dear [_1],',cn) %] +[% l('Your [_1] account has been requested to change the password. If you did not do this, or you do not want to change your password; you can just do nothing.',c.config.organisation) %] +[% l('To reset your password, please follow the link below.') %] +[% url %] + +-- +[% c.config.project_url %] diff --git a/root/forgot_password/check.tt b/root/forgot_password/check.tt new file mode 100644 index 0000000..b8ec933 --- /dev/null +++ b/root/forgot_password/check.tt @@ -0,0 +1,4 @@ +<h2>Success</h2> +<p> +[% message %] +</p>
\ No newline at end of file diff --git a/root/forgot_password/complete.tt b/root/forgot_password/complete.tt new file mode 100644 index 0000000..3a9995c --- /dev/null +++ b/root/forgot_password/complete.tt @@ -0,0 +1,6 @@ +<h2>[% l('Email sent.') %]</h2> + +<p> + [% l('Operation was successful.') %] + [% l('Check your mail for password reset instructions.') %] +</p> diff --git a/root/forgot_password/confirm.tt b/root/forgot_password/confirm.tt new file mode 100644 index 0000000..3c3e07d --- /dev/null +++ b/root/forgot_password/confirm.tt @@ -0,0 +1,21 @@ + +<h1>[% l('Enter new password.') %]</h1> + +<div id="input_form"> +<form method="post" action="/forgot_password/change_password"> + <table> + <tr> + <td><label for="newpassword1_">[% l('New Password') %]</label></td> + <td><input id="newpassword1_" name="newpassword1" type="password" value="" /></td> + </tr><tr> + <td><label for="newpassword2_">[% l('Repeat New Password') %]</label></td> + <td><input id="newpassword2_" name="newpassword2" type="password" value="" /></td> + </tr><tr> + <td colspan="2" style="text-align:center;"> + <input type="hidden" name="secret" value="[% secret %]" /> + <button type="submit" value="[% l('Set new password') %]">[% l('Set new password') %]</button> + </td> + </tr> + </table> +</form> +</div> diff --git a/root/forgot_password/index.tt b/root/forgot_password/index.tt new file mode 100644 index 0000000..c5fbddd --- /dev/null +++ b/root/forgot_password/index.tt @@ -0,0 +1,17 @@ + +<h1>[% l('Forgot your password?') %]</h1> + +<div id="input_form"> +<form method="post" action="/forgot_password/check"> + <table> + <tr> + <td><label for="mail_">[% l('Email address') %]</label></td> + <td><input id="mail_" type="text" name="mail" value="[% c.request.params.mail %]" /></td> + </tr><tr> + <td colspan="2" style="text-align:center;"> + <button type="submit" value="[% l('Reset password') %]">[% l('Reset password') %]</button> + </td> + </tr> + </table> +</form> +</div> diff --git a/root/index.tt b/root/index.tt index 8e1720c..de256f6 100644 --- a/root/index.tt +++ b/root/index.tt @@ -14,8 +14,7 @@ </div> <div id="login_form_line"> <span><a href="/register">[% l('Register') %]</a> | - @todo [% l('Forgotten password?') %] - <!--<a href="/forgot_password">[% l('Forgotten password?') %]</a> --> + <a href="/forgot_password">[% l('Forgotten password?') %]</a> </span> </div> </form> diff --git a/root/template/footer b/root/template/footer index e6b8e62..f87ece5 100644 --- a/root/template/footer +++ b/root/template/footer @@ -1,5 +1,5 @@ <div class="hnav"> <div align=center><p>2010 <a href="http://mageia.org/">Mageia.org</a> - | <a href="http://mageia.org/policies/privacy/">Privacy policy</a> - | <a href="http://mageia.org/faq/accounts/">Mageia user accounts FAQ</a> + | <a href="http://mageia.org/en/about/policies/privacy/">Privacy policy</a> + | <a href="http://mageia.org/wiki/doku.php?id=faq:accounts">Mageia user accounts FAQ</a> </p></div></div> diff --git a/root/template/layout b/root/template/layout index bd9201a..56470a8 100644 --- a/root/template/layout +++ b/root/template/layout @@ -3,7 +3,7 @@ [% PROCESS template/header %] </div> <div id="bd" role="main"> - <div class="yui-g"> + <div class="vnav"> <ul id="nav"> [% FOREACH subpage IN subpages %] <li><a href="[% c.uri_for(subpage.page) %]">[% l(subpage.title) %]</a></li> diff --git a/root/user/add.tt b/root/user/add.tt new file mode 100644 index 0000000..eaf84aa --- /dev/null +++ b/root/user/add.tt @@ -0,0 +1,4 @@ +An error occured adding the attribute [% attrname %] +[% IF attrvalue %]with value [% attrvalue %][% END %]. + +Please go back and try again diff --git a/root/user/delete.tt b/root/user/delete.tt new file mode 100644 index 0000000..a0adffd --- /dev/null +++ b/root/user/delete.tt @@ -0,0 +1,4 @@ +An error occured deleting the attribute [% attrname %] +[% IF attrvalue %]with value [% attrvalue %][% END %]. + +Please go back and try again |