Sha256: c6f9d36c650b24931ba6fef8dc29a83fc27380b6a9dfa993d226b50019dfc005

Contents?: true

Size: 909 Bytes

Versions: 5

Compression:

Stored size: 909 Bytes

Contents

div class=SimpleFormAttachments.dom_class(:attachment, [:col, :thumb])
  = image_tag attachment.thumb_url, alt: attachment.file_name

div class=SimpleFormAttachments.dom_class(:attachment, [:col, :file_info])
  span class=SimpleFormAttachments.dom_class(:attachment, :col, :file_info, :name)
    = link_to attachment.file_name, attachment.file.url
  span class=SimpleFormAttachments.dom_class(:attachment, :col, :file_info, :mime_type)
    = attachment.file_mime_type
  span class=SimpleFormAttachments.dom_class(:attachment, :col, :file_info, :size) data-filesize=attachment.file_size
    = attachment.file_size

- if attachment.errors.to_a.any?
  div class=SimpleFormAttachments.dom_class(:attachment, [:col, :errors])
    = render 'simple_form_attachments/errors', errors: attachment.errors.to_a

- else
  div class=SimpleFormAttachments.dom_class(:attachment, [:col, :fields])
    = fields.input :caption

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
simple_form_attachments-1.2.0 test/dummy/app/views/simple_form_attachments/attachment_images/_attachment_image.html.slim
simple_form_attachments-1.1.1 test/dummy/app/views/simple_form_attachments/attachment_images/_attachment_image.html.slim
simple_form_attachments-1.1.0 test/dummy/app/views/simple_form_attachments/attachment_images/_attachment_image.html.slim
simple_form_attachments-1.0.1 test/dummy/app/views/simple_form_attachments/attachment_images/_attachment_image.html.slim
simple_form_attachments-1.0.0 test/dummy/app/views/simple_form_attachments/attachment_images/_attachment_image.html.slim