mirror of https://github.com/docusealco/docuseal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.8 KiB
34 lines
1.8 KiB
<% filter_params = params.permit(:q, *Submissions::Filter::ALLOWED_PARAMS) %>
|
|
<%= render 'shared/turbo_modal', title: t('export'), close_after_submit: false do %>
|
|
<div class="space-y-2">
|
|
<%= button_to template_submissions_export_index_path(@template), params: { format: :xlsx, **filter_params }, method: :get, data: { turbo_frame: :_top } do %>
|
|
<div class="flex items-center p-4 text-left rounded-2xl border border-neutral-300 hover:cursor-pointer hover:bg-neutral hover:text-gray-300">
|
|
<div class="enabled">
|
|
<%= svg_icon('download', class: 'w-12 h-12 stroke-2 mr-2') %>
|
|
</div>
|
|
<div class="disabled">
|
|
<%= svg_icon('loader', class: 'w-12 h-12 stroke-2 mr-2 animate-spin') %>
|
|
</div>
|
|
<div class="flex flex-col">
|
|
<span class="mb-1 text-lg font-semibold">XLSX</span>
|
|
<p class="text-sm"><%= t('primarily_opened_with_microsoft_excel_other_options_include_google_sheets_libreoffice_calc_and_openoffice_calc') %></p>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
<%= button_to template_submissions_export_index_path(@template), params: { format: :csv, **filter_params }, method: :get, data: { turbo_frame: :_top } do %>
|
|
<div class="flex items-center text-left p-4 rounded-2xl border border-neutral-300 hover:cursor-pointer hover:bg-neutral hover:text-gray-300">
|
|
<div class="enabled">
|
|
<%= svg_icon('download', class: 'w-12 h-12 stroke-2 mr-2') %>
|
|
</div>
|
|
<div class="disabled">
|
|
<%= svg_icon('loader', class: 'w-12 h-12 stroke-2 mr-2 animate-spin') %>
|
|
</div>
|
|
<div class="flex flex-col">
|
|
<span class="mb-1 text-lg font-semibold">CSV</span>
|
|
<p class="text-sm"><%= t('can_be_opened_with_microsoft_excel_google_sheets_or_any_text_editor_like_notepad') %></p>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|