Sha256: c20438e0cde467c4b5f4525886ced938a81986650bc9d7ecb14d9112e2ab39b6

Contents?: true

Size: 719 Bytes

Versions: 8

Compression:

Stored size: 719 Bytes

Contents

- content_for :head do
  = javascript_include_tag 'admin/plugins/tiny_mce/tinymce', 'admin/plugins/json2', 'admin/plugins/fancybox', 'admin/custom_fields/category', 'admin/assets'
  = stylesheet_link_tag 'admin/plugins/fancybox', 'admin/box'

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

- unless @asset.custom_fields.empty?
  = render 'admin/custom_fields/custom_form', :form => f, :title => :other_fields, :parent => @asset_collection

- if @asset.image? && @asset.valid?
  = 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

8 entries across 8 versions & 1 rubygems

Version Path
locomotive_cms-0.0.4.beta5 app/views/admin/assets/_form.html.haml
locomotive_cms-0.0.4.beta4 app/views/admin/assets/_form.html.haml
locomotive_cms-0.0.4.beta3 app/views/admin/assets/_form.html.haml
locomotive_cms-0.0.4.beta2 app/views/admin/assets/_form.html.haml
locomotive_cms-0.0.4.beta1 app/views/admin/assets/_form.html.haml
locomotive_cms-0.0.4 app/views/admin/assets/_form.html.haml
locomotive_cms-0.0.3.3 app/views/admin/assets/_form.html.haml
locomotive_cms-0.0.3.1 app/views/admin/assets/_form.html.haml