Sha256: 4c7fc150ffd6f194428569291a292b1340644616b1f029dd985d2e054812e9f3

Contents?: true

Size: 538 Bytes

Versions: 5

Compression:

Stored size: 538 Bytes

Contents

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

  -#= @page.errors.full_messages

  = form.inputs id: 'image_fields' do
    = form.input :data, label: "Image", hint: (resource.data.exists? ? image_tag(resource.data.url, style: "max-width:520px") : "No image")
    = 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 :caption
  = form.actions :submit

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
activeadmin-selleo-cms-0.0.38 app/views/admin/images/_form.html.haml
activeadmin-selleo-cms-0.0.37 app/views/admin/images/_form.html.haml
activeadmin-selleo-cms-0.0.36 app/views/admin/images/_form.html.haml
activeadmin-selleo-cms-0.0.35 app/views/admin/images/_form.html.haml
activeadmin-selleo-cms-0.0.34 app/views/admin/images/_form.html.haml