2012-04-17 03:34:25 +00:00
|
|
|
<% content_for :page_specific_css do -%>
|
|
|
|
<%#= stylesheet_link_tag "admin/ad_banner_preview" %>
|
|
|
|
<% end -%>
|
2012-05-03 06:57:10 +00:00
|
|
|
<% content_for :page_specific_javascript do -%>
|
2012-04-17 08:03:48 +00:00
|
|
|
<%= javascript_include_tag "/static/jquery.cycle.all.latest.js" %>
|
2012-04-17 03:34:25 +00:00
|
|
|
<%= javascript_include_tag "inc/modal-preview" %>
|
2012-05-16 08:42:43 +00:00
|
|
|
<%= javascript_include_tag "lib/contenteditable" %>
|
|
|
|
|
2012-04-17 03:34:25 +00:00
|
|
|
<% end -%>
|
|
|
|
|
2012-04-13 08:46:16 +00:00
|
|
|
|
2012-04-01 15:39:49 +00:00
|
|
|
<div id="post-body-content" class="clear">
|
2012-04-29 16:17:18 +00:00
|
|
|
<ul id="banner_tab" class="nav nav-tabs">
|
2012-04-01 15:39:49 +00:00
|
|
|
<% @ad_banners.each do |ab| %>
|
2012-05-16 08:42:43 +00:00
|
|
|
<%= content_tag :li,link_to(ab.title,"##{ab.title.dehumanize}",:data=>{:toggle=>"tab"}),:class => (ab == @active ? 'active' : nil ), :contenteditable=>"true" ,"data-edit-url"=>(admin_rename_ad_banner_path ab)%>
|
2012-04-01 15:39:49 +00:00
|
|
|
<% end -%>
|
2012-05-16 08:42:43 +00:00
|
|
|
<%= content_tag :li,link_to(t("admin.ad.new_banner"),"#new-a-banner",:data=>{:toggle=>"modal"}),:id=>'new_ad_banner_tab_but',:class => (@active.nil? ? 'active' : nil ) %>
|
2012-04-01 15:39:49 +00:00
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
2012-05-16 08:42:43 +00:00
|
|
|
<div class="tab-content" id="ad_banner-tab-content">
|
2012-04-29 16:17:18 +00:00
|
|
|
<%= render :partial => 'ad_banner_tab',:collection => @ad_banners %>
|
2012-04-01 15:39:49 +00:00
|
|
|
</div>
|
2012-05-16 08:42:43 +00:00
|
|
|
<%= render :partial => "modal_ad_banner_form"%>
|
2012-04-01 15:39:49 +00:00
|
|
|
|
|
|
|
</div>
|