40 lines
2.1 KiB
Plaintext
40 lines
2.1 KiB
Plaintext
<div class="tab-pane fade <%= "active in" if ad_banner_tab==@active%>" id=<%= ad_banner_tab.title.dehumanize %>>
|
||
<% if at_least_module_manager || sub_manager?(ad_banner_tab)%>
|
||
<%= 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("ad.banner_best_size") %>:</p>-->
|
||
<%= f.label :ad_fx, t('ad.ab_fx') %>
|
||
<%= f.select :ad_fx ,AdBanner::FX_TYPES %>
|
||
<%= f.label :transition_sec, t('ad.transition_sec') %>
|
||
<%= f.text_field :transition_sec,:placeholder=>t('ad.sec_place_holder'),:class=> "span3" %> <%= t("ad.trans_unit_sec") %>
|
||
<%if at_least_module_manager%>
|
||
<%= f.label :best_size, t('ad.best_size') %>
|
||
<%= f.text_field :best_size %> Ex: 500px x 300px
|
||
<% end -%>
|
||
<br>
|
||
<%= f.submit t("ad.update_banner"), :class => 'btn' %>
|
||
<%= f.submit t("cancel"),:type=>'reset', :class => 'btn' %>
|
||
</div>
|
||
<% end -%>
|
||
<% end -%>
|
||
<h3><%= t("ad.picture_list")%></h3>
|
||
<div class="adbanner-list">
|
||
<%if (at_least_module_manager || ad_banner_tab.cur_user_is_sub_manager_of(:edit) )%>
|
||
<%= content_tag :div ,:class=>'adbanner-action' do%>
|
||
<%= link_to t("ad.new_image"),new_admin_ad_banner_ad_image_path(ad_banner_tab) ,:class => "btn btn-primary"%>
|
||
<%= link_to t(:preview), admin_realtime_preview_ad_banner_path(ad_banner_tab.id) , :class=>'preview_trigger btn btn-success'%>
|
||
<% end -%>
|
||
<% end -%>
|
||
<ul class="clear">
|
||
<%= render :partial => "ad_image_update", :collection => ad_banner_tab.ad_images,:as => :ad_image,:locals=>{:ad_banner => ad_banner_tab} %>
|
||
</ul>
|
||
<% if at_least_module_manager %>
|
||
<%= show_ad_banner_permission_link ad_banner_tab%>
|
||
<%= link_to t(:delete_),admin_ad_banner_path(ad_banner_tab),:class => 'btn',:method => :delete,:confirm => t('sure?') %>
|
||
<% end -%>
|
||
|
||
<%#= 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>
|
||
<%#= render :partial => 'preview_block',:locals=> {:ad_banner =>ad_banner_tab} %>
|
||
</div>
|