mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
28 lines
1.1 KiB
Text
28 lines
1.1 KiB
Text
|
|
<div class="flex flex-col space-y-4 mb-4 w-full">
|
|
<%= form_with url: points_path, method: :get 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: params[: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: params[:end_at] %>
|
|
</div>
|
|
</div>
|
|
<div class="w-full md:w-1/3">
|
|
<div class="flex flex-col space-y-2">
|
|
<%= f.submit "Search", class: "px-4 py-2 bg-blue-500 text-white rounded-md" %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
|
|
<div class="w-full" data-controller="maps" data-coordinates="<%= @coordinates %>">
|
|
<div data-maps-target="container" class="h-[25rem] w-auto h-screen"></div>
|
|
</div>
|
|
</div>
|