Sha256: 5d8aba45311bd193b935fee7f359a5fb43671ef2d55fc25adcce2f30ccd4b582
Contents?: true
Size: 1.3 KB
Versions: 11
Compression:
Stored size: 1.3 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"> <%= render PandaCms::Admin::TagComponent.new(status: "active", text: 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
11 entries across 11 versions & 1 rubygems