Sha256: 7c10f20c1bab615f6e617caa5bab654fe3ec33d6bf67b1d9511becf07be954d8
Contents?: true
Size: 1.33 KB
Versions: 5
Compression:
Stored size: 1.33 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: #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' } - opts.merge! required: f.object.mark_required?(:io_stream) if ::Configuration.for('mark_requirements').enabled = f.input :io_stream, opts - if attachment.attachable_type || attachment.attachable_id = f.input :attachable_type, as: :hidden, input_html: { value: attachment.attachable_type } = f.input :attachable_id, as: :hidden, input_html: { value: attachment.attachable_id }
Version data entries
5 entries across 5 versions & 1 rubygems