|
|
@ -30,7 +30,7 @@ See doc/COPYRIGHT.rdoc for more details. |
|
|
|
<%= form_for(:user, :url => { :action => 'update' }, :html => {:method => :put}) do %> |
|
|
|
<%= form_for(:user, :url => { :action => 'update' }, :html => {:method => :put}) do %> |
|
|
|
<div class="box"> |
|
|
|
<div class="box"> |
|
|
|
<% Group.all.sort.each do |group| %> |
|
|
|
<% Group.all.sort.each do |group| %> |
|
|
|
<label><%= check_box_tag 'user[group_ids][]', group.id, @user.groups.include?(group) %> <%=h group %></label><br /> |
|
|
|
<label><%= check_box_tag 'user[group_ids][]', group.id, @user.groups.include?(group) %> <%=h group %></label> |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
<%= hidden_field_tag 'user[group_ids][]', '' %> |
|
|
|
<%= hidden_field_tag 'user[group_ids][]', '' %> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|