Sha256: fe53eece748a3fb6f98d7ae07f562015486a3c88bbcfd68cd1c19ab47afff8c8
Contents?: true
Size: 1.33 KB
Versions: 17
Compression:
Stored size: 1.33 KB
Contents
<%= provide(:page_title, "Secciones") %> <div class="row-fluid"> <div class="widget widget-padding span12" id="wizard"> <div class="widget-header"> <ul class="nav nav-tabs"> <% current_page = "no-page" %> <% @sections.each_with_index do |section, index| %> <% if current_page != section.page %> <% if index == 0 %> <li class = "active"> <% else %> <li> <% end %> <%= link_to (section.page.capitalize), "#tab#{index}", "data-toggle" => "tab" %></li> <% current_page = section.page %> <% end %> <% end %> </ul> </div> <div class="widget-body"> <div class="tab-content"> <% current_page = "no-page" %> <% @sections.each_with_index do |section, index| %> <% if current_page != section.page %> <% if index == 0 %> <div class="tab-pane active" id="tab<%= index %>"> <% else %> <div class="tab-pane" id="tab<%= index %>"> <% end %> <% section_pages = Adminpanel::Section.of_page section.page %> <%= render "sections_table", :sections => section_pages %> </div> <% current_page = section.page %> <% end %> <% end %> </div> </div> </div> </div>
Version data entries
17 entries across 17 versions & 1 rubygems