Commit 72ceefd3 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Sort groups on user groups setting (#4389).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3160 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 1f47d585
<% form_for(:user, :url => { :action => 'edit' }) do %>
<div class="box">
<% Group.all.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 />
<% end %>
<%= hidden_field_tag 'user[group_ids][]', '' %>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment