Sha256: 45dd8e5bc94bcde2fe19b53130f9c5ba2804925807065c78b5ed403a0052733c

Contents?: true

Size: 504 Bytes

Versions: 3

Compression:

Stored size: 504 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
    p= link_to "#{f.object.value.name} (#{number_to_human_size f.object.value.size})", f.object.value.url
    - unless field[:required]
      = f.input :remove_value, as: :boolean, inline_label: "Delete file?", label: false, :wrapper => :default

  = f.hidden_field :retained_value

  = f.input_field :value, as: :file


Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cardboard_cms-0.3.1 app/views/cardboard/fields/_file.html.slim
cardboard_cms-0.2.2 app/views/cardboard/fields/_file.html.slim
cardboard_cms-0.2.1 app/views/cardboard/fields/_file.html.slim