<% content_for :page_specific_css do %> <%#= javascript_include_tag "ad_banner" #this line wont work %> <% end %>

<%= f.label :title, t('admin.title') %> <%= f.text_field :title, :class => 'text' %>

<%= f.label :picture_position, t('admin.picture_position') %> <%= f.text_field :picture_position, :class => 'text' %>

<%= f.label :post_date, t('admin.post_date') %> <%= f.date_select :post_date, :order => [:year, :month, :day], :use_month_numbers => true %>

<%= f.label :unpost_date, t('admin.unpost_date') %> <%= f.date_select :unpost_date, :order => [:year, :month, :day], :use_month_numbers => true,:prompt => { :day => t('form.date_unlimited'), :month => t('form.date_unlimited'), :year => t('form.date_unlimited') } %>

<%= f.label :context, t('admin.context') %> <%= f.text_field :context, :class => 'text' %>

<%= f.label :direct_to_after_click, t('admin.direct_to_after_click') %> <%= f.check_box :direct_to_after_click %>

<%= f.label :ad_fx, t('admin.ad_fx') %> <%= f.select :ad_fx ,AdBanner::FX_TYPES %>

<%#= f.label :ad_images, t('admin.ad_images') %> <%# @ad_banner.ad_images.each do |ad_image| %> <%#= render :partial => 'ad_image_update', :object => ad_image, :locals => { :field_name => "ad_images", :f => f, :classes => "r_destroy, r_edit" } %> <%# end %> <%= render :partial => "ad_image_update", :collection => @ad_banner.ad_images,:as => :ad_image, %>

<%= render :partial => 'new_add_banner_file', :object => @ad_banner.ad_images.build, :locals => { :field_name => "new_ad_images[]", :f => f, :classes => "r_destroy" } %>

<%#= render :partial => 'new_design_file', :object => @design.themes.build, :locals => { :field_name => "themes", :f => f, :classes => "r_destroy" } %>