[% META title="Sample storage » Edit" %]
<!-- BEGIN [% template.name %] -->
[% # INCLUDE dumper.tt dump = data.as_tree %]
[% # INCLUDE dumper.tt dump = c.stash.errs %]
[% INCLUDE record/patient_summary.tt %]
[% IF data.signed_out %]
<p class="warning">WARNING: vial has already been removed from storage.</p>
[% END %]
<h3 class="header">Edit storage vial details:</h3>
[% IF dfv_errors %]
<dl>
<dt class="error">[% c.cfg('msg').dfv_errors %]</dt>
[% IF error_concentration %]
<dd>Concentration [% error_concentration %]</dd>[% END %]
[% IF error_volume %]
<dd>Volume [% error_volume %]</dd>[% END %]
[% IF error_source %]
<dd>Source [% error_source %]</dd>[% END %]
[% IF error_method %]
<dd>Method [% error_method %]</dd>[% END %]
[% IF error_sample %]
<dd>Sample [% error_sample %]</dd>[% END %]
[% IF error_comment %]
<dd>Comment [% error_comment %]</dd>[% END %]
</dl>
[% END %]
<form action="[% app_url %]/storage/update_storage_vial/[% data.vialId
%]/[% data.request_id %]" method="post" id="form">
<input type="hidden" name="specimen" value="[% 1 # for validator only %]" />
<input type="hidden" name="specimen_id" value="[% data.specimen_id %]" />
<table class="indent">
<tr>
<th>Vial ID</th>
<th [% IF error_sample %]class="error"[% END %]>Sample</th>
<th [% IF error_part_number %]class="error"[% END %]>Part Num</th>
<th [% IF error_source %]class="error"[% END %]>Source</th>
<th [% IF error_volume %]class="error"[% END %]>
Volume (µL)
</th>
<th [% IF error_concentration %]class="error"[% END %]>
Conc<sup>n</sup> (ng/µL)
</th>
<th [% IF error_method %]class="error"[% END %]>
<span class="acronym" title="XNA extration method">Method</span>
</th>
<th>In</th>
<th>Out</th>
<th>Comment</th>
</tr>
<tr>
<td class="bold">
<input type="text" name="vialId" value="[% data.vialId %]"
readonly="readonly" />[%# needs to be both param & query param %]
</td>
<td>
<input type="text" name="sample" value="[% data.sample %]" />
</td>
<td>
<input type="text" name="part_number" value="[% data.part_number %]" />
</td>
<td>
<select name="source">
<option value="">-- select --</option>
[% FOREACH entry IN menu_options.source %]
<option value="[% entry %]"
[% 'selected' IF entry == data.source %]>[% entry %]
</option>
[% END %]
</select>
</td>
<td>
<input type="text" name="volume" value="[% data.volume %]" />
</td>
<td>
<input type="text" name="concentration"
value="[% data.concentration %]" />
</td>
<td>
<select name="method">
<option value="">-- select --</option>
[% FOREACH entry IN menu_options.method %]
<option value="[% entry %]"
[% 'selected' IF entry == data.method %]>[% entry %]
</option>
[% END %]
</select>
</td>
<td>[% data.created_at.strftime('%d.%b.%Y') %]</td>
<td>
[% data.signed_out.strftime('%d.%b.%Y') || site.html.grey_null %]
</td>
<td>
<input type="text" name="comment" value="[% data.comment %]" />
</td>
</tr>
</table>
<p>
[% site.html.back_button %]
[% site.html.reset %]
[% site.html.submit %]
</p>
</form>
<!-- END [% template.name %] -->