Skip to content

Commit

Permalink
#23481: Billing/Shipping Address edit form design update from order b…
Browse files Browse the repository at this point in the history
…ackend

- Messages container added to correctly apply margin between message and form
- Form wrapper html tag changed from 'fieldset' to 'div'
- Added 'admin__fieldset' class to form for standard admin styles to work properly
  • Loading branch information
alexey-rakitin committed Nov 25, 2019
1 parent e62c675 commit 95eea52
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ protected function _prepareForm()
{
parent::_prepareForm();
$this->_form->setId('edit_form');
$this->_form->setClass('admin__fieldset');
$this->_form->setMethod('post');
$this->_form->setAction(
$this->getUrl('sales/*/addressSave', ['address_id' => $this->_getAddress()->getId()])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,20 @@
* See COPYING.txt for license details.
*/
?>
<div class="message message-notice">
<div class="message-inner">
<div class="message-content"><?= $block->escapeHtml(__('Changing address information will not recalculate shipping, tax or other order amount.')) ?></div>
<div class="messages">
<div class="message message-notice">
<div class="message-inner">
<div class="message-content"><?= $block->escapeHtml(__('Changing address information will not recalculate shipping, tax or other order amount.')) ?></div>
</div>
</div>
</div>

<fieldset class="fieldset admin__fieldset-wrapper">
<div class="fieldset admin__fieldset-wrapper">
<legend class="legend admin__legend">
<span><?= $block->escapeHtml($block->getHeaderText()) ?></span>
</legend>
<br>
<div class="form-inline" data-mage-init='{"Magento_Sales/order/edit/address/form":{}}'>
<?= $block->getForm()->toHtml() ?>
</div>
</fieldset>
</div>

0 comments on commit 95eea52

Please sign in to comment.