PageRenderTime 31ms CodeModel.GetById 25ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/templates/admin/external_service/create_external_service.mako

https://bitbucket.org/cistrome/cistrome-harvard/
Mako | 28 lines | 26 code | 2 blank | 0 comment | 3 complexity | 536a670861f49d5281c6693a8bc09a50 MD5 | raw file
 1<%inherit file="/base.mako"/>
 2<%namespace file="/message.mako" import="render_msg" />
 3<%namespace file="/admin/external_service/common.mako" import="*" />
 4
 5%if message:
 6    ${render_msg( message, status )}
 7%endif
 8
 9<form name="create_external_service" action="${h.url_for( controller='external_service', action='create_external_service' )}" method="post">
10    <div class="toolForm">
11        <div class="toolFormTitle">New external service</div>
12        %if widgets:
13            %for i, field in enumerate( widgets ):
14                <div class="form-row">
15                    <label>${field['label']}:</label>
16                    ${field['widget'].get_html()}
17                    <div class="toolParamHelp" style="clear: both;">
18                        ${field['helptext']}
19                    </div>
20                    <div style="clear: both"></div>
21                </div>
22            %endfor
23        %endif
24    </div>
25    <div class="form-row">
26        <input type="submit" name="create_external_service_button" value="Save"/>
27    </div>
28</form>