diff --git a/app/views/layouts/map.html.erb b/app/views/layouts/map.html.erb index 29918ff7..c8fd7714 100644 --- a/app/views/layouts/map.html.erb +++ b/app/views/layouts/map.html.erb @@ -38,69 +38,9 @@ -
-
- <%= form_with url: map_path(import_id: params[:import_id]), method: :get, class: "w-full" do |f| %> -
-
-
- - <%= link_to map_path(start_at: @start_at - 1.day, end_at: @end_at - 1.day, import_id: params[:import_id]), class: "btn btn-sm border border-base-300 hover:btn-ghost w-full" do %> - ◀️ - <% end %> - -
-
-
-
- <%= f.label :start_at, class: "text-xs font-semibold" %> - <%= f.datetime_local_field :start_at, include_seconds: false, class: "input input-sm input-bordered hover:cursor-pointer hover:input-primary", value: @start_at %> -
-
-
-
- <%= f.label :end_at, class: "text-xs font-semibold" %> - <%= f.datetime_local_field :end_at, include_seconds: false, class: "input input-sm input-bordered hover:cursor-pointer hover:input-primary", value: @end_at %> -
-
-
-
- - <%= link_to map_path(start_at: @start_at + 1.day, end_at: @end_at + 1.day, import_id: params[:import_id]), class: "btn btn-sm border border-base-300 hover:btn-ghost w-full" do %> - ▶️ - <% end %> - -
-
-
-
- <%= f.submit "Search", class: "btn btn-sm btn-primary hover:btn-info" %> -
-
-
-
- <%= link_to "Today", - map_path(start_at: Time.current.beginning_of_day, end_at: Time.current.end_of_day, import_id: params[:import_id]), - class: "btn btn-sm border border-base-300 hover:btn-ghost" %> -
-
-
-
- <%= link_to "Last 7 days", map_path(start_at: 1.week.ago.beginning_of_day, end_at: Time.current.end_of_day, import_id: params[:import_id]), class: "btn btn-sm border border-base-300 hover:btn-ghost" %> -
-
-
-
- <%= link_to "Last month", map_path(start_at: 1.month.ago.beginning_of_day, end_at: Time.current.end_of_day, import_id: params[:import_id]), class: "btn btn-sm border border-base-300 hover:btn-ghost" %> -
-
-
- <% end %> -
-
-
+
<%= yield %>
diff --git a/app/views/map/index.html.erb b/app/views/map/index.html.erb index 42852ee0..9af06639 100644 --- a/app/views/map/index.html.erb +++ b/app/views/map/index.html.erb @@ -2,7 +2,7 @@
-
+
<%= form_with url: map_path(import_id: params[:import_id]), method: :get do |f| %>