<%inherit file="/base.mako"/> <%namespace file="/message.mako" import="render_msg" /> <% in_library = form_type == trans.model.FormDefinition.types.LIBRARY_INFO_TEMPLATE in_sample_tracking = form_type == trans.model.FormDefinition.types.RUN_DETAILS_TEMPLATE if in_library: # If rendering for a library folder or dataset, inheritance is set by the user, while # rendering for a RequestType, the template is always available to samples. from galaxy.web.form_builder import CheckboxField inheritable_check_box = CheckboxField( 'inheritable' ) %>

%if message: ${render_msg( message, status )} %endif
Select a template for the ${item_desc} '${util.unicodify( item_name )}'
%if form_type == trans.model.FormDefinition.types.LIBRARY_INFO_TEMPLATE:
%elif form_type == trans.model.FormDefinition.types.RUN_DETAILS_TEMPLATE: %endif
${form_id_select_field.get_html()}
% if form_type == trans.model.FormDefinition.types.LIBRARY_INFO_TEMPLATE and item_type in [ 'library', 'folder' ]:
%if inheritable_checked: <% inheritable_check_box.checked = True %> %endif ${inheritable_check_box.get_html()}
Check if you want this template to be used by other folders and datasets contained within this ${item_desc}
%endif

%if form_id_select_field.get_selected( return_label=True, return_value=True ) != ('Select one', 'none'):

Layout of selected template
%for i, field in enumerate( widgets ):
${field[ 'widget' ].get_html( disabled=True )}
${field[ 'helptext' ]}
%endfor
%endif