17 lines
717 B
Plaintext
17 lines
717 B
Plaintext
- content_for :head do
|
|
= include_javascripts :edit_custom_fields, :assets
|
|
= include_stylesheets :fancybox
|
|
|
|
= f.inputs :name => :information do
|
|
= f.input :name
|
|
= f.input :source, :hint => preserve(t("formtastic.hints.asset.#{action_name}.source", :url => link_to(@asset.source_filename, @asset.source.url)))
|
|
|
|
- unless @asset.custom_fields.blank?
|
|
= 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)) |