<% label = param.get_label() %>
%if label:
%endif
<%
field = param.get_html_field( trans, parent_state[ param.name ], other_values )
field.refresh_on_change = param.refresh_on_change
# Field may contain characters submitted by user and these characters may be unicode; handle non-ascii characters gracefully.
field_html = field.get_html( prefix )
if type( field_html ) is not unicode:
field_html = unicode( field_html, 'utf-8' )
%>
${field_html}
%if parent_errors.has_key( param.name ):
${parent_errors[param.name]}
%endif
%if param.help:
${param.help}
%endif
%def>
%if add_frame.from_noframe:
Welcome to Galaxy
It appears that you found this tool from a link outside of Galaxy.
If you're not familiar with Galaxy, please consider visiting the
welcome page.
To learn more about what Galaxy is and what it can do for you, please visit
the Galaxy wiki.
%endif
## handle calculating the redict url for the special case where we have nginx proxy
## upload and need to do url_for on the redirect portion of the tool action
<%
try:
tool_url = h.url_for(tool.action)
except AttributeError:
assert len(tool.action) == 2
tool_url = tool.action[0] + h.url_for(tool.action[1])
%>
%if tool.has_multiple_pages:
${tool.name} (step ${tool_state.page+1} of ${tool.npages})
%else:
${tool.name}
%endif
%if tool.help:
<%
if tool.has_multiple_pages:
tool_help = tool.help_by_page[tool_state.page]
else:
tool_help = tool.help
# Convert to unicode to display non-ascii characters.
if type( tool_help ) is not unicode:
tool_help = unicode( tool_help, 'utf-8')
%>
${tool_help}