Skip to content

Commit

Permalink
When editing traits or yields, pre-select the access level correspond…
Browse files Browse the repository at this point in the history
…ing to the

current value (GH issue #302).
  • Loading branch information
gsrohde committed Jun 9, 2015
1 parent 876c967 commit d5cdcb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/traits/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
</div>
<div class="four columns omega">
<%= 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" %>
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion app/views/yields/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
<%= f.select :dateloc, options_for_select($dateloc_drop.sort, f.object.dateloc || $dateloc_drop_default), :class => "input-full" %>
<br />
<%= 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" %>
</div>
<div class="eight columns omega">
<%= f.label :notes %>
Expand Down

0 comments on commit d5cdcb0

Please sign in to comment.