Sha256: 41958549a3e8449894d8aca5157323ce96ef8cfc7fe62a43b72e4ff92cb3d6ec
Contents?: true
Size: 699 Bytes
Versions: 3
Compression:
Stored size: 699 Bytes
Contents
<%= 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 %>
Version data entries
3 entries across 3 versions & 1 rubygems