Skip to content

Commit 79e3285

Browse files
author
Natalia Momotenko
committed
Merge remote-tracking branch 'origin/MAGETWO-47254' into bugfixes
2 parents 18fae4b + 2dab7ec commit 79e3285

File tree

2 files changed

+16
-3
lines changed
  • app
    • code/Magento/Sales/view/adminhtml/templates/order/create/form
    • design/adminhtml/Magento/backend/Magento_Sales/web/css/source/module/order

2 files changed

+16
-3
lines changed

app/code/Magento/Sales/view/adminhtml/templates/order/create/form/address.phtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ endif; ?>
4141

4242
<fieldset id="<?php /* @escapeNotVerified */ echo $_addressChoiceContainerId ?>" class="admin__fieldset order-choose-address">
4343
<?php if ($block->getIsShipping()): ?>
44-
<div class="admin__field admin__field-option">
44+
<div class="admin__field admin__field-option admin__field-shipping-same-as-billing">
4545
<input type="checkbox" id="order-shipping_same_as_billing" name="shipping_same_as_billing"
4646
onclick="order.setShippingAsBilling(this.checked)" class="admin__control-checkbox"
4747
<?php if ($block->getIsAsBilling()): ?>checked<?php endif; ?> />
@@ -50,13 +50,13 @@ endif; ?>
5050
</label>
5151
</div>
5252
<?php endif; ?>
53-
<div class="admin__field">
53+
<div class="admin__field admin__field-select-from-existing-address">
5454
<label class="admin__field-label"><?php /* @escapeNotVerified */ echo __('Select from existing customer addresses:') ?></label>
5555
<?php $_id = $block->getForm()->getHtmlIdPrefix() . 'customer_address_id' ?>
5656
<div class="admin__field-control">
5757
<select id="<?php /* @escapeNotVerified */ echo $_id ?>"
5858
name="<?php echo $block->getForm()->getHtmlNamePrefix() ?>[customer_address_id]"
59-
style="width: 97.5%;" onchange="order.selectAddress(this, '<?php /* @escapeNotVerified */ echo $_fieldsContainerId ?>')"
59+
onchange="order.selectAddress(this, '<?php /* @escapeNotVerified */ echo $_fieldsContainerId ?>')"
6060
class="admin__control-select">
6161
<option value=""><?php /* @escapeNotVerified */ echo __('Add New Address') ?></option>
6262
<?php foreach ($block->getAddressCollection() as $_address): ?>

app/design/adminhtml/Magento/backend/Magento_Sales/web/css/source/module/order/_address.less

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,16 @@
4747
padding: 0;
4848
}
4949
}
50+
51+
.admin__fieldset {
52+
> .admin__field-shipping-same-as-billing {
53+
margin-bottom: @indent__s;
54+
margin-top: -@indent__base;
55+
}
56+
}
57+
58+
.order-billing-address {
59+
.order-choose-address {
60+
margin-top: 14px;
61+
}
62+
}

0 commit comments

Comments
 (0)