Sha256: 34e93e9d6a82ef7f0abd2e95987d8f010697568b92af5317d649aae9f6ea2a00
Contents?: true
Size: 1.24 KB
Versions: 13
Compression:
Stored size: 1.24 KB
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 %> <table class="-mx-3 min-w-full divide-y divide-gray-300"> <thead> <tr> <th scope="col" class="py-3.5 px-3 text-sm font-semibold text-left text-gray-900">Name</th> <th scope="col" class="py-3.5 px-3 text-sm font-semibold text-left text-gray-900">Kind</th> <th scope="col" class="relative py-3.5 pr-4 pl-3 sm:pr-0"> <span class="sr-only">Edit</span> </th> </tr> </thead> <tbody class="bg-white divide-y divide-gray-200"> <% @menus.each do |menu| %> <tr> <td class="py-5 px-3 whitespace-nowrap font-medium text-gray-900"> <%= menu.name %> </td> <td class="py-5 px-3 whitespace-nowrap text-gray-900"> <%= menu.kind.titleize %> </td> <td class="py-5 pr-4 pl-3 text-sm font-medium text-right whitespace-nowrap"> <%= link_to "Edit", edit_admin_menu_path(menu), class: "text-panda-dark hover:text-indigo-900" %> </td> </tr> <% end %> </tbody> </table> <% end %>
Version data entries
13 entries across 13 versions & 1 rubygems