<% content_for :page_specific_css do %> <%= stylesheet_link_tag "lib/datepicker" %> <% end %> <% content_for :page_specific_javascript do %> <%= javascript_include_tag "lib/datepicker" %> <%= javascript_include_tag "lib/date.format" %> <% end %>

Date

<%= f.hidden_field :parse_post_date %> <%= f.hidden_field :parse_unpost_date%>

Picture

<%= image_tag @ad_image.file,:width=> "456",:height=>'700' rescue ''%>
此區塊圖片尺寸請使用580px × 225px

Type

<%= f.select :link_open ,AdImage::LINK_OPEN_TYPES%>

FEQ

<%= f.text_field :weight ,:class=> 'span3',:placeholder=>"在套圖中出現次數 1次請輸入1" %>
<%= select_tag 'ad_banner[id]',options_from_collection_for_select(AdBanner.all, "id", "title",params[:ad_banner_id]) , :class=>"input-medium", %> <% site_valid_locales_default_head.each do |locale|%> <%= content_tag :div,:class => "tab-pane #{active_when_default_locale_eq locale}",:id=>"#{locale}" do%>
<%= f.fields_for :title,@ad_image.title do |f| %> <%= f.text_field locale,:class=>"ad_image-title",:placeholder => "輸入標題"%> <% end %>
<%= f.fields_for :context, @ad_image.context do |f| %> <%= f.text_area locale,:style => "width:100%", :class => "asd_tinymce_textarea" %> <% end %>
<% end %> <% end %>