Sha256: 619821e7707f67e1376501fbf485355d379db8157f66991c61de3fb4a469411b

Contents?: true

Size: 1.24 KB

Versions: 7

Compression:

Stored size: 1.24 KB

Contents

= content_for :nav_title do
  = @controller_action.to_s
= content_for :nav_links do
  .buttons
    = authz_link_to 'Edit', edit_controller_action_path(@controller_action), {class: 'button is-primary'}, skip_scoping: true
    = authz_link_to 'Destroy',
                    controller_action_path(@controller_action),
                    { method: :delete, class: 'button is-danger', data: { confirm: '¿Are you sure? This action is undoable' } },
                    skip_scoping: true

section.section
  .columns
    .column
      - if @associated_business_processes.blank?
        = render 'authz/business_processes/empty_association', parent_edit_link: edit_controller_action_path(@controller_action)
      - else
        h2.title.is-4 Business Processes
        = render 'authz/business_processes/table', business_processes: @associated_business_processes
    .column
      - if @associated_roles.blank?
        = render 'authz/roles/empty_association', parent_edit_link: edit_controller_action_path(@controller_action)
      - else
        h2.title.is-4 Roles
        = render 'authz/roles/table', roles: @associated_roles
  - Authz.rolables.each do |rolable|
    = render 'authz/rolables/table_from_association', rolable: rolable, parent_instance: @controller_action

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
authz-0.0.5 app/views/authz/controller_actions/show.html.slim
authz-0.0.4 app/views/authz/controller_actions/show.html.slim
authz-0.0.3 app/views/authz/controller_actions/show.html.slim
authz-0.0.2 app/views/authz/controller_actions/show.html.slim
authz-0.0.1 app/views/authz/controller_actions/show.html.slim
authz-0.0.1.alpha5 app/views/authz/controller_actions/show.html.slim
authz-0.0.1.alpha4 app/views/authz/controller_actions/show.html.slim