Skip to content

Commit

Permalink
[webui] Simplify user edit view
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisBr committed Oct 30, 2015
1 parent 301e24d commit e5c324f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/api/app/views/webui/user/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@
<p>
<%= label_tag :globalrole, 'Admin:' %>
<% if @displayed_user.is_admin? %>
<% checked = 'checked="checked"' %>
<input type="checkbox" name="globalrole" value="Admin" checked="checked" />
<% else %>
<% checked = "" %>
<input type="checkbox" name="globalrole" value="Admin"/>
<% end %>
<input type="checkbox" name="globalrole" value="Admin" <%= checked.html_safe if checked %> />
</p>
<p>
<% @states.each do |s| %>
Expand Down

0 comments on commit e5c324f

Please sign in to comment.