Sha256: 38c65de63b04a985f9edc440bebdd116a81c5bd7a89b7aa5a8ca19ac2ce69e66

Contents?: true

Size: 464 Bytes

Versions: 3

Compression:

Stored size: 464 Bytes

Contents

= f.input :value, label: field[:label] || identifier.titleize, hint: field[:hint], placeholder: field[:placeholder], required: field[:required] != false do

  - if f.object.value_uid.present?
    = image_tag f.object.value.thumb('600x150>').url
    br
    - unless field[: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.3.1 app/views/cardboard/fields/_image.html.slim
cardboard_cms-0.2.2 app/views/cardboard/fields/_image.html.slim
cardboard_cms-0.2.1 app/views/cardboard/fields/_image.html.slim