Sha256: 661e08ab946326806f720d8f51d89c88f988c274b018d1182da74dff6ca2e50b

Contents?: true

Size: 998 Bytes

Versions: 23

Compression:

Stored size: 998 Bytes

Contents

= render "agilibox/flash"

.panel.panel-default
  .panel-heading: .panel-title = ::Dorsale::Alexandrie::Attachment.ts

  - url = params[:action] == "edit" ? @attachment : @new_attachment
  = form_for(url, as: :attachment, remote: true) do |f|
    = hidden_field_tag :authenticity_token, form_authenticity_token

    table
      = render "dorsale/alexandrie/attachments/header"

      tbody
        - if policy(::Dorsale::Alexandrie::Attachment).create?
          / Create only on index
          - if params[:action] == "edit"
            = render "dorsale/alexandrie/attachments/new_disabled"
          - else
            = render "dorsale/alexandrie/attachments/new", attachable: @attachable

        - @attachments.each do |attachment|
          - if params[:action] == "edit" && attachment == @attachment
            = render "dorsale/alexandrie/attachments/edit", attachment: attachment
          - else
            = render "dorsale/alexandrie/attachments/attachment", attachment: attachment

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
dorsale-4.0.0 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.20.0 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.19.1 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.19.0 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.18.0 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.17.0 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.16.0 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.15.0 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.14.11 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.14.10 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.14.9 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.14.8 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.14.7 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.14.6 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.14.5 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.14.4 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.14.3 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.14.2 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.14.1 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.14.0 app/views/dorsale/alexandrie/attachments/index.html.slim