PageRenderTime 18ms CodeModel.GetById 11ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/templates/webapps/community/category/create_category.mako

https://bitbucket.org/cistrome/cistrome-harvard/
Mako | 34 lines | 31 code | 3 blank | 0 comment | 3 complexity | eedd488bd06e65477aedda2d581a6855 MD5 | raw file
 1<%inherit file="/base.mako"/>
 2<%namespace file="/message.mako" import="render_msg" />
 3
 4<%def name="javascripts()">
 5    ${parent.javascripts()}
 6    <script type="text/javascript">
 7        $(function(){
 8            $("input:text:first").focus();
 9        })
10    </script>
11</%def>
12
13%if message:
14    ${render_msg( message, status )}
15%endif
16
17<div class="toolForm">
18    <div class="toolFormTitle">Create Category</div>
19    <div class="toolFormBody">
20        <form name="create_category_form" id="create_category_form" action="${h.url_for( action='create_category' )}" method="post" >
21            <div class="form-row">
22                <label>Name:</label>
23                <input  name="name" type="textfield" value="${name}" size=40"/>
24            </div>
25            <div class="form-row">
26                <label>Description:</label>
27                <input  name="description" type="textfield" value="${description}" size=40"/>
28            </div>
29            <div class="form-row">
30                <input type="submit" name="create_category_button" value="Save"/>
31            </div>
32        </form>
33    </div>
34</div>