Files
docuseal/app/views/submissions_archived/index.html.erb
T

36 lines
1.6 KiB
Plaintext
Raw Normal View History

2024-11-23 01:45:10 +02:00
<% filter_params = params.permit(Submissions::Filter::ALLOWED_PARAMS).compact_blank %>
2024-04-03 00:59:25 +03:00
<div>
2026-07-22 20:32:50 +03:00
<%= link_to root_path, class: 'flex items-center mb-1 md:mb-0' do %>
2025-07-20 08:28:19 +03:00
<%= svg_icon('chevron_left', class: 'w-5 h-5') %>
<span style="margin-left: 3px"><%= t('back_to_active') %></span>
2024-04-03 00:59:25 +03:00
<% end %>
</div>
2024-11-23 01:45:10 +02:00
<div class="flex flex-col md:flex-row md:items-center mb-4 gap-3">
2025-07-20 08:28:19 +03:00
<div class="flex w-full justify-between items-center">
2024-11-23 01:45:10 +02:00
<div>
2025-07-20 08:28:19 +03:00
<h1 class="text-2xl md:text-3xl font-bold md:block <%= 'hidden' if params[:q].present? %>"><%= t('submissions') %> <span class="badge badge-outline badge-lg align-middle"><%= t('archived') %></span></h1>
2024-11-23 01:45:10 +02:00
</div>
2026-07-22 20:32:50 +03:00
<div class="max-md:focus-within:grow <%= 'max-md:grow' if params[:q].present? %>">
2024-11-23 01:45:10 +02:00
<% if params[:q].present? || @pagy.pages > 1 || filter_params.present? %>
<%= render 'shared/search_input', placeholder: "#{t('search')}..." %>
<% end %>
</div>
</div>
<div class="flex flex-col items-end md:flex-row gap-2">
<%= render 'submissions_filters/applied_filters', filter_params: %>
<%= render 'submissions_filters/filter_button', filter_params: %>
2024-08-14 16:34:30 +03:00
</div>
2024-04-03 00:59:25 +03:00
</div>
2025-05-28 22:48:15 +03:00
<% if @pagy.count.nil? || @pagy.count > 0 %>
2024-04-03 00:59:25 +03:00
<div class="space-y-4">
2024-07-20 22:21:36 +03:00
<%= render partial: 'templates/submission', collection: @submissions, locals: { with_template: true, archived: true } %>
2024-04-03 00:59:25 +03:00
</div>
2024-11-23 01:45:10 +02:00
<% elsif params[:q].present? || filter_params.present? %>
2024-04-03 00:59:25 +03:00
<div class="text-center">
<div class="mt-16 text-3xl font-semibold">
2024-09-18 19:47:47 +03:00
<%= t('submissions_not_found') %>
2024-04-03 00:59:25 +03:00
</div>
</div>
<% end %>
<%= render 'shared/pagination', pagy: @pagy, items_name: 'submissions' %>