Sha256: bf120c4b85adc111990681b9c6f32fa37070d3c8eaeae73798051febe387c086

Contents?: true

Size: 693 Bytes

Versions: 7

Compression:

Stored size: 693 Bytes

Contents

<%= render PandaCms::Admin::ContainerComponent.new do |component| %>
  <% component.with_heading(text: "Forms", level: 1) do |heading| %>
  <% end %>

  <%= render PandaCms::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 PandaCms::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

7 entries across 7 versions & 1 rubygems

Version Path
panda_cms-0.6.3 app/views/panda_cms/admin/forms/index.html.erb
panda_cms-0.6.2 app/views/panda_cms/admin/forms/index.html.erb
panda_cms-0.6.1 app/views/panda_cms/admin/forms/index.html.erb
panda_cms-0.6.0 app/views/panda_cms/admin/forms/index.html.erb
panda_cms-0.5.10 app/views/panda_cms/admin/forms/index.html.erb
panda_cms-0.5.9 app/views/panda_cms/admin/forms/index.html.erb
panda_cms-0.5.8 app/views/panda_cms/admin/forms/index.html.erb