Skip to content

Commit

Permalink
Only make custom metadatafields appear on the first assay
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin De Pelseneer committed Oct 6, 2023
1 parent a24c4f7 commit 465fec6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/views/isa_assays/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ input_sample_type_id ||=
<%= assay_fields.text_area :description, :rows => 5, :class=>"form-control rich-text-edit" -%>
</div>

<%= render partial: 'custom_metadata/custom_metadata_type_selection', locals:{f:assay_fields, resource:@isa_assay.assay} %>
<%= render partial: 'custom_metadata/custom_metadata_attribute_input', locals:{f:assay_fields,resource:@isa_assay.assay, parent_resource: "isa_assay"} %>
<% if params[:is_source] %>
<%= render partial: 'custom_metadata/custom_metadata_type_selection', locals:{f:assay_fields, resource:@isa_assay.assay} %>
<%= render partial: 'custom_metadata/custom_metadata_attribute_input', locals:{f:assay_fields,resource:@isa_assay.assay, parent_resource: "isa_assay"} %>
<% end %>

<div class="form-group hidden" >
<label class="required"><%= t('study') -%></label>
Expand Down

0 comments on commit 465fec6

Please sign in to comment.