summaryrefslogtreecommitdiffstats
path: root/app/views/users/_groups.html.erb
blob: 3b277abd7cec3f48c66987b0f0d9119c50131ec2 (plain)
1
2
3
4
5
6
7
8
9
<%= form_for(:user, :url => { :action => 'update' }, :html => {:method => :put}) do %>
<div class="box">
<% Group.givable.sort.each do |group| %>
<label><%= check_box_tag 'user[group_ids][]', group.id, @user.groups.to_a.include?(group), :id => nil %> <%=h group %></label><br />
<% end %>
<%= hidden_field_tag 'user[group_ids][]', '' %>
</div>
<%= submit_tag l(:button_save) %>
<% end %>