Sha256: ff01cf30882280916236917dc079711f3e9672a5cf5c126d2877d83d3ab07455
Contents?: true
Size: 665 Bytes
Versions: 10
Compression:
Stored size: 665 Bytes
Contents
- role = TheRole.get(@role.the_role) - 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')) - 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') = f.submit button
Version data entries
10 entries across 10 versions & 1 rubygems