Editing Flow Cell

<%= error_messages_for :flow_cell %> <% form_for(@flow_cell) do |f| %>


<%= f.date_select :date_generated %>


<%= f.text_field :name %>


<%= f.text_field :comment %>

<% for lane in @flow_cell.flow_cell_lanes %> <% fields_for "flow_cell[existing_lane_attributes][]", lane do |lane_form| %> <% end %> <% end %>
Lane Number Sample Starting Concentration (ng/mL) Loaded Concentration (pM) Lane Comment
<%=h lane.lane_number %> <%= lane_form.hidden_field :lane_number %> <%= lane_form.collection_select :sample_ids, @samples, :id, :short_and_long_name %> <%= lane_form.text_field :starting_concentration %> <%= lane_form.text_field :loaded_concentration %> <%= lane_form.text_field :comment %>
<%= f.submit "Update" %> <% end %> <%= link_to 'Show', @flow_cell %> | <%= link_to 'Back', flow_cells_path %>