<% content_for :page_specific_css do %>
	<%#= javascript_include_tag "ad_banner" #this line  wont work %>
	<script type="text/javascript" src="<%= asset_path 'ad_banner' %>"></script> 
<% end %>


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

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

<p>
	<%= 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') } %>
</p>
<p>
	<%= f.label :context, t('admin.context') %>
	<%= f.text_field :context, :class => 'text' %>
	
</p>
<p>
	<%= f.label :direct_to_after_click, t('admin.direct_to_after_click') %>
	<%= f.check_box :direct_to_after_click %>
</p>
<p>
	<%= f.label :ad_fx, t('admin.ad_fx') %>
	<%= f.select :ad_fx ,AdBanner::FX_TYPES %>
</p>
<p>
	<%#= 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,  %>
	<ul id="new_add_banner_file_holder"></ul>
	<%= render :partial => 'new_add_banner_file', :object => @ad_banner.ad_images.build, :locals => { :field_name => "new_ad_images[]", :f => f, :classes => "r_destroy" } %>
</p>

<p>

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