From fe496a64dcc9e9ccfd78c621f2220f4c7ffdba17 Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Sat, 23 Mar 2024 21:17:23 +0100 Subject: [PATCH] Move sidebar to points index page --- app/views/layouts/application.html.erb | 9 +--- app/views/points/index.html.erb | 63 ++++++++++++++------------ 2 files changed, 37 insertions(+), 35 deletions(-) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 51bb9310..0c9fe90f 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -18,13 +18,8 @@
<%= render 'shared/navbar' %> <%= render 'shared/flash' %> -
-
- <%= yield %> -
-
- <%= render 'shared/right_sidebar' %> -
+
+ <%= yield %>
diff --git a/app/views/points/index.html.erb b/app/views/points/index.html.erb index ba64ea6a..544c5f0a 100644 --- a/app/views/points/index.html.erb +++ b/app/views/points/index.html.erb @@ -1,32 +1,39 @@ +
+
+ <%= form_with url: points_path, method: :get do |f| %> +
+
+
+ <%= f.label :start_at, class: "text-sm font-semibold" %> + <%= f.datetime_local_field :start_at, class: "rounded-md w-full", value: @start_at %> +
+
+
+
+ <%= f.label :end_at, class: "text-sm font-semibold" %> + <%= f.datetime_local_field :end_at, class: "rounded-md w-full", value: @end_at %> +
+
+
+
+ <%= f.submit "Search", class: "px-4 py-2 bg-blue-500 text-white rounded-md" %> +
+
+
+ <% end %> -
- <%= form_with url: points_path, method: :get do |f| %> -
-
-
- <%= f.label :start_at, class: "text-sm font-semibold" %> - <%= f.datetime_local_field :start_at, class: "rounded-md w-full", value: @start_at %> -
-
-
-
- <%= f.label :end_at, class: "text-sm font-semibold" %> - <%= f.datetime_local_field :end_at, class: "rounded-md w-full", value: @end_at %> -
-
-
-
- <%= f.submit "Search", class: "px-4 py-2 bg-blue-500 text-white rounded-md" %> -
-
+
+
- <% end %> - -
-
+
+
+ <%= render 'shared/right_sidebar' %> +
+ +