<%inherit file="/base.mako"/> <%namespace file="/message.mako" import="render_msg" /> <%def name="javascripts()"> ${parent.javascripts()} ${h.js("jquery.autocomplete", "autocomplete_tagging" )} <%def name="stylesheets()"> ${parent.stylesheets()} ${h.css( "autocomplete_tagging" )} <% is_admin = cntrller == 'requests_admin' and trans.user_is_admin() %>

%if message: ${render_msg( message, status )} %endif
Find samples
${search_type.get_html()}
Select a sample attribute for searching. To search
for a sample with a dataset name, select the dataset
option above. This will return all the samples that
are associated with a dataset with that name.
${request_states.get_html()}
${search_box.get_html()}
Wildcard search (%) can be used as placeholder for any sequence of characters or words.
For example, to search for samples starting with 'mysample' use 'mysample%' as the search string.
%if results:
%if samples:
The search results are sorted by the date the samples where created.
%endif
%endif
%if samples: %for sample in samples:
Sample: ${sample.name} | Barcode: ${sample.bar_code}
%if sample.request.is_new: State: Unsubmitted
%else: State: ${sample.state.name}
%endif Datasets: ${len( sample.transferred_dataset_files )}/${len( sample.datasets )}
%if is_admin: User: ${sample.request.user.email} %endif

%endfor %endif