Sha256: 09a7867ca0c57869f138e3f9f4252a9d3f61ddb247b6d02394eae6a4c53fe31c

Contents?: true

Size: 509 Bytes

Versions: 4

Compression:

Stored size: 509 Bytes

Contents

tr.attachment class=('uploaded' if attachment.present? && attachment.errors.to_a.blank?)
  td.handle

  td.hidden
    = fields.hidden_field :id
    = form.hidden_field(relation_key, multiple: multiple, value: attachment.id) if attachment.errors.empty?

  = yield

  td.cancel.delete.close
    - if attachment.errors.to_a.any?
      button.button.close = I18n.t(:close, scope: 'simple_form_attachments.buttons')
    - else
      button.button.delete = I18n.t(:delete, scope: 'simple_form_attachments.buttons')

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
simple_form_attachments-0.2.2 app/views/layouts/simple_form_attachments/_attachment_layout.html.slim
simple_form_attachments-0.2.1 app/views/layouts/simple_form_attachments/_attachment_layout.html.slim
simple_form_attachments-0.2.0 app/views/layouts/simple_form_attachments/_attachment_layout.html.slim
simple_form_attachments-0.1.5 app/views/layouts/simple_form_attachments/_attachment_layout.html.slim