<%= error_messages_for 'sample' %> <%= error_messages_for_samples %>

Editing Sample

<% form_tag sample_path(@sample), :method => :put do -%>


<%= collection_select 'sample', 'submitted_by_id', @users, 'id', 'full_name', {:prompt => true}, {:index => 0} %>


<%= date_select 'sample', 'submission_date', :index => 0 %>


<%= text_field 'sample', 'name_on_tube', :index => 0 %>

Sample Description
<% if @sample.naming_scheme != nil %> <% @n = 0 %> <% for element in @naming_elements %> <% end %> <%= render :partial => 'samples/schemed_sample_description' %>
<%=h element.name %>
<% else %> <%= text_field :sample, :sample_description, :index => 0, :size => 30 %> <% end %>



<%= collection_select 'sample', 'sample_prep_kit_id', @sample_prep_kits, 'id', 'name', {:prompt => true}, {:index => 0} %>


<%= collection_select 'sample', 'reference_genome_id', @reference_genomes, 'id', 'description', {:prompt => true}, {:index => 0} %>
* Contact the facility to add a new reference genome


Alignment bases

<%= text_field 'sample', 'alignment_start_position', :size => 4, :default => 1, :index => 0 %> <%= text_field 'sample', 'alignment_end_position', :size => 4, :index => 0 %>

<%= observe_field :sample_0_desired_read_length, :function => "$('sample_0_alignment_end_position').value = value;" %>


<%= text_field 'sample', 'insert_size', :size => 8, :index => 0 %>

<% if @naming_schemes.size > 0 %>


<% end %>


<%= text_field 'sample', 'budget_number', :index => 0 %>


<%= text_field 'sample', 'comment', :index => 0 %>


<% @sample.flow_cell_lanes.each do |lane| %> <% fields_for "sample[0][lane_paths][]", lane do |lane_form| %>

  • Flow cell <%=h lane.flow_cell.name %>, Lane #<%=h lane.lane_number %>: <%= lane_form.text_field :raw_data_path, :size => 60 %>
  • <% end %> <% end %>

    <%= hidden_field 'sample', 'lock_version', :index => 0 %> <%= submit_tag 'Update' %> <% end -%> <%= link_to 'Back to List', samples_path %>