Sha256: 5c10f307c44c54a06b73d086a0d45bf745b795541009803edb6d67290ed7b283

Contents?: true

Size: 679 Bytes

Versions: 8

Compression:

Stored size: 679 Bytes

Contents

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

  <%= render PandaCms::Admin::TableComponent.new(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

8 entries across 8 versions & 1 rubygems

Version Path
panda_cms-0.5.7 app/views/panda_cms/admin/forms/index.html.erb
panda_cms-0.5.6 app/views/panda_cms/admin/forms/index.html.erb
panda_cms-0.5.5 app/views/panda_cms/admin/forms/index.html.erb
panda_cms-0.5.4 app/views/panda_cms/admin/forms/index.html.erb
panda_cms-0.5.3 app/views/panda_cms/admin/forms/index.html.erb
panda_cms-0.5.2 app/views/panda_cms/admin/forms/index.html.erb
panda_cms-0.5.1 app/views/panda_cms/admin/forms/index.html.erb
panda_cms-0.5.0 app/views/panda_cms/admin/forms/index.html.erb