<%inherit file="/base.mako"/> <%namespace file="/message.mako" import="render_msg" />

%if message: ${render_msg( message, status )} %endif
Edit sequencing request "${request.name}"
%for i, field in enumerate( widgets ):
${field['widget'].get_html()}
${field['helptext']}
%endfor

Email notification settings
<% email_address = '' emails = '' additional_email_addresses = [] if request.notification: for e in request.notification[ 'email' ]: if e == request.user.email: email_address = 'checked' else: additional_email_addresses.append( e ) if additional_email_addresses: emails = '\r\n'.join( additional_email_addresses ) %>
${request.user.email} (sequencing request owner)
Enter one email address per line
%for sample_state in request.type.states: <% email_state = '' if request.notification and sample_state.id in request.notification[ 'sample_states' ]: email_state = 'checked' %> ${sample_state.name}
%endfor
Email notification will be sent when all the samples of this sequencing request are in the selected states.