<% end %>
diff --git a/app/views/single_pages/_new_samples_panel.html.erb b/app/views/single_pages/_new_samples_panel.html.erb
index 1b163ec3da..4fd18ae27b 100644
--- a/app/views/single_pages/_new_samples_panel.html.erb
+++ b/app/views/single_pages/_new_samples_panel.html.erb
@@ -1,8 +1,9 @@
<% unless @new_samples.nil? or @new_samples.compact.none? %>
- <%= folding_panel("New Samples #{@new_samples.size}", true, :id => "new-samples-panel", :body_options => {:id => "new-samples-panel-content"},
- :help_text => "These samples have been detected as new samples and will be created.") do %>
+ <%= folding_panel("New Samples #{@new_samples.size}", true, :id => "new-samples-panel", :body_options => { :id => "new-samples-panel-content" },
+ :help_text => "These samples have been detected as new samples and will be created.") do %>
+
<% for key in @new_samples[0].keys %>
@@ -11,36 +12,42 @@
<% end %>
<% end %>
+
+
<% for new_sample in @new_samples %>
<% new_sample_id = UUID.generate %>
-
- <% new_sample.map do |key, val| %>
- <% val = '' if key =='id' %>
+
+
+ <% new_sample.map do |key, val| %>
+ <% val = '' if key == 'id' %>
<% unless key == 'uuid' %>
- <% if @multiple_input_fields.include?(key)%>
-
+ <% if @multiple_input_fields.include?(key) %>
+
<% val.each do |sub_sample| %>
- ' data-attr_type="seek-sample-multi"><%= sub_sample['title'] %>
+ ' data-attr_type="seek-sample-multi"><%= sub_sample['title'] %>
<% end %>
<% elsif @cv_list_fields.include?(key) %>
-
+
<% val.each do |cv_term| %>
- <%= cv_term %>
+ <%= cv_term %>
<% end %>
<% end %>
diff --git a/app/views/single_pages/_unauthorized_samples_panel.html.erb b/app/views/single_pages/_unauthorized_samples_panel.html.erb
index 8ad35705d2..4d69e2a741 100644
--- a/app/views/single_pages/_unauthorized_samples_panel.html.erb
+++ b/app/views/single_pages/_unauthorized_samples_panel.html.erb
@@ -1,15 +1,17 @@
<% unless @unauthorized_samples.nil? or @unauthorized_samples.compact.none? %>
<% @can_upload = false %>
<% errors.append("There are unauthorized samples present in the spreadsheet.") %>
- <%= folding_panel("Unauthorized Samples", false, :id => "unauthorized-samples-panel", :body_options => {:id => "unauthorized-samples-panel-content"},
- :help_text => "Sample the current user does not have permission to edit them.") do %>
+ <%= folding_panel("Unauthorized Samples", false, :id => "unauthorized-samples-panel", :body_options => { :id => "unauthorized-samples-panel-content" },
+ :help_text => "Sample the current user does not have permission to edit them.") do %>
- You don't have permission to edit the samples listed below. Please contact the submitter of these samples or revert the changes in the spreadsheet to its original values.
+ You don't have permission to edit the samples listed below. Please contact the submitter of these samples or
+ revert the changes in the spreadsheet to its original values.
+
<% for key in @unauthorized_samples[0].keys %>
<% unless key == 'uuid' %>
@@ -17,6 +19,8 @@
<% end %>
<% end %>
+
+
<% for unauthorized_sample in @unauthorized_samples %>
' class="">
<% unauthorized_sample.map do |key, val| %>
@@ -24,7 +28,7 @@
<% if @multiple_input_fields.include?(key) %>
<% val.each do |sub_sample| %>
- '><%= sub_sample['title'] %>
+ '><%= sub_sample['title'] %>
<% end %>
<% else %>
@@ -34,6 +38,7 @@
<% end %>
<% end %>
+
<% end %>
diff --git a/app/views/single_pages/_update_samples_panel.html.erb b/app/views/single_pages/_update_samples_panel.html.erb
index 4349edd71b..1d339a2bba 100644
--- a/app/views/single_pages/_update_samples_panel.html.erb
+++ b/app/views/single_pages/_update_samples_panel.html.erb
@@ -1,8 +1,9 @@
<% unless @update_samples.nil? or @update_samples.compact.none? %>
- <%= folding_panel("Samples to Update #{@update_samples.size}", true, :id => "existing-samples-panel", :body_options => {:id => "existing-samples-panel-content"},
- :help_text => "These samples were detected existing samples and will be updated.") do %>
+ <%= folding_panel("Samples to Update #{@update_samples.size}", true, :id => "existing-samples-panel", :body_options => { :id => "existing-samples-panel-content" },
+ :help_text => "These samples were detected existing samples and will be updated.") do %>
+
<% for key in @update_samples[0].keys %>
@@ -11,38 +12,43 @@
<% end %>
<% end %>