File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
< aside class ="py-6 px-2 sm:px-6 lg:py-0 lg:px-0 lg:col-span-3 ">
2
- < nav class ="space-y-1 ">
2
+ < div x-data ="{ selectedOption: '' } " class ="lg:hidden ">
3
+ < select x-model ="selectedOption " @change ="window.location.href = selectedOption " class ="block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-brown-500 focus:border-brown-500 sm:text-sm rounded-md ">
4
+ < option value ="" disabled selected > Select an option</ option >
5
+ < option value ="<%= coffee_shops_path %> "> Coffee Shops</ option >
6
+ < option value ="<%= edit_coffee_shop_path ( id : coffee_shop . slug ) %> "> Information</ option >
7
+ < option value ="<%= coffee_shop_feedbacks_path ( coffee_shop . slug ) %> "> Feedbacks</ option >
8
+ < option value ="<%= edit_coffee_shop_location_path ( coffee_shop_id : coffee_shop . slug ) %> "> Location</ option >
9
+ < option value ="<%= edit_coffee_shop_opening_hours_path ( coffee_shop_id : coffee_shop . slug ) %> "> Opening Hours</ option >
10
+ < option value ="<%= coffee_shop_analytics_path ( coffee_shop_id : coffee_shop . slug ) %> "> Analytics</ option >
11
+ </ select >
12
+ </ div >
13
+
14
+ < nav class ="hidden lg:block space-y-1 ">
3
15
<%= link_to coffee_shops_path , class : "text-brown-700 hover:text-brown-700 hover:bg-white group rounded-md px-3 py-2 flex items-center text-sm font-medium" do %>
4
16
<%= render partial : "components/icons/list" , locals : { css_styles : "text-brown-500 group-hover:text-brown-500 flex-shrink-0 -ml-1 mr-3 h-6 w-6" } %>
5
17
< span class ="truncate "> Coffee Shops</ span >
You can’t perform that action at this time.
0 commit comments