%= error_messages_for 'sample' %> <%= error_messages_for_samples %>
<%= 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 %>
<%=h element.name %> | <% 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 %>
<%= 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| %>