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

27 lines
924 B
Plaintext
Raw Normal View History

2023-09-15 00:42:51 +03:00
<div>
2023-09-22 02:20:38 +03:00
<%= link_to root_path do %>
2023-09-15 00:42:51 +03:00
&larr;
2024-09-18 19:47:47 +03:00
<span><%= t('back_to_active') %></span>
2023-09-15 00:42:51 +03:00
<% end %>
</div>
<div class="flex justify-between mb-4 items-center">
2024-08-14 16:34:30 +03:00
<div>
2024-09-18 19:47:47 +03:00
<h1 class="text-4xl font-bold md:block <%= 'hidden' if params[:q].present? %>"><%= t('document_templates_html') %> <span class="badge badge-outline badge-lg align-middle"><%= t('archived') %></span></h1>
2024-08-14 16:34:30 +03:00
</div>
2023-09-15 02:11:48 +03:00
<% if params[:q].present? || @pagy.pages > 1 %>
2024-09-18 19:47:47 +03:00
<%= render 'shared/search_input', placeholder: "#{t('search')}..." %>
2023-09-15 02:11:48 +03:00
<% end %>
2023-09-15 00:42:51 +03:00
</div>
2023-09-15 02:11:48 +03:00
<% if @pagy.count > 0 %>
<div class="grid gap-4 md:grid-cols-3">
<%= render partial: 'templates/template', collection: @templates %>
</div>
<% elsif params[:q].present? %>
<div class="text-center">
<div class="mt-16 text-3xl font-semibold">
2024-09-18 19:47:47 +03:00
<%= t('templates_not_found') %>
2023-09-15 02:11:48 +03:00
</div>
</div>
<% end %>
2023-09-15 00:42:51 +03:00
<%= render 'shared/pagination', pagy: @pagy, items_name: 'templates' %>