<%! def inherit(context): if context.get('use_panels'): if context.get('webapp'): webapp = context.get('webapp') else: webapp = 'galaxy' return '/webapps/%s/base_panels.mako' % webapp else: return '/base.mako' %> <%inherit file="${inherit(context)}"/> <% _=n_ %> <%def name="init()"> <% self.has_left_panel=False self.has_right_panel=False self.active_view=active_view self.message_box_visible=False %> <%def name="title()">${form.title} <%def name="javascripts()"> ${parent.javascripts()} ${h.js("jquery.autocomplete")} <%def name="stylesheets()"> ${parent.stylesheets()} ${h.css("autocomplete_tagging")} <%def name="center_panel()"> ${render_form( )} <%def name="body()"> ${render_form( )} <%def name="render_form()"> %if header: ${header} %endif
${form.title}
<% has_file_input = False for input in form.inputs: if input.type == 'file': has_file_input = True break %>
%for input in form.inputs: <% cls = "form-row" if input.error: cls += " form-row-error" %>
%if input.use_label: %endif
%if input.type == 'textarea': %elif input.type == 'select': %else: %endif
%if input.error:
${input.error}
%endif %if input.help:
${input.help}
%endif
%endfor