PageRenderTime 12ms CodeModel.GetById 10ms app.highlight 0ms RepoModel.GetById 2ms app.codeStats 0ms

/templates/user/openid_associate.mako

https://bitbucket.org/cistrome/cistrome-harvard/
Mako | 73 lines | 59 code | 14 blank | 0 comment | 7 complexity | 344953a458ce77324ab393eb5439a042 MD5 | raw file
 1<%!
 2    def inherit(context):
 3        if context.get('use_panels'):
 4            return '/webapps/galaxy/base_panels.mako'
 5        else:
 6            return '/base.mako'
 7%>
 8<%inherit file="${inherit(context)}"/>
 9
10<%def name="init()">
11<%
12    self.has_left_panel=False
13    self.has_right_panel=False
14    self.active_view=active_view
15    self.message_box_visible=False
16%>
17</%def>
18
19<%namespace file="/message.mako" import="render_msg" />
20<%namespace file="login.mako" import="render_login_form" />
21<%namespace file="register.mako" import="render_registration_form" />
22
23<%def name="center_panel()">
24    ${body()}
25</%def>
26
27<%def name="body()">
28
29    <div style="overflow: auto; height: 100%">
30    %if context.get('use_panels'):
31        <div class="page-container" style="padding: 10px;">
32    %else:
33        <div class="page-container">
34    %endif
35
36    %if message:
37        ${render_msg( message, status )}
38    %endif
39
40    <h2>OpenID Account Association</h2>
41    <div>
42        OpenIDs must be associated with a Galaxy account before they can be used for authentication.  This only needs to be done once per OpenID.  You may associate your OpenID with an existing Galaxy account, or create a new one.
43    </div>
44    <br/>
45
46    %if len( openids ) > 1:
47        <div>
48            The following OpenIDs will be associated with the account chosen or created below.
49            <ul>
50            %for openid in openids:
51                <li>${openid.openid}</li>
52            %endfor
53            </ul>
54        </div>
55    %else:
56        <div>
57            The OpenID <strong>${openids[0].openid}</strong> will be associated with the account chosen or created.
58        </div>
59    %endif
60    <br/>
61
62    <% form_action = h.url_for( controller='user', action='openid_associate', cntrller=cntrller, use_panels=use_panels ) %>
63
64    ${render_login_form( form_action=form_action )}
65
66    <br/>
67
68    ${render_registration_form( form_action=form_action )}
69
70    </div>
71    </div>
72
73</%def>