Skip to content

Commit

Permalink
Only show authorised assays when extracting samples
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewWood94 authored and stuzart committed May 22, 2024
1 parent 0055e6f commit a367ba6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/data_files/confirm_extraction.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@
<%= hidden_field_tag(:sample_type_id, @sample_type.id) if @sample_type %>
<%= hidden_field_tag(:confirm, 'true') %>

<% if @data_file.assay_assets.any? %>
<% if authorised_assays.intersect?(@data_file.assays) %>
<h3>Link to assays</h3>
This data file is linked to the following assays.
Check the corresponding checkbox to also link the above samples to that assay.
<% @data_file.assay_assets.each do |aa| %>
<% authorised_assay_assets(@data_file).each do |aa| %>
<div class="checkbox">
<label>
<%= check_box_tag('assay_ids[]', aa.assay_id, false, autocomplete: 'off') %>
Expand Down

0 comments on commit a367ba6

Please sign in to comment.