mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Would like to move the whole ToolBox out of galaxy.tools and into galaxy.tools.toolbox but need to separate all dependencies on galaxy.tools first.
57 lines
2.0 KiB
Mako
57 lines
2.0 KiB
Mako
<%inherit file="/base.mako"/>
|
|
<%namespace file="/message.mako" import="render_msg" />
|
|
<%
|
|
from galaxy.tools import Tool
|
|
from galaxy.tools.toolbox import ToolSection
|
|
%>
|
|
|
|
<script type="text/javascript">
|
|
$().ready(function() {
|
|
%if tool_id:
|
|
var focus_el = $("input[name=package_tool_button]");
|
|
%else:
|
|
var focus_el = $("select[name=tool_id]");
|
|
%endif
|
|
focus_el.focus();
|
|
});
|
|
</script>
|
|
|
|
%if message:
|
|
${render_msg( message, status )}
|
|
%endif
|
|
|
|
<div class="toolForm">
|
|
<div class="toolFormTitle">Download Tarball For ToolShed</div>
|
|
<div class="toolFormBody">
|
|
<form name="package_tool" id="package_tool" action="${h.url_for( controller='admin', action='package_tool' )}" method="post" >
|
|
<div class="form-row">
|
|
<label>
|
|
Tool to bundle:
|
|
</label>
|
|
<select name="tool_id">
|
|
%for val in toolbox.tool_panel_contents( trans ):
|
|
%if isinstance( val, Tool ):
|
|
<option value="${val.id|h}">${val.name|h}</option>
|
|
%elif isinstance( val, ToolSection ):
|
|
<optgroup label="${val.name|h}">
|
|
<% section = val %>
|
|
%for section_key, section_val in section.elems.items():
|
|
%if isinstance( section_val, Tool ):
|
|
<% selected_str = "" %>
|
|
%if section_val.id == tool_id:
|
|
<% selected_str = " selected=\"selected\"" %>
|
|
%endif
|
|
<option value="${section_val.id|h}"${selected_str}>${section_val.name|h}</option>
|
|
%endif
|
|
%endfor
|
|
%endif
|
|
%endfor
|
|
</select>
|
|
</div>
|
|
<div class="form-row">
|
|
<input type="submit" name="package_tool_button" value="Download"/>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|