root/galaxy-central/templates/requests/common/edit_basic_request_info.mako

リビジョン 2, 4.1 KB (コミッタ: hatakeyama, 14 年 前)

import galaxy-central

行番号 
1<%inherit file="/base.mako"/>
2<%namespace file="/message.mako" import="render_msg" />
3
4<br/><br/>
5<ul class="manage-table-actions">
6    <li>
7        <a class="action-button"  href="${h.url_for( controller='requests_common', action='manage_request', cntrller=cntrller, id=trans.security.encode_id( request.id ) )}">Browse this request</a>
8    </li>
9    <li>
10        <a class="action-button"  href="${h.url_for( controller=cntrller, action='browse_requests' )}">Browse all requests</a>
11    </li>
12</ul>
13
14%if message:
15    ${render_msg( message, status )}
16%endif
17
18<div class="toolForm">
19    <div class="toolFormTitle">Edit sequencing request "${request.name}"</div>
20    <div class="toolFormBody">
21        <form name="edit_basic_request_info" id="edit_basic_request_info" action="${h.url_for( controller='requests_common', action='edit_basic_request_info', cntrller=cntrller, id=trans.security.encode_id( request.id ) )}" method="post" >
22            %for i, field in enumerate( widgets ):
23                <div class="form-row">
24                    <label>${field['label']}</label>
25                    ${field['widget'].get_html()}
26                    <div class="toolParamHelp" style="clear: both;">
27                        ${field['helptext']}
28                    </div>
29                    <div style="clear: both"></div>
30                </div>
31            %endfor                   
32            <div class="form-row">
33                <input type="submit" name="edit_basic_request_info_button" value="Save"/>
34            </div>
35        </form>
36    </div>
37</div>
38<p/>
39<div class="toolForm">
40    <div class="toolFormTitle">Email notification settings</div>
41    <div class="toolFormBody">
42        <form name="edit_email_settings" id="edit_email_settings" action="${h.url_for( controller='requests_common', action='edit_email_settings', cntrller=cntrller, id=trans.security.encode_id( request.id ) )}" method="post" >
43            <%
44                email_address = ''
45                emails = ''
46                additional_email_addresses = []
47                if request.notification:
48                    for e in request.notification[ 'email' ]:
49                       if e == request.user.email:
50                           email_address = 'checked'
51                       else:
52                           additional_email_addresses.append( e )
53                if additional_email_addresses:
54                    emails = '\r\n'.join( additional_email_addresses )
55            %>
56            <div class="form-row">
57                <label>Send to:</label>
58                <input type="checkbox" name="email_address" value="true" ${email_address}>${request.user.email} (sequencing request owner)<input type="hidden" name="email_address" value="true">
59            </div>
60            <div class="form-row">
61                <label>Additional email addresses:</label>
62                <textarea name="additional_email_addresses" rows="3" cols="40">${emails}</textarea>
63                <div class="toolParamHelp" style="clear: both;">
64                    Enter one email address per line
65                </div>
66            </div>
67            <div class="form-row">
68                <label>Select sample states to send email notification:</label>
69                %for sample_state in request.type.states:
70                    <% 
71                        email_state = ''
72                        if request.notification and sample_state.id in request.notification[ 'sample_states' ]:
73                            email_state = 'checked'
74                     %>
75                    <input type="checkbox" name=sample_state_${sample_state.id} value="true" ${email_state} >${sample_state.name}<input type="hidden" name=sample_state_${sample_state.id} value="true">
76                    <br/>
77                %endfor
78                <div class="toolParamHelp" style="clear: both;">
79                    Email notification will be sent when all the samples of this sequencing request are in the selected states.
80                </div>
81            </div>
82            <div class="form-row">
83                <input type="submit" name="edit_email_settings_button" value="Save"/>
84            </div>
85        </form>
86    </div>
87</div>
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。