app/views/admin/roles/_form.haml in the_role-1.4.1 vs app/views/admin/roles/_form.haml in the_role-1.5.0

- old
+ new

@@ -1,23 +1,23 @@ -- role = TheRole.get(@role.the_role) +- role = @role.to_hash - if role.blank? %h3= t('.empty') - else -role.each do |name, set| %h4 = name %span.controls - = link_to(t('.delete'), admin_role_section_url(@role, name), :method => :delete, :confirm => t('.destroy_section_confirm')) + = link_to(t('.delete'), admin_role_section_path(@role, name), :method => :delete, :confirm => t('.destroy_section_confirm')) - if set.is_a?(Hash) %ul.rights - set.each do |n, v| %li = check_box_tag "role[the_role][#{name}][#{n}]", true, v = n .controls - = link_to t('.delete'), delete_policy_admin_role_section_path(@role, name, :name => n), :method => :delete, :confirm => t('.delete_policy_confirm') + = link_to t('.delete'), destroy_rule_admin_role_section_path(@role, name, :name => n), :method => :delete, :confirm => t('.delete_rule_confirm') = f.submit button