Sha256: 7c1af577346d9b07199c02b24c653b37c43323e1ca05385c0b43b57b2b3e09b6

Contents?: true

Size: 566 Bytes

Versions: 3

Compression:

Stored size: 566 Bytes

Contents

<%= render PandaCms::Admin::ContainerComponent.new do |component| %>
  <% component.with_heading(text: "Menus", level: 1) do |heading| %>
    <% heading.with_button(action: :add, text: "Add Menu", link: new_admin_menu_path) %>
  <% end %>

  <%= render PandaCms::Admin::TableComponent.new(term: "menu", rows: menus) do |table| %>
    <% table.column("Name") { |menu| link_to menu.name, edit_admin_menu_path(menu) } %>
    <% table.column("Kind") { |menu| render PandaCms::Admin::TagComponent.new(status: :active, text: menu.kind.titleize) } %>
  <% end %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
panda_cms-0.5.10 app/views/panda_cms/admin/menus/index.html.erb
panda_cms-0.5.9 app/views/panda_cms/admin/menus/index.html.erb
panda_cms-0.5.8 app/views/panda_cms/admin/menus/index.html.erb