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

25 lines
901 B
Plaintext
Raw Normal View History

<% content_for :page_specific_css do -%>
<%#= stylesheet_link_tag "admin/ad_banner_preview" %>
<% end -%>
<% content_for :page_specific_css do -%>
<%= javascript_include_tag "/static/jquery.cycle.all.latest.js" %>
<%= javascript_include_tag "inc/modal-preview" %>
<% 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-04-25 09:17:42 +00:00
<%= content_tag :li,link_to(ab.title,"##{ab.title.dehumanize}",:data=>{:toggle=>"tab"}),:class => (ab == @active ? 'active' : nil ) %>
2012-04-01 15:39:49 +00:00
<% end -%>
2012-04-29 16:17:18 +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>
<div class="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-04-29 16:17:18 +00:00
<%= render :partial => "modal_ad_banner_form"%>
2012-04-01 15:39:49 +00:00
</div>