2013-10-15 11:33:31 +00:00
|
|
|
<%= form_for(:ad_banner, :url => admin_ad_banners_path) do |f| %>
|
|
|
|
<fieldset>
|
|
|
|
<legend><%= t("ad_banner.banner") %></legend>
|
|
|
|
<label><%= t("ad_banner.banner_name") %></label>
|
|
|
|
<%= f.text_field :title, :class=>"input-large", :placeholder=>"Banner Name" %>
|
|
|
|
<span class="help-block"><%= t("ad_banner.banner_name_note") %></span>
|
|
|
|
<label for="timeout"><%= t("ad_banner.ste") %></label>
|
|
|
|
<%= f.text_field :transition_sec, :class => 'input-large', :placeholder => 'Time' %>
|
|
|
|
<span class="help-block"><%= t("ad_banner.ste_note") %></span>
|
|
|
|
<label><%= t("ad_banner.best_size") %></label>
|
|
|
|
<%= f.text_field :best_size, :class=>"input-large", :placeholder=>"Banner Size" %>
|
|
|
|
<span class="help-block"><%= t("ad_banner.best_size") %> EX:120x30 </span>
|
|
|
|
<label><%= t("ad_banner.effect") %></label>
|
|
|
|
<%= f.select :ad_fx ,AdBanner::FX_TYPES %>
|
|
|
|
<div class="preview">
|
|
|
|
<%= image_tag "slideshow_preview_A.png", :width=>220 %>
|
|
|
|
<%= image_tag "slideshow_preview_B.png", :width=>220 %>
|
|
|
|
</div>
|
|
|
|
<span class="help-block"><%= t("ad_banner.effect") %></span>
|
|
|
|
<a href="javascript:$.pageslide.close()" class="btn btn-small"><%= t(:cancel) %></a>
|
|
|
|
<%= f.submit t(:create_), class: 'btn btn-primary btn-small' %>
|
|
|
|
</fieldset>
|
|
|
|
<% end %>
|
|
|
|
<script type="text/javascript">
|
|
|
|
$('select').on('change', function() {
|
|
|
|
$(".preview").cycle({
|
|
|
|
delay: -3000,
|
|
|
|
fx: $(this).val()
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|