1 | <%inherit file="/base.mako"/> |
---|
2 | <%namespace file="/message.mako" import="render_msg" /> |
---|
3 | |
---|
4 | <%def name="javascripts()"> |
---|
5 | ${parent.javascripts()} |
---|
6 | ${h.js("jquery.autocomplete", "autocomplete_tagging" )} |
---|
7 | </%def> |
---|
8 | |
---|
9 | <%def name="stylesheets()"> |
---|
10 | ${parent.stylesheets()} |
---|
11 | ${h.css( "autocomplete_tagging" )} |
---|
12 | </%def> |
---|
13 | |
---|
14 | <% is_admin = cntrller == 'requests_admin' and trans.user_is_admin() %> |
---|
15 | |
---|
16 | <br/> |
---|
17 | <br/> |
---|
18 | <ul class="manage-table-actions"> |
---|
19 | <li> |
---|
20 | <a class="action-button" href="${h.url_for( controller=cntrller, action='browse_requests' )}">Browse requests</a> |
---|
21 | </li> |
---|
22 | </ul> |
---|
23 | |
---|
24 | %if message: |
---|
25 | ${render_msg( message, status )} |
---|
26 | %endif |
---|
27 | |
---|
28 | <div class="toolForm"> |
---|
29 | <div class="toolFormTitle">Find samples</div> |
---|
30 | <div class="toolFormBody"> |
---|
31 | <form name="find_request" id="find_request" action="${h.url_for( controller='requests_common', action='find_samples', cntrller=cntrller )}" method="post" > |
---|
32 | <div class="form-row"> |
---|
33 | <label>Find samples using:</label> |
---|
34 | ${search_type.get_html()} |
---|
35 | <div class="toolParamHelp" style="clear: both;"> |
---|
36 | Select a sample attribute for searching. To search <br/> |
---|
37 | for a sample with a dataset name, select the dataset <br/> |
---|
38 | option above. This will return all the samples that <br/> |
---|
39 | are associated with a dataset with that name. <br/> |
---|
40 | </div> |
---|
41 | </div> |
---|
42 | <div class="form-row"> |
---|
43 | <label>Show only sequencing requests in state:</label> |
---|
44 | ${request_states.get_html()} |
---|
45 | </div> |
---|
46 | <div class="form-row"> |
---|
47 | ${search_box.get_html()} |
---|
48 | <input type="submit" name="find_samples_button" value="Find"/> |
---|
49 | <div class="toolParamHelp" style="clear: both;"> |
---|
50 | Wildcard search (%) can be used as placeholder for any sequence of characters or words.<br/> |
---|
51 | For example, to search for samples starting with 'mysample' use 'mysample%' as the search string. |
---|
52 | </div> |
---|
53 | </div> |
---|
54 | %if results: |
---|
55 | <div class="form-row"> |
---|
56 | <label><i>${results}</i></label> |
---|
57 | %if samples: |
---|
58 | <div class="toolParamHelp" style="clear: both;"> |
---|
59 | The search results are sorted by the date the samples where created. |
---|
60 | </div> |
---|
61 | %endif |
---|
62 | </div> |
---|
63 | %endif |
---|
64 | <div class="form-row"> |
---|
65 | %if samples: |
---|
66 | %for sample in samples: |
---|
67 | <div class="form-row"> |
---|
68 | Sample: <b>${sample.name}</b> | Barcode: ${sample.bar_code}<br/> |
---|
69 | %if sample.request.is_new: |
---|
70 | State: Unsubmitted<br/> |
---|
71 | %else: |
---|
72 | State: ${sample.state.name}<br/> |
---|
73 | %endif |
---|
74 | Datasets: <a href="${h.url_for( controller='requests_common', action='view_dataset_transfer', cntrller=cntrller, sample_id=trans.security.encode_id( sample.id ) )}">${len( sample.transferred_dataset_files )}/${len( sample.datasets )}</a><br/> |
---|
75 | %if is_admin: |
---|
76 | <i>User: ${sample.request.user.email}</i> |
---|
77 | %endif |
---|
78 | <div class="toolParamHelp" style="clear: both;"> |
---|
79 | <a href="${h.url_for( controller='requests_common', action='manage_request', cntrller=cntrller, id=trans.security.encode_id( sample.request.id ) )}">Sequencing request: ${sample.request.name} | Type: ${sample.request.type.name} | State: ${sample.request.state}</a> |
---|
80 | </div> |
---|
81 | </div> |
---|
82 | <br/> |
---|
83 | %endfor |
---|
84 | %endif |
---|
85 | </div> |
---|
86 | </form> |
---|
87 | </div> |
---|
88 | </div> |
---|