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

4 lines
340 B
Plaintext
Raw Normal View History

2011-12-23 10:34:21 +00:00
<% role.sub_roles.each do |sub_role| %>
2012-01-24 03:38:53 +00:00
<%= f.label sub_role.i18n_variable[I18n.locale], :for => "check_sub_role_#{sub_role.id}", :class => 'sub_role_select' %>
<%= 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 %>