diff --git a/app/code/Magento/Checkout/view/frontend/web/template/form/element/email.html b/app/code/Magento/Checkout/view/frontend/web/template/form/element/email.html index 8d6142e07fcf0..8e71d5845cec8 100644 --- a/app/code/Magento/Checkout/view/frontend/web/template/form/element/email.html +++ b/app/code/Magento/Checkout/view/frontend/web/template/form/element/email.html @@ -14,9 +14,7 @@ method="post">
- +
- +
Magento\Customer\Block\DataProviders\AddressAttributeData Magento\Customer\Block\DataProviders\PostCodesPatternsAttributeData + Magento\Customer\ViewModel\Address diff --git a/app/code/Magento/Customer/view/frontend/templates/address/edit.phtml b/app/code/Magento/Customer/view/frontend/templates/address/edit.phtml index cf5b60568ad05..1d940296f334a 100644 --- a/app/code/Magento/Customer/view/frontend/templates/address/edit.phtml +++ b/app/code/Magento/Customer/view/frontend/templates/address/edit.phtml @@ -5,10 +5,26 @@ */ /** @var \Magento\Customer\Block\Address\Edit $block */ +/** @var \Magento\Customer\ViewModel\Address $viewModel */ +$viewModel = $block->getViewModel(); ?> getLayout()->createBlock(\Magento\Customer\Block\Widget\Company::class) ?> getLayout()->createBlock(\Magento\Customer\Block\Widget\Telephone::class) ?> getLayout()->createBlock(\Magento\Customer\Block\Widget\Fax::class) ?> +getAttributeData()->getFrontendLabel('country_id'); ?> +getAttributeData()->getFrontendLabel('street'); ?> +getAttributeData()->getFrontendLabel('city'); ?> +getAttributeData()->getFrontendLabel('region'); ?> + +getConfig('general/region/display_all'); ?> + +addressGetAttributeValidationClass('vat_id'); ?> +addressGetAttributeValidationClass('city'); ?> +addressGetAttributeValidationClass('postcode'); ?> + +addressGetAttributeValidationClass('street'); ?> + +addressGetAttributeValidationClass('region'); ?>
getNameBlockHtml() ?> - isEnabled()) : ?> + isEnabled()): ?> setCompany($block->getAddress()->getCompany())->toHtml() ?> - isEnabled()) : ?> + isEnabled()): ?> setTelephone($block->getAddress()->getTelephone())->toHtml() ?> - isEnabled()) : ?> + isEnabled()): ?> setFax($block->getAddress()->getFax())->toHtml() ?>
escapeHtml(__('Address')) ?>
- helper(\Magento\Customer\Helper\Address::class)->getAttributeValidationClass('street'); ?>
- +
- - helper(\Magento\Customer\Helper\Address::class)->getStreetLines(); $_i < $_n; $_i++) : ?> + addressGetStreetLines(); $_i < $_n; $_i++): ?>
@@ -69,7 +82,7 @@
- helper(\Magento\Customer\Helper\Address::class)->isVatAttributeVisible()) : ?> + addressIsVatAttributeVisible()): ?>
- +
getConfig('general/region/display_all') ? ' disabled="disabled"' : '' ?>/> + title="" + class="input-text validate-not-number-first + escapeHtmlAttr($_regionValidationClass) ?>" + />
@@ -123,46 +139,47 @@ value="escapeHtmlAttr($block->getAddress()->getPostcode()) ?>" title="getAttributeData()->getFrontendLabel('postcode') ?>" id="zip" - class="input-text validate-zip-international escapeHtmlAttr($this->helper(\Magento\Customer\Helper\Address::class)->getAttributeValidationClass('postcode')) ?>"> + class="input-text validate-zip-international + escapeHtmlAttr($_postcodeValidationClass) ?>">
- +
getCountryHtmlSelect() ?>
- isDefaultBilling()) : ?> + isDefaultBilling()): ?>
escapeHtml(__("It's a default billing address.")) ?>
- canSetAsDefaultBilling()) : ?> + canSetAsDefaultBilling()): ?>
- + - isDefaultShipping()) : ?> + isDefaultShipping()): ?>
escapeHtml(__("It's a default shipping address.")) ?>
- canSetAsDefaultShipping()) : ?> + canSetAsDefaultShipping()): ?>
- +
@@ -191,14 +208,14 @@ }, "#country": { "regionUpdater": { - "optionalRegionAllowed": getConfig('general/region/display_all') ? 'true' : 'false' ?>, + "optionalRegionAllowed": , "regionListId": "#region_id", "regionInputId": "#region", "postcodeId": "#zip", "form": "#form-validate", - "regionJson": helper(\Magento\Directory\Helper\Data::class)->getRegionJson() ?>, + "regionJson": dataGetRegionJson() ?>, "defaultRegion": "getRegionId() ?>", - "countriesWithOptionalZip": helper(\Magento\Directory\Helper\Data::class)->getCountriesWithOptionalZip(true) ?> + "countriesWithOptionalZip": dataGetCountriesWithOptionalZip(true) ?> } } } diff --git a/app/code/Magento/Ui/view/frontend/web/templates/form/field.html b/app/code/Magento/Ui/view/frontend/web/templates/form/field.html index cbd3242b451b4..8ef49e307747b 100644 --- a/app/code/Magento/Ui/view/frontend/web/templates/form/field.html +++ b/app/code/Magento/Ui/view/frontend/web/templates/form/field.html @@ -6,11 +6,7 @@ -->
- +