Orbit/app/views/admin/users/_sub_role_selector.html.erb

4 lines
319 B
Plaintext
Raw Normal View History

2011-12-23 10:34:21 +00:00
<% role.sub_roles.each do |sub_role| %>
2012-07-25 21:58:09 +00:00
<%= f.label sub_role.title, :for => "check_sub_role_#{sub_role.id}", :class => 'sub_role_select' %>
2012-01-24 03:38:53 +00:00
<%= check_box_tag "user[sub_role_ids][]", sub_role.id, @user.sub_role_ids.include?(sub_role.id), :id => "check_sub_role_#{sub_role.id}", :class => 'sub_role_select' %>
2011-12-23 10:34:21 +00:00
<% end %>