<% 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" %> <%= javascript_include_tag "validator" %> <%= javascript_include_tag "cycle2" %> <%= javascript_include_tag "ad_banner/banner_preview" %> <% end %>
<%= f.label :title, t('ad_banner.banner_name'), :class => "control-label muted" %>
<%= f.text_field :title, class: 'input-large', placeholder: t('ad_banner.banner_name') %> <%= t('ad_banner.name_only_english') %>
<%= f.label :timeout, t('ad_banner.transition_interval'), :class => "control-label muted" %>
<%= f.number_field :timeout, in: 0..60, step: 1, class: 'input-mini', onkeypress: "if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;" %> <%= t('ad_banner.number_seconds') %>
<%= f.label :speed, t('ad_banner.transition_speed'), :class => "control-label muted" %>
<%= f.number_field :speed, in: 0..1000, step: 100, class: 'input-mini', onkeypress: "if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;" %> <%= t('ad_banner.number_milliseconds') %>
<%= f.label :size, t('ad_banner.size'), :class => "control-label muted" %>
<%= f.number_field :base_image, in: 1..(@ad_banner.new_record? ? 1 : (@ad_banner.ad_images.count == 0 ? 1 : @ad_banner.ad_images.count)), class: 'input-mini', onkeypress: "if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;" %>
<%= select_category(f, @module_app) %>
<%= f.label :size, t('ad_banner.size'), :class => "control-label muted" %>
<%= f.select :ad_fx, Banner::FX_TYPES, {}, {class: 'ad_banner_ad_fx', id: 'ad_fx'} %>

<%= t('ad_banner.no_ie_10_effect_support') %>

<%= image_tag "slideshow_preview_A.png", width: "400", height: 80 %> <%= image_tag "slideshow_preview_B.png", width: "400", height: 80 %>
<%= f.submit t('submit'), class: 'btn btn-primary' %> <%= link_to t('cancel'), admin_ad_banners_path(:page => params[:page]), :class=>"btn" %>