Sha256: 910354a4e75631cdf36ef27b51f7474439681ba0916877049fe6b5f28a246ce6

Contents?: true

Size: 1.2 KB

Versions: 3

Compression:

Stored size: 1.2 KB

Contents

= javascript_include_tag 'importable_attachments/attachments'

#spreadsheet_action_panel.actions_menu
  = image_tag '/assets/importable_attachments/buttons/upload_32.png', alt: 'Upload File', title: 'Upload File', id: 'icon_file_upload', :class => 'faux_link'

  - if attachment.new_record?
    = image_tag '/assets/importable_attachments/buttons/download_32.png', alt: 'No File to Download', title: 'No File to Download', id: 'icon_file_download', :class => 'faux_link'
  - else
    - img_tag = image_tag '/assets/importable_attachments/buttons/download_32.png', alt: 'Download Original File', title: 'Download Original File', id: 'icon_file_download', :class => 'faux_link'
    =link_to img_tag, attachment.io_stream_url

%li
  %label.label File name
  %input#file_name{disabled: 'disabled', value: attachment.io_stream_file_name}
  = f.inputs id: 'attachment_attributes_io_stream_fields' do
    - opts = { as: :file, id: 'attachment_io_stream_input' }
    = f.semantic_fields_for :attachment do |attachment_form|
      - opts.merge! required: attachment_form.object.mark_required?(:io_stream) if ::Configuration.for('mark_requirements').enabled
      = attachment_form.inputs do
        = attachment_form.input :io_stream, opts

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
importable_attachments-0.0.15 app/views/importable_attachments/attachments/_nested_form.html.haml
importable_attachments-0.0.14 app/views/importable_attachments/attachments/_nested_form.html.haml
importable_attachments-0.0.13 app/views/importable_attachments/attachments/_nested_form.html.haml