Sha256: 20a3dba8427e0fdbb0b96ec1218ac43b2fd98569b7d66e876474a1e9481f6ccc

Contents?: true

Size: 616 Bytes

Versions: 9

Compression:

Stored size: 616 Bytes

Contents

= f.inputs :name => :information do
  = f.input :name
  = f.input :source

- unless @asset.custom_fields.empty?
  = f.inputs :name => :other_fields do
    - @asset.custom_fields.each do |field|
      - if field.string?
        = f.input field._alias.to_sym, :label => field.label
      - elsif field.text?
        = f.input field._alias.to_sym, :label => field.label, :as => :text

- if @asset.image?
  = f.foldable_inputs :name => "#{t('formtastic.titles.preview')} #{image_dimensions_and_size(@asset)}", :class => 'preview' do
    %li
      .image
        .inside
          = image_tag(@asset.source.url(:preview))

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
locomotive_cms-0.0.2.3 app/views/admin/assets/_form.html.haml
locomotive_cms-0.0.2.2 app/views/admin/assets/_form.html.haml
locomotive_cms-0.0.2.1 app/views/admin/assets/_form.html.haml
locomotive_cms-0.0.2 app/views/admin/assets/_form.html.haml
locomotive_cms-0.0.1.4 app/views/admin/assets/_form.html.haml
locomotive_cms-0.0.1.3 app/views/admin/assets/_form.html.haml
locomotive_cms-0.0.1.2 app/views/admin/assets/_form.html.haml
locomotive_cms-0.0.1.1 app/views/admin/assets/_form.html.haml
locomotive_cms-0.0.1 app/views/admin/assets/_form.html.haml