19 lines
1.0 KiB
Plaintext
19 lines
1.0 KiB
Plaintext
|
<script type="text/javascript" src="/static/jquery.cycle.all.latest.js"></script>
|
||
|
<div class="tab-pane <%= "active" if ad_banner_tab==@active %>" id=<%= ad_banner_tab.title %>>
|
||
|
<p>尺寸:</p>
|
||
|
|
||
|
<%= form_for ad_banner_tab,:url=> admin_ad_banner_path(ad_banner_tab),:method => :put,:class=>"input-medium" do |f| -%>
|
||
|
<%= f.label :ad_fx, t('admin.ad_fx') %>
|
||
|
<%= f.select :ad_fx ,AdBanner::FX_TYPES %>
|
||
|
<%= f.submit %>
|
||
|
<%= f.submit 'Cancel',:type=>'reset' %>
|
||
|
<%= f.text_field :transition_sec,:placeholder=>"3秒請輸入3000",:class=> "span3" %>
|
||
|
<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" } %>
|
||
|
<%= link_to 'Add AdImage',new_admin_ad_banner_ad_image_path(ad_banner_tab) %>
|
||
|
</div>
|
||
|
<% end -%>
|
||
|
<%= preview_block ad_banner_tab %>
|
||
|
</div>
|