Sha256: 3cf84b7a83367cdfeb98cf7fab1f36d15b31a5d123c12dd1c411768bb01eea9a

Contents?: true

Size: 839 Bytes

Versions: 4

Compression:

Stored size: 839 Bytes

Contents

- return if @quick_edit
- f.object.file.styles.each_pair do |style, meta|
  .node{class: field.form_type}
    .label= f.label "crop_#{style}", f.object.class.human_attribute_name("crop_#{style}")
    .input
        
      = image_tag f.object.file.url(:original), class: 'js_crop_image'

      = f.hidden_field "#{style}_x", class: 'js_cords_x'
      = f.hidden_field "#{style}_y", class: 'js_cords_y'
      = f.hidden_field "#{style}_w", class: 'js_cords_w'
      = f.hidden_field "#{style}_h", class: 'js_cords_h'
  
      %div{style: 'margin-top: 30px'}
        = render partial: 'bhf/helper/field_errors', locals: {f: f, field: "crop_#{style}"}
        = image_tag f.object.file.url(style), class: 'uploaded_image'
        = render partial: 'bhf/helper/info', locals: {info: t("bhf.platforms.assets.infos.crop_#{style}", default: '')}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ksk-0.4.0 app/views/bhf/form/column/_crop_thumbs.html.haml
ksk-0.3.4 app/views/bhf/form/column/_crop_thumbs.html.haml
ksk-0.3.3 app/views/bhf/form/column/_crop_thumbs.html.haml
ksk-0.3.2 app/views/bhf/form/column/_crop_thumbs.html.haml