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

4 lines
222 B
Plaintext
Raw Normal View History

2011-12-23 10:34:21 +00:00
<% role.sub_roles.each do |sub_role| %>
<%= sub_role.i18n_variable[I18n.locale] %>
<%= check_box_tag "user[sub_role_ids][]", sub_role.id, @user.sub_role_ids.include?(sub_role.id), :class => 'sub_role_select' %>
<% end %>