2010-05-12 00:16:39 +00:00
|
|
|
= f.inputs :name => :information do
|
|
|
|
= f.input :name
|
|
|
|
= f.input :source
|
|
|
|
|
2010-05-22 14:46:32 +00:00
|
|
|
- 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
|
|
|
|
|
2010-05-12 00:16:39 +00:00
|
|
|
- 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))
|