2012-04-25 21:17:49 +04:00
|
|
|
<%= form_for(:user, :url => { :action => 'update' }, :html => {:method => :put}) do %>
|
2009-09-12 12:36:46 +04:00
|
|
|
<div class="box">
|
2009-12-12 14:05:06 +03:00
|
|
|
<% Group.all.sort.each do |group| %>
|
2009-09-12 12:36:46 +04:00
|
|
|
<label><%= check_box_tag 'user[group_ids][]', group.id, @user.groups.include?(group) %> <%=h group %></label><br />
|
|
|
|
<% end %>
|
|
|
|
<%= hidden_field_tag 'user[group_ids][]', '' %>
|
|
|
|
</div>
|
|
|
|
<%= submit_tag l(:button_save) %>
|
|
|
|
<% end %>
|