orbit-basic/app/views/admin/ad_banners/index.html.erb

27 lines
1.0 KiB
Plaintext
Raw Normal View History

<% 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 -%>
<%= javascript_include_tag "/static/jquery.cycle.all.latest.js" %>
<%= javascript_include_tag "inc/modal-preview" %>
<%= javascript_include_tag "lib/contenteditable" %>
<% 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| %>
<%= 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 -%>
<%= 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>
<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>
<%= render :partial => "modal_ad_banner_form"%>
2012-04-01 15:39:49 +00:00
</div>