<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2010 %> <% secured_actions = Helpsystems::Security.secured_actions.sort {|a,b| a.to_s.downcase <=> b.to_s.downcase } %> <% secured_actions.each do |secured_action| %> <%# if Helpsystems::Security.record_level_model_name(secured_area).nil? %> <%# if Helpsystems::Security.object_level?(secured_area) %> <% unless @role.nil? %> <% use_authority = @role.has_use_authority_to?(secured_action) %> <% exclude_authority = @role.has_exclude_authority_to?(secured_action) %> <% unless use_authority %> <% exclude_authority = true %> <% end %> <% else %> <% use_authority = false %> <% exclude_authority = true %> <% end %> <% end %>
<%= t'.secured_action_header' %> <%= t'.use_header' %> <%= t'.exclude_header' %>
<%= t ("secured_area.#{secured_action.to_s.downcase}") %> <%= radio_button_tag("#{secured_action}_action_permission", "use_#{secured_action}", use_authority, {:disabled => @view_only}) %> <%= radio_button_tag("#{secured_action}_action_permission", "exclude_#{secured_action}", exclude_authority, {:disabled => @view_only}) %>