mirror of
https://github.com/docusealco/docuseal
synced 2026-11-16 16:12:32 -05:00
archived nav
This commit is contained in:
1 parent
a4ca0abba1
commit
8259ebdb6c
9 files changed
+42
-20
No files matched your search
@@ -1,8 +1,8 @@
|
||||
<% content_for(:native_title, @template.name) if turbo_native_app? %>
|
||||
<% content_for(:native_title, t('archived')) if turbo_native_app? %>
|
||||
<% filter_params = params.permit(Submissions::Filter::ALLOWED_PARAMS).compact_blank %>
|
||||
<% with_filters = @pagy.pages > 1 || params[:q].present? || filter_params.present? %>
|
||||
<%= render 'templates/title', template: @template %>
|
||||
<% unless turbo_native_app? %>
|
||||
<%= render 'templates/title', template: @template %>
|
||||
<div>
|
||||
<%= link_to template_path(@template), class: 'flex items-center mb-1 md:mb-0' do %>
|
||||
<%= svg_icon('chevron_left', class: 'w-5 h-5') %>
|
||||
@@ -10,11 +10,13 @@
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<div class="flex flex-col md:flex-row md:items-center mb-4 gap-3">
|
||||
<div class="flex flex-col md:flex-row md:items-center mb-4 <%= 'gap-3' unless turbo_native_app? %>">
|
||||
<div class="group/header flex w-full md:flex-1 min-w-0 justify-between items-center">
|
||||
<div class="max-md:group-has-[search-input:focus-within]/header:hidden">
|
||||
<h2 class="text-2xl md:text-3xl font-bold md:block"><%= t('submissions') %> <span class="badge badge-outline badge-lg align-middle"><%= t('archived') %></span></h2>
|
||||
</div>
|
||||
<% unless turbo_native_app? %>
|
||||
<div class="max-md:group-has-[search-input:focus-within]/header:hidden">
|
||||
<h2 class="text-2xl md:text-3xl font-bold md:block"><%= t('submissions') %> <span class="badge badge-outline badge-lg align-middle"><%= t('archived') %></span></h2>
|
||||
</div>
|
||||
<% end %>
|
||||
<div class="max-md:has-[search-input:focus-within]:grow <%= 'max-md:grow' if params[:q].present? %>">
|
||||
<% if with_filters %>
|
||||
<%= render 'shared/search_input' %>
|
||||
@@ -23,12 +25,14 @@
|
||||
</div>
|
||||
<div class="flex flex-nowrap md:flex-wrap md:justify-end items-center gap-2">
|
||||
<%= render 'submissions_filters/applied_filters', filter_params:, with_status: true, with_default_status: true %>
|
||||
<div class="hidden md:block shrink-0 md:order-first">
|
||||
<%= link_to new_template_submissions_export_path(@template, archived: true), class: 'btn btn-ghost text-base h-10 min-h-10', data: { turbo_frame: 'modal' } do %>
|
||||
<%= svg_icon('download', class: 'w-6 h-6 stroke-2') %>
|
||||
<span class="hidden md:inline"><%= t('export') %></span>
|
||||
<% end %>
|
||||
</div>
|
||||
<% unless turbo_native_app? %>
|
||||
<div class="hidden md:block shrink-0 md:order-first">
|
||||
<%= link_to new_template_submissions_export_path(@template, archived: true), class: 'btn btn-ghost text-base h-10 min-h-10', data: { turbo_frame: 'modal' } do %>
|
||||
<%= svg_icon('download', class: 'w-6 h-6 stroke-2') %>
|
||||
<span class="hidden md:inline"><%= t('export') %></span>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<%= render 'submissions_filters/filter_button', filter_params: %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user