28 lines
1.6 KiB
Plaintext
28 lines
1.6 KiB
Plaintext
<div class="tab-pane fade <%= "active in" if ad_banner_tab==@active%>" id=<%= ad_banner_tab.title.dehumanize %>>
|
||
|
||
<%= form_for ad_banner_tab,:url=> admin_ad_banner_path(ad_banner_tab),:method => :put,:class=>"input-medium" do |f| -%>
|
||
<div class="adbanner-setup well">
|
||
<!--<p><%#= t("admin.ad.banner_best_size") %>:</p>-->
|
||
<%= f.label :ad_fx, t('admin.ad.ab_fx') %>
|
||
<%= f.select :ad_fx ,AdBanner::FX_TYPES %>
|
||
<%= f.label :transition_sec, t('admin.ad.transition_sec') %>
|
||
<%= f.text_field :transition_sec,:placeholder=>t('admin.ad.sec_place_holder'),:class=> "span3" %> <%= t("admin.ad.trans_unit_sec") %>
|
||
<br>
|
||
<%= f.submit t("admin.ad.update_banner"), :class => 'btn' %>
|
||
<%= f.submit t("cancel"),:type=>'reset', :class => 'btn' %>
|
||
</div>
|
||
<h3>圖片列表</h3>
|
||
<div class="adbanner-list">
|
||
<div class="adbanner-action">
|
||
<%= link_to t("admin.ad.new_image"),new_admin_ad_banner_ad_image_path(ad_banner_tab) ,:class => "btn btn-primary"%>
|
||
<%= link_to t("modal.preview"), admin_realtime_preview_ad_banner_path(ad_banner_tab.id) , :class=>'preview_trigger btn btn-success'%>
|
||
</div>
|
||
<ul class="clear">
|
||
<%= render :partial => "ad_image_update", :collection => ad_banner_tab.ad_images,:as => :ad_image,:locals=>{:ad_banner => ad_banner_tab} %>
|
||
</ul>
|
||
<%#= render :partial => 'new_add_banner_file', :object => ad_banner_tab.ad_images.build, :locals => { :field_name => "new_ad_images[]", :f => f, :classes => "r_destroy" } %>
|
||
</div>
|
||
<% end -%>
|
||
<%#= render :partial => 'preview_block',:locals=> {:ad_banner =>ad_banner_tab} %>
|
||
</div>
|