mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
32 lines
1.5 KiB
Text
32 lines
1.5 KiB
Text
<div class="w-full">
|
|
<div class='m-5'>
|
|
<h1 class='text-3xl font-bold'>Export Data</h1>
|
|
|
|
<div role="alert" class="alert alert-info my-5">
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="stroke-current shrink-0 w-6 h-6"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>
|
|
<span>Default selected timeframes are based on first and last geopoint timestamps</span>
|
|
</div>
|
|
|
|
<%= form_with url: export_download_path, method: :get, data: { turbo: false } do |f| %>
|
|
<div class="flex flex-col md:flex-row md:space-x-4 md:items-end">
|
|
<div class="w-full md:w-1/3">
|
|
<div class="flex flex-col space-y-2">
|
|
<%= f.label :start_at, class: "text-sm font-semibold" %>
|
|
<%= f.datetime_local_field :start_at, class: "rounded-md w-full", value: @start_at %>
|
|
</div>
|
|
</div>
|
|
<div class="w-full md:w-1/3">
|
|
<div class="flex flex-col space-y-2">
|
|
<%= f.label :end_at, class: "text-sm font-semibold" %>
|
|
<%= f.datetime_local_field :end_at, class: "rounded-md w-full", value: @end_at %>
|
|
</div>
|
|
</div>
|
|
<div class="w-full md:w-1/3">
|
|
<div class="flex flex-col space-y-2">
|
|
<%= f.submit "Download JSON", class: "px-4 py-2 bg-blue-500 text-white rounded-md" %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
</div>
|