<%= 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 %>