PageRenderTime 22ms CodeModel.GetById 20ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/templates/admin/forms/create_form.mako

https://bitbucket.org/cistrome/cistrome-harvard/
Mako | 21 lines | 20 code | 1 blank | 0 comment | 2 complexity | 402ffe00f9aba3ac913b103a599d5245 MD5 | raw file
 1<%inherit file="/base.mako"/>
 2<%namespace file="/message.mako" import="render_msg" />
 3
 4%if message:
 5    ${render_msg( message, status )}
 6%endif
 7<form name="create_form_definition" action="${h.url_for( controller='forms', action='create_form_definition' )}" enctype="multipart/form-data" method="post" >
 8    <div class="toolForm">
 9        <div class="toolFormTitle">Create a new form definition</div>
10        %for label, input in inputs:
11            <div class="form-row">
12                <label>${label}</label>
13                ${input.get_html()}
14                <div style="clear: both"></div>
15            </div>
16        %endfor
17        <div class="form-row">
18            <input type="submit" name="create_form_button" value="Add fields"/>
19        </div>
20    </div>
21</form>