10 <
form id=
"edit_form" class=
"order-invoice-edit" method=
"post" action=
"<?= /* @escapeNotVerified */ $block->getSaveUrl() ?>">
11 <?=
$block->getBlockHtml(
'formkey') ?>
13 <?=
$block->getChildHtml(
'order_info') ?>
15 <section
class=
"admin__page-section">
16 <div
class=
"admin__page-section-title">
17 <span
class=
"title"><?=
__(
'Payment & Shipping Method') ?></span>
19 <div
class=
"admin__page-section-content">
20 <div
class=
"admin__page-section-item order-payment-method<?php if ($_order->getIsVirtual()): ?> order-payment-method-virtual<?php endif; ?>">
21 <div
class=
"admin__page-section-item-title">
22 <span
class=
"title"><?=
__(
'Payment Information') ?></span>
24 <div
class=
"admin__page-section-item-content">
25 <div
class=
"order-payment-method-title"><?=
$block->getChildHtml(
'order_payment') ?></div>
26 <div
class=
"order-payment-currency"><?=
__(
'The order was placed using %1.',
$_order->getOrderCurrencyCode()) ?></div>
27 <div
class=
"order-payment-additional"><?=
$block->getChildHtml(
'order_payment_additional') ?></div>
30 <?php
if (!
$_order->getIsVirtual()): ?>
31 <div
class=
"admin__page-section-item order-shipping-address">
33 <div
class=
"admin__page-section-item-title">
34 <span
class=
"title"><?=
__(
'Shipping Information') ?></span>
36 <div
class=
"admin__page-section-item-content">
37 <div
class=
"shipping-description-wrapper">
38 <div
class=
"shipping-description-title"><?=
$block->escapeHtml(
$_order->getShippingDescription()) ?></div>
39 <div
class=
"shipping-description-content">
40 <?=
__(
'Total Shipping Charges') ?>:
42 <?php
if ($this->helper(
'Magento\Tax\Helper\Data')->displayShippingPriceIncludingTax()): ?>
45 <?php
$_excl =
$block->displayPriceAttribute(
'shipping_amount',
false,
' '); ?>
50 <?php
if ($this->helper(
'Magento\Tax\Helper\Data')->displayShippingBothPrices() &&
$_incl !=
$_excl): ?>
51 (<?=
__(
'Incl. Tax') ?> <?=
$_incl ?>)
55 <?php
if (
$block->canCreateShipment() &&
$block->canShipPartiallyItem()): ?>
56 <div
class=
"admin__field admin__field-option">
57 <input type=
"checkbox" name=
"invoice[do_shipment]" id=
"invoice_do_shipment" value=
"1" 58 class=
"admin__control-checkbox" <?=
$block->hasInvoiceShipmentTypeMismatch() ?
' disabled="disabled"' :
'' ?> />
59 <label
for=
"invoice_do_shipment" 60 class=
"admin__field-label"><span><?=
__(
'Create Shipment') ?></span></label>
62 <?php
if (
$block->hasInvoiceShipmentTypeMismatch()): ?>
63 <small><?=
__(
'Invoice and shipment types do not match for some items on this order. You can create a shipment only after creating the invoice.') ?></small>
66 <div
id=
"tracking" style=
"display:none;"><?=
$block->getChildHtml(
'tracking',
false) ?></div>
73 <section
id=
"invoice_item_container">
74 <?=
$block->getChildHtml(
'order_items') ?>
78 require([
'prototype'],
function(){
81 var createShipment = $(
'invoice_do_shipment');
83 createShipment.observe(
'click',
function(e){
84 if (createShipment.checked) {
85 document.getElementById(
'tracking').style.display =
'block';
87 document.getElementById(
'tracking').style.display =
'none' 93 var forcedShipmentCreate = <?=
$block->getForcedShipmentCreate() ?>;
94 var shipmentElement = $(
'invoice_do_shipment');
95 if (forcedShipmentCreate && shipmentElement) {
96 shipmentElement.checked =
true;
97 shipmentElement.disabled =
true;
98 document.getElementById(
'tracking').style.display =
'block';
101 window.createShipment = createShipment;
102 window.forcedShipmentCreate = forcedShipmentCreate;
103 window.shipmentElement = shipmentElement;
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
jquery extjs ext tree mage adminhtml form