diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-09-02 04:17:32 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-09-02 04:17:32 +0000 |
commit | c3c6e6f405ca00f016ab4f72f0eb149aaea96fdb (patch) | |
tree | 66019efdfa9f4ffebb5656c259f4575383a7c8b9 /app/views/users/_groups.html.erb | |
parent | 9cc86eb902602381a00948ff4e0af9c56c9b2d5b (diff) | |
download | redmine-c3c6e6f405ca00f016ab4f72f0eb149aaea96fdb.tar.gz redmine-c3c6e6f405ca00f016ab4f72f0eb149aaea96fdb.zip |
rename .rhtml to .html.erb of app/views/users/_groups.rhtml.
:rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7046 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/users/_groups.html.erb')
-rw-r--r-- | app/views/users/_groups.html.erb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/users/_groups.html.erb b/app/views/users/_groups.html.erb new file mode 100644 index 000000000..0ab2f11eb --- /dev/null +++ b/app/views/users/_groups.html.erb @@ -0,0 +1,9 @@ +<% form_for(:user, :url => { :action => 'update' }, :html => {:method => :put}) do %> +<div class="box"> +<% 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][]', '' %> +</div> +<%= submit_tag l(:button_save) %> +<% end %> |