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 | |
---|
8 | <div class="toolForm"> |
---|
9 | <div class="toolFormTitle">Reload Tool</div> |
---|
10 | <div class="toolFormBody"> |
---|
11 | <form name="tool_reload" action="${h.url_for( controller='admin', action='tool_reload' )}" method="post" > |
---|
12 | <div class="form-row"> |
---|
13 | <label> |
---|
14 | Tool to reload: |
---|
15 | </label> |
---|
16 | <select name="tool_id"> |
---|
17 | %for key, val in toolbox.tool_panel.items(): |
---|
18 | %if key.startswith( 'tool' ): |
---|
19 | <option value="${val.id}">${val.name}</option> |
---|
20 | %elif key.startswith( 'section' ): |
---|
21 | <optgroup label="${val.name}"> |
---|
22 | <% section = val %> |
---|
23 | %for section_key, section_val in section.elems.items(): |
---|
24 | %if section_key.startswith( 'tool' ): |
---|
25 | <option value="${section_val.id}">${section_val.name}</option> |
---|
26 | %endif |
---|
27 | %endfor |
---|
28 | %endif |
---|
29 | %endfor |
---|
30 | </select> |
---|
31 | </div> |
---|
32 | <div class="form-row"> |
---|
33 | <input type="submit" name="action" value="Reload"/> |
---|
34 | </div> |
---|
35 | </form> |
---|
36 | </div> |
---|
37 | </div> |
---|