Sha256: 5f8351d94a69fda4c45357509bbbd9fd26c745ac2534ed2c8c108ad7b1942979

Contents?: true

Size: 934 Bytes

Versions: 13

Compression:

Stored size: 934 Bytes

Contents

= semantic_form_for [:admin, resource], remote: true, html: { multipart: true } do |form|

  = form.inputs id: 'image_fields' do
    = form.input :assetable_type, as: :hidden, input_html: { value: resource.assetable_type }
    = form.input :assetable_id, as: :hidden, input_html: { value: resource.assetable_id }
    = form.input :image_width, as: :hidden, input_html: { value: resource.assetable.activeadmin_selleo_cms_section.width }
    = form.input :image_height, as: :hidden, input_html: { value: resource.assetable.activeadmin_selleo_cms_section.height }
    = form.input :resize_method, as: :hidden, input_html: { value: resource.assetable.activeadmin_selleo_cms_section.resize_method }
    = form.input :crop_x, as: :hidden
    = form.input :crop_y, as: :hidden
    = form.input :crop_w, as: :hidden
    = form.input :crop_h, as: :hidden
    %div.jcrop
      = image_tag resource.data.url(:original)
  = form.actions :submit

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
activeadmin-selleo-cms-0.0.61 app/views/admin/images/_crop_form.html.haml
activeadmin-selleo-cms-0.0.60 app/views/admin/images/_crop_form.html.haml
activeadmin-selleo-cms-0.0.59 app/views/admin/images/_crop_form.html.haml
activeadmin-selleo-cms-0.0.58 app/views/admin/images/_crop_form.html.haml
activeadmin-selleo-cms-0.0.54 app/views/admin/images/_crop_form.html.haml
activeadmin-selleo-cms-0.0.52 app/views/admin/images/_crop_form.html.haml
activeadmin-selleo-cms-0.0.51 app/views/admin/images/_crop_form.html.haml
activeadmin-selleo-cms-0.0.49 app/views/admin/images/_crop_form.html.haml
activeadmin-selleo-cms-0.0.48 app/views/admin/images/_crop_form.html.haml
activeadmin-selleo-cms-0.0.47 app/views/admin/images/_crop_form.html.haml
activeadmin-selleo-cms-0.0.46 app/views/admin/images/_crop_form.html.haml
activeadmin-selleo-cms-0.0.45 app/views/admin/images/_crop_form.html.haml
activeadmin-selleo-cms-0.0.44 app/views/admin/images/_crop_form.html.haml