From 801b79656f955296c65ad849835f675b262b9180 Mon Sep 17 00:00:00 2001 From: Johannes Bornhold Date: Wed, 25 May 2016 11:41:43 +0200 Subject: [PATCH] templates: Migrate password reset template to pyramid. --- rhodecode/templates/password_reset.html | 26 ++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/rhodecode/templates/password_reset.html b/rhodecode/templates/password_reset.html index 89cafaa3..50fc99fb 100644 --- a/rhodecode/templates/password_reset.html +++ b/rhodecode/templates/password_reset.html @@ -33,22 +33,30 @@

${_('Reset your Password')}

-

${h.link_to(_("Go to the login page to sign in."),h.url('login'))}

+

${h.link_to(_("Go to the login page to sign in."), request.route_path('login'))}

- ${h.form(url('password_reset'), needs_csrf_token=False)} + ${h.form(request.route_path('reset_password'), needs_csrf_token=False)} - ${h.text('email')} + ${h.text('email', defaults.get('email'))} + %if 'email' in errors: + ${errors.get('email')} +
+ %endif - %if c.captcha_active: + %if captcha_active: %endif - ${h.submit('send',_('Send password reset email'),class_="btn sign-in")} + ${h.submit('send', _('Send password reset email'), class_="btn sign-in")}
${_('Password reset link will be send to matching email address')}
${h.end_form()} @@ -57,14 +65,14 @@
-%if c.captcha_active: +%if captcha_active: %endif \ No newline at end of file +