<%= render Panda::CMS::Admin::ContainerComponent.new do |component| %> <% component.with_heading(text: "Forms", level: 1) do |heading| %> <% end %> <%= render Panda::CMS::Admin::TableComponent.new(term: "form", rows: forms) do |table| %> <% table.column("Name") { |form| block_link_to form.name, admin_form_path(form) } %> <% table.column("Status") { |form| render Panda::CMS::Admin::TagComponent.new(status: :active) } %> <% table.column("Last Submission") do |form| %> <%= "#{time_ago_in_words(form.form_submissions&.last&.created_at)} ago" if form.form_submissions&.last %> <% end %> <% table.column("Completion Path", &:completion_path) %> <% end %> <% end %>