Lines 388-393
Link Here
|
388 |
[% INCLUDE 'csrf-token.inc' %] |
388 |
[% INCLUDE 'csrf-token.inc' %] |
389 |
<input type="hidden" name="import_batch_id" value="[% batch_lis.import_batch_id | html %]" /> |
389 |
<input type="hidden" name="import_batch_id" value="[% batch_lis.import_batch_id | html %]" /> |
390 |
<input type="hidden" name="op" value="cud-clean-batch" /> |
390 |
<input type="hidden" name="op" value="cud-clean-batch" /> |
|
|
391 |
<input type="hidden" id="import_status" value="[% batch_lis.import_status | html %]" /> |
391 |
<button type="submit" class="btn btn-default btn-xs"><i class="fa fa-eraser"></i> Clean</button> |
392 |
<button type="submit" class="btn btn-default btn-xs"><i class="fa fa-eraser"></i> Clean</button> |
392 |
</form> |
393 |
</form> |
393 |
[% ELSIF ( batch_lis.import_status == 'cleaned' ) %] |
394 |
[% ELSIF ( batch_lis.import_status == 'cleaned' ) %] |
Lines 634-641
Link Here
|
634 |
if ($(this).hasClass("batch_delete")) { |
635 |
if ($(this).hasClass("batch_delete")) { |
635 |
return confirm(_("Are you sure you want to permanently delete this batch?")); |
636 |
return confirm(_("Are you sure you want to permanently delete this batch?")); |
636 |
} else { |
637 |
} else { |
|
|
638 |
if ($(this).closest('form').find('input#import_status').val() === "imported" ) { |
639 |
return confirm(_("This batch contains imported records. Are you sure you wish to clear all the reservoir records? This cannot be undone.")); |
640 |
} else { |
637 |
return confirm(_("Clear all reservoir records staged in this batch? This cannot be undone.")); |
641 |
return confirm(_("Clear all reservoir records staged in this batch? This cannot be undone.")); |
638 |
} |
642 |
} |
|
|
643 |
} |
639 |
}); |
644 |
}); |
640 |
[% IF job_enqueued %] |
645 |
[% IF job_enqueued %] |
641 |
setTimeout( |
646 |
setTimeout( |
642 |
- |
|
|