Sha256: e74923413ab177de3d2027272a3ec919026e3d0c34bcc08f17145a788ffedf94

Contents?: true

Size: 1018 Bytes

Versions: 1

Compression:

Stored size: 1018 Bytes

Contents

<%= render 'admin/headers/index', records: @menus, model_name: 'Menu' %>

<div class="table-responsive">
  <table class="forest-table table table-striped">
    <thead>
      <tr>
        <th>Title</th>
        <th>Slug</th>
        <th>Structure</th>
        <th colspan="3"></th>
      </tr>
    </thead>

    <tbody>
      <% @menus.each do |menu| %>
        <tr>
          <td><%= menu.title %></td>
          <td><%= menu.slug %></td>
          <td><%= Menu.for(menu.slug).render %></td>
          <td width="1"><%= link_to 'Edit', edit_admin_menu_path(menu), class: 'btn btn-xs btn-primary', role: 'button' %></td>
          <td width="1"><%= link_to 'Show', [:admin, menu], class: 'btn btn-xs btn-info', role: 'button', data: { turbolinks: false } %></td>
          <td width="1"><%= link_to 'Destroy', [:admin, menu], method: :delete, class: 'btn btn-xs btn-danger', role: 'button', data: { confirm: 'Are you sure?' } %></td>
        </tr>
      <% end %>
    </tbody>
  </table>
</div>

<%= paginate @menus %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
forest_cms-0.98.1 app/views/admin/menus/index.html.erb