PageRenderTime 38ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/django/contrib/admin/templates/mako/registration/password_reset_confirm.html

https://code.google.com/p/mango-py/
HTML | 35 lines | 23 code | 12 blank | 0 comment | 0 complexity | 3af68a32f9ebb3ae5914612886d91695 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. <%inherit file="admin/base_site.html"/>
  2. <%def name="block_breadcrumbs()"><div class="breadcrumbs"><a href="../">${trans('Home')}</a> &rsaquo; ${trans('Password reset confirmation')}</div></%def>
  3. <%def name="block_title()">${trans('Password reset')}</%def>
  4. <%def name="block_content()">
  5. % if validlink:
  6. <h1>${trans('Enter new password')}</h1>
  7. <p>${trans("Please enter your new password twice so we can verify you typed it in correctly.")}</p>
  8. <form action="" method="post">${ csrf_tag(csrf_token) }
  9. % if form['new_password1'].errors:
  10. ${ form['new_password1'].errors }
  11. % endif
  12. <p class="aligned wide"><label for="id_new_password1">${trans('New password:')}</label>${ form['new_password1'] }</p>
  13. % if form['new_password2'].errors:
  14. ${ form['new_password2'].errors }
  15. % endif
  16. <p class="aligned wide"><label for="id_new_password2">${trans('Confirm password:')}</label>${ form['new_password2'] }</p>
  17. <p><input type="submit" value="${trans('Change my password')}" /></p>
  18. </form>
  19. % else:
  20. <h1>${trans('Password reset unsuccessful')}</h1>
  21. <p>${trans("The password reset link was invalid, possibly because it has already been used. Please request a new password reset.")}
  22. % endif
  23. </%def>