Sha256: 0e397fb0c05026aecf8306e22f388ea7a6deb8c24006acbf9ee70af75398e9c9

Contents?: true

Size: 1.17 KB

Versions: 30

Compression:

Stored size: 1.17 KB

Contents

<%= provide(:page_title, I18n.t('model.Section')) %>

<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 %>
            <li class="<%= active_tab(index) %>">
              <%= 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 %>
            <div class="tab-pane <%= active_tab(index) %>" id="tab<%= index %>">
              <% 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

30 entries across 30 versions & 1 rubygems

Version Path
adminpanel-3.6.1 app/views/adminpanel/sections/index.html.erb
adminpanel-3.6.0 app/views/adminpanel/sections/index.html.erb
adminpanel-3.5.1 app/views/adminpanel/sections/index.html.erb
adminpanel-3.5.0 app/views/adminpanel/sections/index.html.erb
adminpanel-3.4.7 app/views/adminpanel/sections/index.html.erb
adminpanel-3.4.6 app/views/adminpanel/sections/index.html.erb
adminpanel-3.4.5 app/views/adminpanel/sections/index.html.erb
adminpanel-3.4.4 app/views/adminpanel/sections/index.html.erb
adminpanel-3.4.3 app/views/adminpanel/sections/index.html.erb
adminpanel-3.4.2 app/views/adminpanel/sections/index.html.erb
adminpanel-3.4.1 app/views/adminpanel/sections/index.html.erb
adminpanel-3.4.0 app/views/adminpanel/sections/index.html.erb
adminpanel-3.3.4 app/views/adminpanel/sections/index.html.erb
adminpanel-3.3.3 app/views/adminpanel/sections/index.html.erb
adminpanel-3.3.0 app/views/adminpanel/sections/index.html.erb
adminpanel-3.2.1 app/views/adminpanel/sections/index.html.erb
adminpanel-3.2.0 app/views/adminpanel/sections/index.html.erb
adminpanel-3.1.0 app/views/adminpanel/sections/index.html.erb
adminpanel-3.0.0 app/views/adminpanel/sections/index.html.erb
adminpanel-2.6.1 app/views/adminpanel/sections/index.html.erb