app/views/caboose/users/admin_edit_roles.html.erb in caboose-cms-0.9.166 vs app/views/caboose/users/admin_edit_roles.html.erb in caboose-cms-0.9.167
- old
+ new
@@ -1,7 +1,9 @@
<%= render :partial => 'caboose/users/admin_header' %>
+<h3 style="margin:0 0 10px 0;">Roles</h3>
+
<div id='roles'>
<table class='data'>
<% Caboose::Role.flat_tree(@site.id).each do |r| %>
<% is_member = Caboose::RoleMembership.where(:role_id => r.id, :user_id => @edituser.id).exists? %>
<tr><td><input type='checkbox' name='role<%= r.id %>' <%= is_member ? "checked='true'" : '' %> onclick="toggle_role(<%= @edituser.id %>, <%= r.id %>, $(this).prop('checked'));" /></td><td><%= r.name %></td></tr>