Make the width of "Back to Store" and "Back to Website" buttons consistent with other buttons in order confirmation page

This commit is contained in:
Navaneeth
2025-10-25 22:11:02 +05:30
parent cc35d118eb
commit f1ffadd39c

View File

@@ -1,21 +1,19 @@
.row
.columns.small-12.medium-5
- if current_order.nil? || current_order.distributor.nil? || current_order.distributor == @order.distributor
- if current_order&.line_items.present?
= link_to main_app.cart_path, :class => "button expand" do
= t(:order_back_to_cart)
- else
.columns.small-12.medium-6
= link_to "#{main_app.enterprise_shop_path(@order.distributor)}#/shop_panel", class: "button expand" do
= t(:order_back_to_store)
.columns.small-12.medium-6
- if @order.distributor.website.present?
= link_to_service "https://", @order.distributor.website, class: "button expand" do
= t(:order_back_to_website)
- if current_order.nil? || current_order.distributor.nil? || current_order.distributor == @order.distributor
- if current_order&.line_items.present?
= link_to main_app.cart_path, :class => "button expand" do
= t(:order_back_to_cart)
- else
 
.columns.small-12.medium-3
= link_to "#{main_app.enterprise_shop_path(@order.distributor)}#/shop_panel", class: "button expand" do
= t(:order_back_to_store)
.columns.small-12.medium-3
- if @order.distributor.website.present?
= link_to_service "https://", @order.distributor.website, class: "button expand" do
= t(:order_back_to_website)
- else
 
- if order.changes_allowed?
.columns.show-for-medium-up.medium-1  
.columns.small-12.medium-3
= link_to main_app.cancel_order_path(@order), method: :put, class: "button secondary expand", "data-confirm": t('orders_confirm_cancel') do
%i.ofn-i_009-close