Sha256: fb84252160e286cf5dddd69e46d9688dc83aea4acec655d9d412900664258c5c

Contents?: true

Size: 809 Bytes

Versions: 12

Compression:

Stored size: 809 Bytes

Contents

= f.fields_for field.name, asset do |a|
  - if asset.file.file?
    - if allow_position
      .position_handle.float_left 
    - if asset.is_image?
      = image_tag asset.file.url(:medium), class: 'uploaded_image float_left'
    - else
      = link_to asset.file_file_name, asset.file.url, class: 'uploaded_image float_left'
      - if asset.has_preview?
        = link_to edit_bhf_entry_path('previews', asset.preview), class: 'float_left' do
          = image_tag asset.preview_file.url(:thumb), class: 'uploaded_image'
      - else
        = link_to 'Vorschaubild hochladen', new_bhf_entry_path('previews', asset_id: asset.id), class: 'float_left'

    .file_delete.float_right
      = a.check_box :_destroy
      = a.label :_destroy, t('bhf.helpers.file.delete')
      
    - if allow_position
      %hr

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ksk-0.2.3 app/views/bhf/entries/form/has_many/_upload.html.haml
ksk-0.2.2 app/views/bhf/entries/form/has_many/_upload.html.haml
ksk-0.2.1 app/views/bhf/entries/form/has_many/_upload.html.haml
ksk-0.2.0 app/views/bhf/entries/form/has_many/_upload.html.haml
ksk-0.1.7 app/views/bhf/entries/form/has_many/_upload.html.haml
ksk-0.1.6 app/views/bhf/entries/form/has_many/_upload.html.haml
ksk-0.1.5 app/views/bhf/entries/form/has_many/_upload.html.haml
ksk-0.1.4 app/views/bhf/entries/form/has_many/_upload.html.haml
ksk-0.1.3 app/views/bhf/entries/form/has_many/_upload.html.haml
ksk-0.1.2 app/views/bhf/entries/form/has_many/_upload.html.haml
ksk-0.1.1 app/views/bhf/entries/form/has_many/_upload.html.haml
ksk-0.1.0 app/views/bhf/entries/form/has_many/_upload.html.haml