add archived template and submission pages

This commit is contained in:
Alex Turchyn
2023-09-15 00:42:51 +03:00
parent 3faec9d174
commit 7f6c0af0e8
15 changed files with 190 additions and 66 deletions
@@ -0,0 +1,13 @@
<div>
<%= link_to root_path(@template) do %>
&larr;
<span>Back to Active</span>
<% end %>
</div>
<div class="flex justify-between mb-4 items-center">
<h1 class="text-4xl font-bold"><span class="hidden md:inline">Document</span> Templates <span class="badge badge-outline badge-lg align-middle">Archived</span></h1>
</div>
<div class="grid gap-4 md:grid-cols-3">
<%= render partial: 'templates/template', collection: @templates %>
</div>
<%= render 'shared/pagination', pagy: @pagy, items_name: 'templates' %>