mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-10 23:07:47 +00:00
16 lines
838 B
Plaintext
16 lines
838 B
Plaintext
= render ModalComponent.new(id: dom_id(@order, :ship), modal_class: 'tiny', close_button: false) do
|
|
= form_with(url: helpers.ship_admin_order_url(@order), method: :post, data: { turbo: true }) do
|
|
%div{class: "margin-bottom-30"}
|
|
%p= t('spree.admin.orders.shipment.mark_as_shipped_message_html')
|
|
%div{class: "margin-bottom-30"}
|
|
= hidden_field_tag :id, @order.id
|
|
= hidden_field_tag :current_page, @current_page
|
|
= label_tag do
|
|
= check_box_tag :send_shipment_email, "1", true
|
|
= t('spree.admin.orders.shipment.mark_as_shipped_label_message')
|
|
%p.modal-actions.justify-space-around
|
|
%button.button.secondary{ type: "button", 'data-action': 'click->modal#close' }
|
|
= t('js.admin.modals.cancel')
|
|
%button.button.primary{ type: 'submit' }
|
|
= t('js.admin.modals.confirm')
|