<%inherit file="/base.mako"/> <%namespace file="/message.mako" import="render_msg" /> <% 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} '${item_name}'
${template_select_list.get_html()}
% if 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 template_select_list.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