diff --git a/admin/app/assets/stylesheets/solidus_admin/application.tailwind.css.erb b/admin/app/assets/stylesheets/solidus_admin/application.tailwind.css.erb index b65e30dfae9..f876640838e 100644 --- a/admin/app/assets/stylesheets/solidus_admin/application.tailwind.css.erb +++ b/admin/app/assets/stylesheets/solidus_admin/application.tailwind.css.erb @@ -3,6 +3,17 @@ @tailwind utilities; @layer base { + summary { + &::marker, + &::-webkit-details-marker { + @apply hidden; + } + + list-style: none; + } +} + +@layer components { .body-tiny { @apply font-sans font-normal text-xs; } diff --git a/admin/app/components/solidus_admin/layout/page_helpers.rb b/admin/app/components/solidus_admin/layout/page_helpers.rb index 5226902d967..7bf7bfb409f 100644 --- a/admin/app/components/solidus_admin/layout/page_helpers.rb +++ b/admin/app/components/solidus_admin/layout/page_helpers.rb @@ -1,8 +1,8 @@ # frozen_string_literal: true module SolidusAdmin::Layout::PageHelpers - def page(&block) - tag.div(capture(&block), class: "px-4 relative", "data-controller": stimulus_id) + def page(**attrs, &block) + tag.div(capture(&block), class: "px-4 relative", "data-controller": stimulus_id, **attrs) end def page_header_actions(&block) diff --git a/admin/app/components/solidus_admin/orders/show/component.html.erb b/admin/app/components/solidus_admin/orders/show/component.html.erb index fc5ecff6a5e..83578b71a2f 100644 --- a/admin/app/components/solidus_admin/orders/show/component.html.erb +++ b/admin/app/components/solidus_admin/orders/show/component.html.erb @@ -1,4 +1,4 @@ -<%= page do %> +<%= page("data-action": "turbo:before-cache@window->#{stimulus_id}#closeMenus") do %> <%= page_header do %> <%= page_header_back(solidus_admin.orders_path) %> <%= page_header_title(t('.title', number: @order.number)) %> @@ -8,5 +8,68 @@ <% end %> <% end %> - <%= render component('orders/cart').new(order: @order) %> + <%= page_with_sidebar do %> + <%= page_with_sidebar_main do %> + <%= render component("orders/cart").new(order: @order) %> + <% end %> + + <%= page_with_sidebar_aside do %> + <%= render component('ui/panel').new(title: panel_title_with_more_links(t(".customer"), [ + link_to(t(".edit_email"), "#", class: "p-2 hover:bg-gray-25 rounded-sm text-black"), + link_to(t(".edit_shipping"), "#", class: "p-2 hover:bg-gray-25 rounded-sm text-black"), + link_to(t(".edit_billing"), "#", class: "p-2 hover:bg-gray-25 rounded-sm text-black"), + link_to(t(".remove_customer"), "#", 'data-turbo-method': :delete, class: "p-2 hover:bg-gray-25 rounded-sm text-red-500"), + ])) do %> +