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 | <br/><br/> |
---|
15 | <ul class="manage-table-actions"> |
---|
16 | <li><a class="action-button" href="${h.url_for( controller=cntrller, action='browse_requests' )}">Browse requests</a></li> |
---|
17 | </ul> |
---|
18 | |
---|
19 | %if message: |
---|
20 | ${render_msg( message, status )} |
---|
21 | %endif |
---|
22 | |
---|
23 | <div class="toolForm"> |
---|
24 | <div class="toolFormTitle">Create a new sequencing request</div> |
---|
25 | %if len( request_type_select_field.options ) == 1: |
---|
26 | There are no sequencer configurations available for ${trans.user.email} to create sequencing requests. |
---|
27 | %else: |
---|
28 | <div class="toolFormBody"> |
---|
29 | <form name="create_request" id="create_request" action="${h.url_for( controller='requests_common', action='create_request', cntrller=cntrller )}" method="post" > |
---|
30 | <div class="form-row"> |
---|
31 | <label>Select a sequencer configuration:</label> |
---|
32 | ## The request_type_select_field is a SelectField named request_type_id |
---|
33 | ${request_type_select_field.get_html()} |
---|
34 | %if cntrller != 'requests_admin': |
---|
35 | <div class="toolParamHelp" style="clear: both;"> |
---|
36 | Contact the lab manager if you are not sure about the sequencer configuration. |
---|
37 | </div> |
---|
38 | %endif |
---|
39 | </div> |
---|
40 | %if request_type_select_field_selected != 'none': |
---|
41 | ## If a request_type has been selected, display the associated form using received widgets. |
---|
42 | %for i, field in enumerate( widgets ): |
---|
43 | <div class="form-row"> |
---|
44 | <label>${field['label']}</label> |
---|
45 | ${field['widget'].get_html()} |
---|
46 | <div class="toolParamHelp" style="clear: both;"> |
---|
47 | ${field['helptext']} |
---|
48 | </div> |
---|
49 | <div style="clear: both"></div> |
---|
50 | </div> |
---|
51 | %endfor |
---|
52 | <div class="form-row"> |
---|
53 | <input type="submit" name="create_request_button" value="Save"/> |
---|
54 | <input type="submit" name="add_sample_button" value="Add samples"/> |
---|
55 | </div> |
---|
56 | %endif |
---|
57 | </form> |
---|
58 | </div> |
---|
59 | %endif |
---|
60 | </div> |
---|