[% META title="Sample storage » Delete vial" %] [% # INCLUDE dumper.tt dump = vial.as_tree %] [% # INCLUDE dumper.tt dump = dfv_errs %] [% IF vial.vial_location %]

WARNING: vial has been allocated to plate [% vial.vial_location %]. Vacant locations can be filled only by deleting and rescanning plate.

[% END %] [% IF dfv_errs %]

Error: validation failed

[% END %]
[% IF vial.vial_location # only require reason if vial already allocated %] [% END %]

Reason for deletion: [% dfv_errs.error_reason # not using check_rm() here or get infinate loop %]

Scan vial barcode to confirm deletion: [% dfv_errs.error_vialId %]

[% site.html.back_button %]

[% PROCESS site/field_focus.tt form_name = 'vial_delete', field_name = 'vialId' %]