diff --git a/.idea/lost-and-found.iml b/.idea/lost-and-found.iml index 918ebd0..67d9c14 100644 --- a/.idea/lost-and-found.iml +++ b/.idea/lost-and-found.iml @@ -162,6 +162,7 @@ + @@ -186,76 +187,136 @@ diff --git a/app/views/forms/search_form.html.erb b/app/views/forms/search_form.html.erb index b756866..8c6fc74 100644 --- a/app/views/forms/search_form.html.erb +++ b/app/views/forms/search_form.html.erb @@ -21,21 +21,18 @@ <%= form.select(:location, location_options, include_blank: true) %> -
-

Search by date range:

+
+ Search by date range: + <%= form.label(:date_found, 'Start date:') %> + <%= form.date_field(:date_found) %> -
- <%= form.label(:date_found, 'Start date:') %> - <%= form.date_field(:date_found) %> - - <%= form.label(:date_found_end, 'End date:') %> - <%= form.date_field(:date_found_end, max: Date.current) %> -
-
+ <%= form.label(:date_found_end, 'End date:') %> + <%= form.date_field(:date_found_end, max: Date.current) %> +
-
+
<% end %>