From d5cdcb0ea5a602b9fc45518dac2463ee3eda5609 Mon Sep 17 00:00:00 2001 From: Scott Rohde Date: Tue, 9 Jun 2015 17:12:59 -0500 Subject: [PATCH] When editing traits or yields, pre-select the access level corresponding to the current value (GH issue #302). --- app/views/traits/edit.html.erb | 2 +- app/views/yields/edit.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/traits/edit.html.erb b/app/views/traits/edit.html.erb index 2e2d707d5..4980410b5 100644 --- a/app/views/traits/edit.html.erb +++ b/app/views/traits/edit.html.erb @@ -89,7 +89,7 @@
<%= f.label :access_level %> - <%= f.select :access_level, [["1.Restricted",1],['2.EBI Researchers',2],['3.External Researchers',3],['4.Public',4]], :selected => 2,:class => "input-full" %> + <%= f.select :access_level, [["1.Restricted",1],['2.EBI Researchers',2],['3.External Researchers',3],['4.Public',4]], :class => "input-full" %>
diff --git a/app/views/yields/edit.html.erb b/app/views/yields/edit.html.erb index 253303973..11ad4f280 100644 --- a/app/views/yields/edit.html.erb +++ b/app/views/yields/edit.html.erb @@ -78,7 +78,7 @@ <%= f.select :dateloc, options_for_select($dateloc_drop.sort, f.object.dateloc || $dateloc_drop_default), :class => "input-full" %>
<%= f.label :access_level %> - <%= f.select :access_level, [["1.Restricted",1],['2.EBI',2],['3.External',3],['4.Public',4]], :selected => current_user.access_level, :class => "input-full" %> + <%= f.select :access_level, [["1.Restricted",1],['2.EBI',2],['3.External',3],['4.Public',4]], :class => "input-full" %>
<%= f.label :notes %>