|
|
|
@ -3,6 +3,9 @@
|
|
|
|
<div class="flex justify-between mb-6 md:items-end flex-col md:flex-row">
|
|
|
|
<div class="flex justify-between mb-6 md:items-end flex-col md:flex-row">
|
|
|
|
<p class="text-3xl font-bold">Submissions</p>
|
|
|
|
<p class="text-3xl font-bold">Submissions</p>
|
|
|
|
<div class="flex space-x-2 mt-3 md:mt-0">
|
|
|
|
<div class="flex space-x-2 mt-3 md:mt-0">
|
|
|
|
|
|
|
|
<% if params[:q].present? || @pagy.pages > 1 %>
|
|
|
|
|
|
|
|
<%= render 'shared/search_input' %>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
<%= link_to new_template_submissions_export_path(@template), class: 'order-3 md:order-1 btn btn-ghost text-base', data: { turbo_frame: 'modal' } do %>
|
|
|
|
<%= link_to new_template_submissions_export_path(@template), class: 'order-3 md:order-1 btn btn-ghost text-base', data: { turbo_frame: 'modal' } do %>
|
|
|
|
<%= svg_icon('download', class: 'w-6 h-6 stroke-2') %>
|
|
|
|
<%= svg_icon('download', class: 'w-6 h-6 stroke-2') %>
|
|
|
|
<span>Export</span>
|
|
|
|
<span>Export</span>
|
|
|
|
@ -12,7 +15,7 @@
|
|
|
|
<%= render 'shared/clipboard_copy', text: start_form_url(slug: @template.slug), class: 'base-button', icon_class: 'w-6 h-6 text-white', copy_title: 'Copy Share Link', copied_title: 'Copied to Clipboard', copy_title_md: 'Copy', copied_title_md: 'Copied' %>
|
|
|
|
<%= render 'shared/clipboard_copy', text: start_form_url(slug: @template.slug), class: 'base-button', icon_class: 'w-6 h-6 text-white', copy_title: 'Copy Share Link', copied_title: 'Copied to Clipboard', copy_title_md: 'Copy', copied_title_md: 'Copied' %>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% if !@pagy.count.zero? && !@template.deleted_at? %>
|
|
|
|
<% if (!@pagy.count.zero? || params[:q].present?) && !@template.deleted_at? %>
|
|
|
|
<%= link_to new_template_submission_path(@template), class: 'order-1 btn btn-primary text-base', data: { turbo_frame: 'modal' } do %>
|
|
|
|
<%= link_to new_template_submission_path(@template), class: 'order-1 btn btn-primary text-base', data: { turbo_frame: 'modal' } do %>
|
|
|
|
<%= svg_icon('plus', class: 'w-6 h-6 stroke-2') %>
|
|
|
|
<%= svg_icon('plus', class: 'w-6 h-6 stroke-2') %>
|
|
|
|
<span>Add <span class="hidden md:inline">Recipients</span></span>
|
|
|
|
<span>Add <span class="hidden md:inline">Recipients</span></span>
|
|
|
|
@ -44,7 +47,7 @@
|
|
|
|
<div class="card-body text-center py-16">
|
|
|
|
<div class="card-body text-center py-16">
|
|
|
|
<div class="max-w-lg mx-auto">
|
|
|
|
<div class="max-w-lg mx-auto">
|
|
|
|
<p class="text-3xl font-bold text-base-content mb-4">There are no Submissions</p>
|
|
|
|
<p class="text-3xl font-bold text-base-content mb-4">There are no Submissions</p>
|
|
|
|
<% if @template.deleted_at.blank? %>
|
|
|
|
<% if @template.deleted_at.blank? && params[:q].blank? %>
|
|
|
|
<p class="text-gray-600">Send an invitation to fill and complete the form</p>
|
|
|
|
<p class="text-gray-600">Send an invitation to fill and complete the form</p>
|
|
|
|
<div class="space-x-2">
|
|
|
|
<div class="space-x-2">
|
|
|
|
<%= link_to new_template_submission_path(@template), class: 'base-button mt-6', data: { turbo_frame: 'modal' } do %>
|
|
|
|
<%= link_to new_template_submission_path(@template), class: 'base-button mt-6', data: { turbo_frame: 'modal' } do %>
|
|
|
|
|