2010-06-22 13:04:40 +00:00
|
|
|
- content_for :head do
|
2010-12-14 17:00:12 +00:00
|
|
|
= include_javascripts :edit_custom_fields, :assets
|
2011-01-18 17:13:06 +00:00
|
|
|
= include_stylesheets :fancybox
|
2010-06-22 13:04:40 +00:00
|
|
|
|
2010-05-12 00:16:39 +00:00
|
|
|
= f.inputs :name => :information do
|
|
|
|
= f.input :name
|
2011-03-05 22:27:26 +00:00
|
|
|
= f.input :source, :hint => preserve(t("formtastic.hints.asset.#{action_name}.source", :url => link_to(@asset.source_filename, @asset.source.url)))
|
2010-05-12 00:16:39 +00:00
|
|
|
|
2011-01-29 12:05:42 +00:00
|
|
|
- unless @asset.custom_fields.blank?
|
2010-07-13 00:46:17 +00:00
|
|
|
= render 'admin/custom_fields/custom_form', :form => f, :title => :other_fields, :parent => @asset_collection
|
2010-05-22 14:46:32 +00:00
|
|
|
|
2010-06-12 21:47:14 +00:00
|
|
|
- if @asset.image? && @asset.valid?
|
2010-05-12 00:16:39 +00:00
|
|
|
= 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))
|