hidding new ad_banner
This commit is contained in:
parent
f9f7ddc8ee
commit
47bca643af
|
@ -12,13 +12,13 @@
|
||||||
<% @ad_banners.each do |ab| %>
|
<% @ad_banners.each do |ab| %>
|
||||||
<%= content_tag :li,link_to(ab.title,"##{ab.title.dehumanize}",:data=>{:toggle=>"tab"}),:class => (ab == @active ? 'active' : nil ) %>
|
<%= content_tag :li,link_to(ab.title,"##{ab.title.dehumanize}",:data=>{:toggle=>"tab"}),:class => (ab == @active ? 'active' : nil ) %>
|
||||||
<% end -%>
|
<% 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 ) %>
|
<%#= 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 ) %>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<%= render :partial => 'ad_banner_tab',:collection => @ad_banners %>
|
<%= render :partial => 'ad_banner_tab',:collection => @ad_banners %>
|
||||||
</div>
|
</div>
|
||||||
<%= render :partial => "modal_ad_banner_form"%>
|
<%#= render :partial => "modal_ad_banner_form"%>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Reference in New Issue