Sha256: eb3291434804c10ef380d20159e1cfff8f6c66a52463939a5792a756dfe7cfc2

Contents?: true

Size: 521 Bytes

Versions: 8

Compression:

Stored size: 521 Bytes

Contents

.nested-fields.ability-permission-fields

  .row
    .col-sm-6
      #permission_from_list
        = f.association :permission, :collection => Permission.order(:allowed_action), :prompt => 'Choose an existing permission', :label_method => :allowed_action
    .col-sm-6
      #actions-on-permission{:style => 'line-height: 20px; margin-top: 5px;'}
        - if f.object.new_record?
          = link_to_add_association 'or create a new permission', f, :permission
        = link_to_remove_association "remove permission", f

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
vigilante-1.0.19 app/views/abilities/_ability_permission_fields.html.haml
vigilante-1.0.18 app/views/abilities/_ability_permission_fields.html.haml
vigilante-1.0.17 app/views/abilities/_ability_permission_fields.html.haml
vigilante-1.0.16 app/views/abilities/_ability_permission_fields.html.haml
vigilante-1.0.15 app/views/abilities/_ability_permission_fields.html.haml
vigilante-1.0.14 app/views/abilities/_ability_permission_fields.html.haml
vigilante-1.0.13 app/views/abilities/_ability_permission_fields.html.haml
vigilante-1.0.12 app/views/abilities/_ability_permission_fields.html.haml