2012-04-18 07:26:59 +00:00
|
|
|
|
<div class="tab-pane <%= "active" if ad_banner_tab==@active%>" id=<%= ad_banner_tab.title %>>
|
2012-04-13 09:24:30 +00:00
|
|
|
|
<p><%= t("admin.ad.banner_best_size") %>:</p>
|
2012-04-01 15:39:49 +00:00
|
|
|
|
|
|
|
|
|
<%= form_for ad_banner_tab,:url=> admin_ad_banner_path(ad_banner_tab),:method => :put,:class=>"input-medium" do |f| -%>
|
2012-04-02 02:50:39 +00:00
|
|
|
|
<%= f.label :ad_fx, t('admin.ad.ab_fx') %>
|
2012-04-01 15:39:49 +00:00
|
|
|
|
<%= f.select :ad_fx ,AdBanner::FX_TYPES %>
|
2012-04-02 02:50:39 +00:00
|
|
|
|
<%= f.label :transition_sec, t('admin.ad.transition_sec') %>
|
|
|
|
|
<%= f.text_field :transition_sec,:placeholder=>"3秒請輸入3000",:class=> "span3" %> <%= t("admin.ad.trans_unit_sec") %>
|
2012-04-13 09:24:30 +00:00
|
|
|
|
<%= f.submit t("admin.ad.update_banner") %>
|
|
|
|
|
<%= f.submit t("cancel"),:type=>'reset' %>
|
2012-04-01 15:39:49 +00:00
|
|
|
|
<div>
|
|
|
|
|
<%= render :partial => "ad_image_update", :collection => ad_banner_tab.ad_images,:as => :ad_image,:locals=>{:ad_banner => ad_banner_tab} %>
|
|
|
|
|
<%#= render :partial => 'new_add_banner_file', :object => ad_banner_tab.ad_images.build, :locals => { :field_name => "new_ad_images[]", :f => f, :classes => "r_destroy" } %>
|
2012-04-17 07:21:43 +00:00
|
|
|
|
<%= link_to t("admin.ad.new_image"),new_admin_ad_banner_ad_image_path(ad_banner_tab) ,:class => "btn btn-primary"%>
|
2012-04-17 08:03:48 +00:00
|
|
|
|
<%= link_to t("modal.preview"), admin_realtime_preview_ad_banner_path(ad_banner_tab.title) , :class=>'preview_trigger btn btn-success'%>
|
2012-04-17 03:34:25 +00:00
|
|
|
|
|
2012-04-01 15:39:49 +00:00
|
|
|
|
</div>
|
|
|
|
|
<% end -%>
|
2012-04-17 03:34:25 +00:00
|
|
|
|
<%#= render :partial => 'preview_block',:locals=> {:ad_banner =>ad_banner_tab} %>
|
2012-04-01 15:39:49 +00:00
|
|
|
|
</div>
|