Bulk edit for users hook implementation

This commit is contained in:
Karel Picman 2016-09-05 10:50:54 +02:00
parent 377b4c320a
commit 0ef5deb43e
2 changed files with 3 additions and 1 deletions

View File

@ -23,5 +23,5 @@
%>
<%= labelled_fields_for 'user[pref]', @user.pref do |pref_fields| %>
<p><%= pref_fields.check_box :dmsf_tree_view %></p>
<p><%= pref_fields.check_box :dmsf_tree_view %></p>
<% end %>

View File

@ -24,6 +24,8 @@ module RedmineDmsf
class MyAccountViewHook < Redmine::Hook::ViewListener
render_on :view_users_bulk_edit, :partial => 'hooks/redmine_dmsf/view_users_bulk_edit'
def view_my_account_preferences(context={})
if context.is_a?(Hash) && context[:user]
context[:controller].send(