Sha256: a288121cdbc93dab740bcd2f771679d503053540955ccb3f789da08907f6a02b

Contents?: true

Size: 1.72 KB

Versions: 2

Compression:

Stored size: 1.72 KB

Contents

= content_for :nav_title do
  = @role.name.titleize
= content_for :nav_links do
  .buttons
    = link_to 'Edit', edit_role_path(@role), class: 'button is-primary'
    = link_to 'Destroy', role_path(@role), method: :delete, class: 'button is-danger', data: { confirm: '¿Are you sure? This action is undoable' }

section.section
  .columns
    .column
      h2.title.is-4 Business Processes
      - if @associated_business_processes.blank?
        = render 'authz/business_processes/empty_association', parent_edit_link: edit_controller_action_path(@role)
      - else
        = render 'authz/business_processes/table', business_processes: @associated_business_processes
    .column
      h2.title.is-4 Controller Actions
      - if @associated_controller_actions.blank?
        = render 'authz/controller_actions/empty_association', parent_edit_link: edit_controller_action_path(@role)
      - else
        = render 'authz/controller_actions/table', controller_actions: @associated_controller_actions
section.section
  h2.title.is-4 Scoping Rules
  .card
    table.table.is-fullwidth
      thead
        tr
          th Name
          th Value
          th
      tbody
        - @scoping_rules.each do |rule_name, instance|
          tr
            td = rule_name
            td = instance.try(:keyword) || 'Not created yet'
            td
              - if instance
                = link_to 'Edit', edit_role_scoping_rule_path(@role, instance), class: 'button is-primary'
              - else
                = link_to 'New', new_role_scoping_rule_path(@role, scopable: rule_name), class: 'button is-primary'
section.section
  - Authz.rolables.each do |rolable|
    = render 'authz/rolables/table_from_association', rolable: rolable, parent_instance: @role

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
authz-0.0.1.alpha3 app/views/authz/roles/show.html.slim
authz-0.0.1.alpha2 app/views/authz/roles/show.html.slim