<% content_for :page_specific_css do %> <%= stylesheet_link_tag "lib/main-forms" %> <%= stylesheet_link_tag "lib/fileupload" %> <%= stylesheet_link_tag "banner/jplayer.blue.monday.min" %> <% end %> <% content_for :page_specific_javascript do %> <%= javascript_include_tag "lib/bootstrap-fileupload" %> <%= javascript_include_tag "lib/bootstrap-datetimepicker" %> <%= javascript_include_tag "lib/datetimepicker/datetimepicker.js" %> <%= javascript_include_tag "lib/module-area" %> <%= javascript_include_tag "validator" %> <%= javascript_include_tag "banner/jquery.jplayer.min" %> <% end %> <%#= f.error_messages %>
<%= t("choose_type") %>
<%= select_tag "ad_image[exchange_item]", options_for_select(@item,@item_choose), prompt: t('select') %>
<% @site_in_use_locales.each_with_index do |locale, i| %>
" id="title_<%= locale %>"> <%= f.fields_for :title_translations do |f| %> <%= f.text_field locale, :value => (@ad_image.title_translations[locale] rescue nil), :placeholder=>"#{t(locale.to_s)+t("title")}" %> <% end %>
<% end %>
<% @site_in_use_locales.each_with_index do |locale, i| %> " href="#title_<%= locale %>" data-toggle="tab"><%= t(locale.to_s) %> <% end %>
<%= f.datetime_picker :postdate, :no_label => true, :new_record => @ad_image.new_record? %>
<%= f.datetime_picker :deadline, :no_label => true, :new_record => @ad_image.new_record? %>
<%= f.text_field :out_link, placeholder: t('ad_banner.enter_url'), id: 'ad_image_out_link' %>
<%= f.select :link_open, AdImage::LINK_OPEN_TYPES.map{|a| [t("ad_banner.#{a}"), a]} %>
<% @site_in_use_locales.each do |locale| %> <% end %>
<% @site_in_use_locales.each_with_index do |locale, i| %>
">
<%= f.fields_for :context_translations do |f| %> <%= f.cktext_area locale, rows: 5, class: "input-block-level", :value => (@ad_image.context_translations[locale] rescue nil) %> <% end %>
<% end %>
<%= f.submit t('submit'), class: 'btn btn-primary' %>