PageRenderTime 247ms CodeModel.GetById 120ms app.highlight 4ms RepoModel.GetById 117ms app.codeStats 1ms

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