/kai/templates/accounts/register.mako

https://bitbucket.org/bbangert/kai/ · Mako · 40 lines · 31 code · 9 blank · 0 comment · 3 complexity · 54e901ec1eaf0f19891af6a90b0bde69 MD5 · raw file

  1. <%!
  2. from kai.model.forms import registration_form, openid_login_form, openid_registration_form
  3. %>
  4. <div class="yui-b content">
  5. % if c.openid:
  6. <h1>${_('Finish Registration')}</h1>
  7. <p>${_('Using OpenID: %s' % c.openid)}</p>
  8. ${openid_registration_form.display(c.defaults, action=url('openid_register')) | n}
  9. % else:
  10. <h1>${_('Register for an Account')}</h1>
  11. <p>${_('Create an account for the PylonsHQ site. This account will let you:')}
  12. <ul>
  13. <li>${_('Post Snippets, Jobs, and Sites')}</li>
  14. <li>${_("Comment on Tracebacks, Snippets, and Pastes'")}</li>
  15. </ul>
  16. </p>
  17. <p>${_("""These will be used to identify you as you contribute on the PylonsHQ site. Notifications
  18. from the system will be sent to this email address, as well as lost password requests""")}.</p>
  19. <p>${_("""<b>Note: </b>A valid e-mail address is required to activate your
  20. account.""") |n}</p>
  21. ${registration_form.display(action=url('account_register')) | n}
  22. <div id="openid_reg">
  23. <h3>${_('Register with OpenID')}</h3>
  24. <p>${_("""To speed up registration, using OpenID will automatically fill-in details
  25. that from the OpenID provider.""")}</p>
  26. ${openid_login_form.display(action=url('openid_create')) | n}
  27. </div>
  28. % endif
  29. </div>
  30. <%def name="title()">${parent.title()} - ${_('Registration')}</%def>
  31. <%inherit file="../layout.mako" />