diff --git a/app/components/nextflow/samplesheet/column_component.html.erb b/app/components/nextflow/samplesheet/column_component.html.erb index 25696b119e..1af08380e0 100644 --- a/app/components/nextflow/samplesheet/column_component.html.erb +++ b/app/components/nextflow/samplesheet/column_component.html.erb @@ -1,17 +1,10 @@
<% if property["cell_type"] == "metadata_cell" %> -
+
<%= form_with url: fields_workflow_executions_metadata_path do |f| %> <%= f.hidden_field :format, value: "turbo_stream", id: "field_#{header}_turbo" %> <%= f.hidden_field :namespace_id, value: namespace_id, id: "namespace_#{header}" %> @@ -34,35 +27,35 @@ "aria-label": header, class: "bg-slate-50 text-slate-900 text-sm border-none focus:ring-primary-500 focus:border-primary-500 block w-full p-2.5 dark:bg-slate-700 dark:placeholder-slate-400 dark:text-white dark:focus:ring-primary-500 dark:focus:border-primary-500 font-semibold tracking-wider uppercase", - onchange: "Turbo.navigator.submitForm(this.form)" + onchange: "Turbo.navigator.submitForm(this.form)", } %> <% end %>
<% else %>
<%= header %> <% if @required %> - (<%= t(".required") %>) + (<%= t(".required") %>) <% end %>
<% end %> -
" class="dark:bg-slate-700 bg-slate-50"> +
" + class="dark:bg-slate-700 bg-slate-50" + > <% samples.each_with_index do |sample, index| %> -
+
<%= fields_for "workflow_execution[samples_workflow_executions_attributes][#{index}]" do |s| %> <% if property["cell_type"] == "sample_cell" %> <%= s.hidden_field :sample_id, value: sample.id %>