PageRenderTime 16ms CodeModel.GetById 10ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/templates/admin/quota/quota_rename.mako

https://bitbucket.org/cistrome/cistrome-harvard/
Mako | 52 lines | 49 code | 3 blank | 0 comment | 3 complexity | 28f3b03d793e260ed88405eaf8ef6771 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">Change quota name and description</div>
19    <div class="toolFormBody">
20        <form name="library" action="${h.url_for( controller='admin', action='rename_quota' )}" method="post" >
21            <div class="form-row">
22                <label>Name:</label>
23                <div style="float: left; width: 250px; margin-right: 10px;">
24                    <input type="text" name="name" value="${name}" size="40"/>
25                </div>
26                <div style="clear: both"></div>
27            </div>
28            <div class="form-row">
29                <label>Description:</label>
30                <div style="float: left; width: 250px; margin-right: 10px;">
31                    <input  name="description" type="textfield" value="${description}" size=40"/>
32                </div>
33                <div style="clear: both"></div>
34            </div>
35            <div class="form-row">
36                <div style="float: left; width: 250px; margin-right: 10px;">
37                    <input type="hidden" name="rename" value="submitted"/>
38                </div>
39                <div style="clear: both"></div>
40            </div>
41            <div class="form-row">
42                <div style="float: left; width: 250px; margin-right: 10px;">
43                    <input type="hidden" name="id" value="${id}"/>
44                </div>
45                <div style="clear: both"></div>
46            </div>
47            <div class="form-row">
48                <input type="submit" name="rename_quota_button" value="Save"/>
49            </div>
50        </form>
51    </div>
52</div>