<% content_for :page_specific_css do %> <%= stylesheet_link_tag "lib/main-forms" %> <%= stylesheet_link_tag "lib/fileupload" %> <% 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" %> <% end %> <%#= f.error_messages %>
<%= t("ad_banner.best_size") %>: <%= @ad_banner.width %>px X <%= @ad_banner.height %>px
<% if @ad_image.file.file %> <%= image_tag @ad_image.file %> <% else %> <% end %>
<%= t(:select_image) %> <%= t(:change) %> <%= f.file_field :file %> <%= t(:cancel) %>
<% @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 %>
<%= f.datetime_picker :deadline, :no_label => true %>
<%= f.text_field :out_link, placeholder: t('ad_banner.enter_url') %>
<%= f.select :link_open, AdImage::LINK_OPEN_TYPES.map{|a| [t("ad_banner.#{a}"), a]} %>
<% @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' %>