Sha256: 83c52556b18957e9021189b407e000c009982d787ede60244d195d00114fd090

Contents?: true

Size: 469 Bytes

Versions: 3

Compression:

Stored size: 469 Bytes

Contents

= f.input :value, label: f.object.label || f.object.identifier.titleize, hint: f.object.hint, placeholder: f.object.placeholder, required: f.object.required do

  - if f.object.value_uid.present?
    = image_tag f.object.value.thumb('600x150>').url
    br
    - unless f.object.required
      = f.input :remove_value, inline_label: "Delete file?", label: false, as: :boolean, :wrapper => :default

  = f.input_field :value, as: :file

  = f.hidden_field :retained_value

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cardboard_cms-0.1.8 app/views/cardboard/fields/_image.html.slim
cardboard_cms-0.1.6 app/views/cardboard/fields/_image.html.slim
cardboard_cms-0.1.4 app/views/cardboard/fields/_image.html.slim