ltsecurityinc安防产品在线商城代码
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0"?>
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<body>
|
||||
<referenceContainer name="form.additional.info">
|
||||
<block class="Magento\Framework\View\Element\Template" name="tc" template="Magento_Customer::tc.phtml" after="form_additional_info_customer"/>
|
||||
</referenceContainer>
|
||||
<referenceBlock name="customer_form_register">
|
||||
<arguments>
|
||||
<argument name="show_address_fields" xsi:type="boolean">true</argument>
|
||||
</arguments>
|
||||
</referenceBlock>
|
||||
</body>
|
||||
</page>
|
||||
Executable
+40
@@ -0,0 +1,40 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<head>
|
||||
<title>Create New Customer Account</title>
|
||||
</head>
|
||||
<body>
|
||||
<referenceBlock name="head.components">
|
||||
<block class="Magento\Framework\View\Element\Js\Components" name="customer_account_create_head_components" template="Magento_Customer::js/components.phtml"/>
|
||||
</referenceBlock>
|
||||
<referenceContainer name="content">
|
||||
<block class="Magento\Customer\Block\Form\Register" name="customer_form_register" template="Magento_Customer::form/register.phtml">
|
||||
<arguments>
|
||||
<argument name="attribute_data" xsi:type="object">Magento\Customer\Block\DataProviders\AddressAttributeData</argument>
|
||||
<argument name="region_provider" xsi:type="object">Magento\Customer\ViewModel\Address\RegionProvider</argument>
|
||||
<argument name="create_account_button_view_model" xsi:type="object">Magento\Customer\ViewModel\CreateAccountButton</argument>
|
||||
</arguments>
|
||||
<container name="form.additional.info" as="form_additional_info"/>
|
||||
<container name="customer.form.register.fields.before" as="form_fields_before" label="Form Fields Before" htmlTag="div" htmlClass="customer-form-before"/>
|
||||
</block>
|
||||
<block class="Magento\Cookie\Block\RequireCookie" name="require-cookie" template="Magento_Cookie::require_cookie.phtml">
|
||||
<arguments>
|
||||
<argument name="triggers" xsi:type="array">
|
||||
<item name="registerSubmitButton" xsi:type="string">.action.submit</item>
|
||||
</argument>
|
||||
</arguments>
|
||||
</block>
|
||||
</referenceContainer>
|
||||
<referenceContainer name="form.additional.info">
|
||||
<block class="Magento\Framework\View\Element\Template" name="form_additional_info_customer" template="Magento_Customer::additionalinfocustomer.phtml"/>
|
||||
<!--<block class="Magento\CheckoutAgreements\Block\Agreements" name="register.agreements" as="agreements" template="Magento_CheckoutAgreements::additional_agreements.phtml"/>-->
|
||||
<block class="Magento\Framework\View\Element\Template" name="tc" template="Magento_Customer::tc.phtml"/>
|
||||
</referenceContainer>
|
||||
</body>
|
||||
</page>
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<body>
|
||||
<referenceContainer name="form.additional.info">
|
||||
<block class="Magento\Framework\View\Element\Template" name="tc" template="Magento_Customer::tc.phtml" after="form_additional_info_customer"/>
|
||||
</referenceContainer>
|
||||
</body>
|
||||
</page>
|
||||
Executable
+16
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<body>
|
||||
<referenceBlock name="page.main.title" remove="true" />
|
||||
<referenceBlock name="header_banner" remove="true" />
|
||||
<referenceBlock name="above_footer_block" remove="true" />
|
||||
<referenceBlock name="above_footer_banner" remove="true" />
|
||||
<referenceContainer name="above_footer" remove="1" />
|
||||
</body>
|
||||
</page>
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<body>
|
||||
<referenceBlock name="page.main.title" remove="true" />
|
||||
<referenceBlock name="header_banner" remove="true" />
|
||||
<referenceBlock name="above_footer_block" remove="true" />
|
||||
<referenceBlock name="above_footer_banner" remove="true" />
|
||||
<referenceContainer name="above_footer" remove="1" />
|
||||
</body>
|
||||
</page>
|
||||
Executable
+24
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
use Olegnax\Athlete2\Helper\Helper;
|
||||
|
||||
$theme_helper = $this->helper('Olegnax\Athlete2\Helper\Helper');
|
||||
$class = (version_compare($theme_helper->getVersion(), '2.4.1', '>')) ? 'collapsible-nav' : '';
|
||||
?>
|
||||
|
||||
<div class="block <?= $class ?> <?= $block->escapeHtmlAttr($block->getBlockCss()) ?>">
|
||||
<div class="title <?= $block->escapeHtmlAttr($block->getBlockCss()) ?>-title"
|
||||
data-mage-init='{"toggleAdvanced": {"toggleContainers": "#<?= $block->escapeHtmlAttr($block->getBlockCss()) ?>", "selectorsToggleClass": "active"}}'>
|
||||
<div class="toggle-mobile-nav">
|
||||
<span class="hamburger-menu-icon-small" aria-label="<?= $block->escapeHtml(__('Menu Icon')) ?>"><span></span><span></span><span></span></span>
|
||||
<label><?= $block->escapeHtml(__($block->getBlockTitle())) ?></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content <?= $block->escapeHtmlAttr($block->getBlockCss()) ?>-content"
|
||||
id="<?= $block->escapeHtmlAttr($block->getBlockCss()) ?>">
|
||||
<?= $block->getChildHtml() ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
/** @var \Magento\Customer\Block\Address\Book $block */
|
||||
?>
|
||||
<div class="block block-addresses-default">
|
||||
<div class="block-title"><strong><?= $block->escapeHtml(__('Default Addresses')) ?></strong></div>
|
||||
<div class="block-content">
|
||||
<?php if ($_pAddsses = $block->getDefaultBilling()) : ?>
|
||||
<div class="box box-address-billing">
|
||||
<strong class="box-title">
|
||||
<span><?= $block->escapeHtml(__('Default Billing Address')) ?></span>
|
||||
</strong>
|
||||
<div class="box-content">
|
||||
<address>
|
||||
<?= $block->getAddressHtml($block->getAddressById($_pAddsses)) ?>
|
||||
</address>
|
||||
</div>
|
||||
<div class="box-actions">
|
||||
<a class="action edit" href="<?= $block->escapeUrl($block->getAddressEditUrl($_pAddsses)) ?>">
|
||||
<span><?= $block->escapeHtml(__('Change Billing Address')) ?></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<div class="box box-billing-address">
|
||||
<strong class="box-title"><span><?= $block->escapeHtml(__('Default Billing Address')) ?></span></strong>
|
||||
<div class="box-content">
|
||||
<p><?= $block->escapeHtml(__('You have no default billing address in your address book.')) ?></p>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($_pAddsses = $block->getDefaultShipping()) : ?>
|
||||
<div class="box box-address-shipping">
|
||||
<strong class="box-title">
|
||||
<span><?= $block->escapeHtml(__('Default Shipping Address')) ?></span>
|
||||
</strong>
|
||||
<div class="box-content">
|
||||
<address>
|
||||
<?= $block->getAddressHtml($block->getAddressById($_pAddsses)) ?>
|
||||
</address>
|
||||
</div>
|
||||
<div class="box-actions">
|
||||
<a class="action edit" href="<?= $block->escapeUrl($block->getAddressEditUrl($_pAddsses)) ?>">
|
||||
<span><?= $block->escapeHtml(__('Change Shipping Address')) ?></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<div class="box box-shipping-address">
|
||||
<strong class="box-title"><span><?= $block->escapeHtml(__('Default Shipping Address')) ?></span></strong>
|
||||
<div class="box-content">
|
||||
<p><?= $block->escapeHtml(__('You have no default shipping address in your address book.')) ?></p>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,240 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
/** @var \Magento\Customer\Block\Address\Edit $block */
|
||||
/** @var \Magento\Customer\ViewModel\Address $viewModel */
|
||||
/** @var \Magento\Framework\Escaper $escaper */
|
||||
/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
|
||||
/** @var \Magento\Customer\ViewModel\Address\RegionProvider $regionProvider */
|
||||
$viewModel = $block->getViewModel();
|
||||
$regionProvider = $block->getRegionProvider();
|
||||
?>
|
||||
<?php $_company = $block->getLayout()->createBlock(\Magento\Customer\Block\Widget\Company::class) ?>
|
||||
<?php $_telephone = $block->getLayout()->createBlock(\Magento\Customer\Block\Widget\Telephone::class) ?>
|
||||
<?php $_fax = $block->getLayout()->createBlock(\Magento\Customer\Block\Widget\Fax::class) ?>
|
||||
<?php $_country_id = $block->getAttributeData()->getFrontendLabel('country_id'); ?>
|
||||
<?php $_street = $block->getAttributeData()->getFrontendLabel('street'); ?>
|
||||
<?php $_city = $block->getAttributeData()->getFrontendLabel('city'); ?>
|
||||
<?php $_region = $block->getAttributeData()->getFrontendLabel('region'); ?>
|
||||
<?php $_selectRegion = 'Please select a region, state or province.'; ?>
|
||||
<?php $_displayAll = $block->getConfig('general/region/display_all'); ?>
|
||||
|
||||
<?php $_vatidValidationClass = $viewModel->addressGetAttributeValidationClass('vat_id'); ?>
|
||||
<?php $_cityValidationClass = $viewModel->addressGetAttributeValidationClass('city'); ?>
|
||||
<?php $_postcodeValidationClass_value = $viewModel->addressGetAttributeValidationClass('postcode'); ?>
|
||||
<?php $_postcodeValidationClass = $_postcodeValidationClass_value; ?>
|
||||
<?php $_streetValidationClass = $viewModel->addressGetAttributeValidationClass('street'); ?>
|
||||
<?php $_streetValidationClassNotRequired = $_streetValidationClass !== null ?
|
||||
trim(str_replace('required-entry', '', $_streetValidationClass)) : ''; ?>
|
||||
<?php $_regionValidationClass = $viewModel->addressGetAttributeValidationClass('region'); ?>
|
||||
<form class="form-address-edit"
|
||||
action="<?= $escaper->escapeUrl($block->getSaveUrl()) ?>"
|
||||
method="post"
|
||||
id="form-validate"
|
||||
enctype="multipart/form-data"
|
||||
data-hasrequired="<?= $escaper->escapeHtmlAttr(__('* Required Fields')) ?>">
|
||||
<fieldset class="fieldset">
|
||||
<legend class="legend"><span><?= $escaper->escapeHtml(__('Contact Information')) ?></span></legend><br>
|
||||
<?= $block->getBlockHtml('formkey') ?>
|
||||
<input type="hidden" name="success_url" value="<?= $escaper->escapeUrl($block->getSuccessUrl()) ?>">
|
||||
<input type="hidden" name="error_url" value="<?= $escaper->escapeUrl($block->getErrorUrl()) ?>">
|
||||
<?= $block->getNameBlockHtml() ?>
|
||||
|
||||
<?php if ($_company->isEnabled()): ?>
|
||||
<?= $_company->setCompany($block->getAddress()->getCompany())->toHtml() ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($_telephone->isEnabled()): ?>
|
||||
<?= $_telephone->setTelephone($block->getAddress()->getTelephone())->toHtml() ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($_fax->isEnabled()): ?>
|
||||
<?= $_fax->setFax($block->getAddress()->getFax())->toHtml() ?>
|
||||
<?php endif ?>
|
||||
|
||||
</fieldset>
|
||||
<fieldset class="fieldset">
|
||||
<legend class="legend"><span><?= $escaper->escapeHtml(__('Address')) ?></span></legend><br>
|
||||
<div class="field street required">
|
||||
<label for="street_1" class="label"><span><?= /* @noEscape */ $_street ?></span></label>
|
||||
<div class="control">
|
||||
<div class="field primary">
|
||||
<label for="street_1" class="label">
|
||||
<span>
|
||||
<?= $escaper->escapeHtml(__('Street Address: Line %1', 1)) ?>
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
<input type="text"
|
||||
name="street[0]"
|
||||
value="<?= $escaper->escapeHtmlAttr($block->getStreetLine(1)) ?>"
|
||||
title="<?= /* @noEscape */ $_street ?>"
|
||||
id="street_1"
|
||||
class="input-text <?= $escaper->escapeHtmlAttr($_streetValidationClass) ?>"/>
|
||||
<div class="nested">
|
||||
<?php for ($_i = 1, $_n = $viewModel->addressGetStreetLines(); $_i < $_n; $_i++): ?>
|
||||
<div class="field additional">
|
||||
<label class="label" for="street_<?= /* @noEscape */ $_i + 1 ?>">
|
||||
<span><?= $escaper->escapeHtml(__('Street Address: Line %1', $_i + 1)) ?></span>
|
||||
</label>
|
||||
<div class="control">
|
||||
<input type="text" name="street[<?= /* @noEscape */ $_i ?>]"
|
||||
value="<?= $escaper->escapeHtmlAttr($block->getStreetLine($_i + 1)) ?>"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Street Address %1', $_i + 1)) ?>"
|
||||
id="street_<?= /* @noEscape */ $_i + 1 ?>"
|
||||
class="input-text
|
||||
<?= $escaper->escapeHtmlAttr($_streetValidationClassNotRequired) ?>">
|
||||
</div>
|
||||
</div>
|
||||
<?php endfor; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if ($viewModel->addressIsVatAttributeVisible()): ?>
|
||||
<div class="field taxvat">
|
||||
<label class="label" for="vat_id">
|
||||
<span><?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('vat_id') ?></span>
|
||||
</label>
|
||||
<div class="control">
|
||||
<input type="text"
|
||||
name="vat_id"
|
||||
value="<?= $escaper->escapeHtmlAttr($block->getAddress()->getVatId()) ?>"
|
||||
title="<?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('vat_id') ?>"
|
||||
class="input-text <?= $escaper->escapeHtmlAttr($_vatidValidationClass) ?>"
|
||||
id="vat_id">
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="field city required">
|
||||
<label class="label" for="city">
|
||||
<span><?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('city') ?></span>
|
||||
</label>
|
||||
<div class="control">
|
||||
<input type="text"
|
||||
name="city"
|
||||
value="<?= $escaper->escapeHtmlAttr($block->getAddress()->getCity()) ?>"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('City')) ?>"
|
||||
class="input-text <?= $escaper->escapeHtmlAttr($_cityValidationClass) ?>"
|
||||
id="city">
|
||||
</div>
|
||||
</div>
|
||||
<div class="field region required">
|
||||
<label class="label" for="region_id">
|
||||
<span><?= /* @noEscape */ $_region ?></span>
|
||||
</label>
|
||||
<div class="control">
|
||||
<select id="region_id" name="region_id"
|
||||
title="<?= /* @noEscape */ $_region ?>"
|
||||
class="validate-select region_id"
|
||||
<?= /* @noEscape */ !$_displayAll ? ' disabled="disabled"' : '' ?>>
|
||||
<option value=""><?= $escaper->escapeHtml(__($_selectRegion)) ?></option>
|
||||
</select>
|
||||
<input type="text"
|
||||
id="region"
|
||||
name="region"
|
||||
value="<?= $escaper->escapeHtmlAttr($block->getRegion()) ?>"
|
||||
title="<?= /* @noEscape */ $_region ?>"
|
||||
class="input-text validate-not-number-first
|
||||
<?= $escaper->escapeHtmlAttr($_regionValidationClass) ?>"
|
||||
<?= !$_displayAll ? ' disabled="disabled"' : '' ?>/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field country required">
|
||||
<label class="label" for="country">
|
||||
<span><?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('country_id') ?></span>
|
||||
</label>
|
||||
<div class="control">
|
||||
<?= $block->getCountryHtmlSelect() ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field zip required">
|
||||
<label class="label" for="zip">
|
||||
<span><?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('postcode') ?></span>
|
||||
</label>
|
||||
<div class="control">
|
||||
<input type="text"
|
||||
name="postcode"
|
||||
value="<?= $escaper->escapeHtmlAttr($block->getAddress()->getPostcode()) ?>"
|
||||
title="<?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('postcode') ?>"
|
||||
id="zip"
|
||||
class="input-text validate-zip-international
|
||||
<?= $escaper->escapeHtmlAttr($_postcodeValidationClass) ?>">
|
||||
<div role="alert" class="message warning">
|
||||
<span></span>
|
||||
</div>
|
||||
<?= /* @noEscape */ $secureRenderer->renderStyleAsTag("display: none;", 'div.message.warning') ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if ($block->isDefaultBilling()): ?>
|
||||
<div class="message info">
|
||||
<span><?= $escaper->escapeHtml(__("It's a default billing address.")) ?></span>
|
||||
</div>
|
||||
<?php elseif ($block->canSetAsDefaultBilling()): ?>
|
||||
<div class="field choice set billing">
|
||||
<input type="checkbox" id="primary_billing" name="default_billing" value="1" class="checkbox">
|
||||
<label class="label" for="primary_billing">
|
||||
<span><?= $escaper->escapeHtml(__('Use as my default billing address')) ?></span>
|
||||
</label>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<input type="hidden" name="default_billing" value="1" />
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($block->isDefaultShipping()): ?>
|
||||
<div class="message info">
|
||||
<span><?= $escaper->escapeHtml(__("It's a default shipping address.")) ?></span>
|
||||
</div>
|
||||
<?php elseif ($block->canSetAsDefaultShipping()): ?>
|
||||
<div class="field choice set shipping">
|
||||
<input type="checkbox" id="primary_shipping" name="default_shipping" value="1" class="checkbox">
|
||||
<label class="label" for="primary_shipping">
|
||||
<span><?= $escaper->escapeHtml(__('Use as my default shipping address')) ?></span>
|
||||
</label>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<input type="hidden" name="default_shipping" value="1">
|
||||
<?php endif; ?>
|
||||
</fieldset>
|
||||
<div class="actions-toolbar">
|
||||
<div class="primary">
|
||||
<button type="submit"
|
||||
class="action save primary"
|
||||
data-action="save-address"
|
||||
disabled="disabled"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Save Address')) ?>">
|
||||
<span><?= $escaper->escapeHtml(__('Save Address')) ?></span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="secondary">
|
||||
<a class="action back" href="<?= $escaper->escapeUrl($block->getBackUrl()) ?>">
|
||||
<span><?= $escaper->escapeHtml(__('Go back')) ?></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<script type="text/x-magento-init">
|
||||
{
|
||||
"#form-validate": {
|
||||
"addressValidation": {
|
||||
"postCodes": <?= /* @noEscape */ $block->getPostCodeConfig()->getSerializedPostCodes() ?>
|
||||
}
|
||||
},
|
||||
"#country": {
|
||||
"directoryRegionUpdater": {
|
||||
"optionalRegionAllowed": <?= /* @noEscape */ $_displayAll ? 'true' : 'false' ?>,
|
||||
"regionListId": "#region_id",
|
||||
"regionInputId": "#region",
|
||||
"postcodeId": "#zip",
|
||||
"form": "#form-validate",
|
||||
"regionJson": <?= /* @noEscape */ $regionProvider->getRegionJson(); ?>,
|
||||
"defaultRegion": "<?= (int) $block->getRegionId() ?>",
|
||||
"countriesWithOptionalZip": <?= /* @noEscape */ $viewModel->dataGetCountriesWithOptionalZip(true) ?>
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
/** @var \Magento\Customer\Block\Address\Grid $block */
|
||||
$customerAddressView = $block->getData('customer_address');
|
||||
?>
|
||||
|
||||
<div class="block block-addresses-list">
|
||||
<div class="block-title"><strong><?= $block->escapeHtml(__('Additional Address Entries')) ?></strong></div>
|
||||
<div class="block-content">
|
||||
<?php if ($_pAddsses = $block->getAdditionalAddresses()) : ?>
|
||||
|
||||
<div class="table-wrapper additional-addresses">
|
||||
<table class="data table table-additional-addresses-items history" id="additional-addresses-table">
|
||||
<caption class="table-caption"><?= $block->escapeHtml(__('Additional addresses')) ?></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="col firstname"><?= $block->escapeHtml(__('First Name')) ?></th>
|
||||
<th scope="col" class="col lastname"><?= $block->escapeHtml(__('Last Name')) ?></th>
|
||||
<th scope="col" class="col streetaddress"><?= $block->escapeHtml(__('Street Address')) ?></th>
|
||||
<th scope="col" class="col city"><?= $block->escapeHtml(__('City')) ?></th>
|
||||
<th scope="col" class="col country"><?= $block->escapeHtml(__('Country')) ?></th>
|
||||
<th scope="col" class="col state"><?= $block->escapeHtml(__('State')) ?></th>
|
||||
<th scope="col" class="col zip"><?= $block->escapeHtml(__('Zip/Postal Code')) ?></th>
|
||||
<th scope="col" class="col phone"><?= $block->escapeHtml(__('Phone')) ?></th>
|
||||
<th scope="col" class="col actions"> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($_pAddsses as $address) : ?>
|
||||
<tr>
|
||||
<td data-th="<?= $block->escapeHtml(__('First Name')) ?>" class="col firstname"><?= $block->escapeHtml($address->getFirstname()) ?></td>
|
||||
<td data-th="<?= $block->escapeHtml(__('Last Name')) ?>" class="col lastname"><?= $block->escapeHtml($address->getLastname()) ?></td>
|
||||
<td data-th="<?= $block->escapeHtml(__('Street Address')) ?>" class="col streetaddress"><?= $block->escapeHtml($block->getStreetAddress($address)) ?></td>
|
||||
<td data-th="<?= $block->escapeHtml(__('City')) ?>" class="col city"><?= $block->escapeHtml($address->getCity()) ?></td>
|
||||
<td data-th="<?= $block->escapeHtml(__('Country')) ?>" class="col country"><?= $block->escapeHtml($block->getCountryByCode($address->getCountryId())) ?></td>
|
||||
<td data-th="<?= $block->escapeHtml(__('State')) ?>" class="col state"><?= $block->escapeHtml($address->getRegion()->getRegion()) ?></td>
|
||||
<td data-th="<?= $block->escapeHtml(__('Zip/Postal Code')) ?>" class="col zip"><?= $block->escapeHtml($address->getPostcode()) ?></td>
|
||||
<td data-th="<?= $block->escapeHtml(__('Phone')) ?>" class="col phone"><?= $block->escapeHtml($address->getTelephone()) ?></td>
|
||||
<td data-th="<?= $block->escapeHtml(__('Actions')) ?>" class="col actions">
|
||||
<a class="action edit" href="<?= $block->escapeUrl($block->getUrl('customer/address/edit', ['id' => $address->getId()])) ?>"><span><?= $block->escapeHtml(__('Edit')) ?></span></a>
|
||||
<a class="action delete" href="#" role="delete-address" data-address="<?= $block->escapeHtmlAttr($address->getId()) ?>"><span><?= $block->escapeHtml(__('Delete')) ?></span></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php if ($block->getChildHtml('pager')) : ?>
|
||||
<div class="customer-addresses-toolbar toolbar bottom"><?= $block->getChildHtml('pager') ?></div>
|
||||
<?php endif ?>
|
||||
<?php else : ?>
|
||||
<p class="empty"><?= $block->escapeHtml(__('You have no other address entries in your address book.')) ?></p>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="actions-toolbar">
|
||||
<div class="primary">
|
||||
<button type="button" role="add-address" title="<?= $block->escapeHtmlAttr(__('Add New Address')) ?>" class="action primary add"><span><?= $block->escapeHtml(__('Add New Address')) ?></span></button>
|
||||
</div>
|
||||
<div class="secondary">
|
||||
<a class="action back" href="<?= $block->escapeUrl($block->getUrl('customer/account')) ?>"><span><?= $block->escapeHtml(__('Back')) ?></span></a>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/x-magento-init">
|
||||
{
|
||||
".page-main": {
|
||||
"address": {
|
||||
"deleteAddress": "td a[role='delete-address']",
|
||||
"deleteUrlPrefix": "<?= $block->escapeJs($block->escapeUrl($block->getDeleteUrl())) ?>id/",
|
||||
"addAddress": "button[role='add-address']",
|
||||
"addAddressLocation": "<?= $block->escapeJs($block->escapeUrl($block->getAddAddressUrl())) ?>"
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/** @var \Magento\Customer\Block\Form\Login $block */
|
||||
$loginButtonViewModel = $block->getData('login_button_view_model');
|
||||
?>
|
||||
<div class="block block-customer-login">
|
||||
<div class="block-title"><strong id="block-customer-login-heading" role="heading" aria-level="2"><?= $block->escapeHtml(__('Sign In')) ?></strong></div>
|
||||
<div class="block-content" aria-labelledby="block-customer-login-heading">
|
||||
<form class="form form-login" action="<?= $block->escapeUrl($block->getPostActionUrl()) ?>" method="post" id="login-form" data-mage-init='{"validation":{}}'>
|
||||
<?= $block->getBlockHtml('formkey') ?>
|
||||
<fieldset class="fieldset login">
|
||||
<div class="field email required">
|
||||
<label class="label" for="email"><span><?= $block->escapeHtml(__('Username')) ?></span></label>
|
||||
<div class="control"><input name="login[username]" value="<?= $block->escapeHtmlAttr($block->getUsername()) ?>" id="email" type="email" class="input-text" autocomplete="email" data-mage-init='{"mage/trim-input":{}}' data-validate="{required:true, 'validate-email':true}"></div>
|
||||
</div>
|
||||
<div class="field password required">
|
||||
<label for="pass" class="label"><span><?= $block->escapeHtml(__('Password')) ?></span></label>
|
||||
<div class="control"><input name="login[password]" type="password" class="input-text" id="pass" autocomplete="current-password" data-validate="{required:true}"></div>
|
||||
</div>
|
||||
<input type="hidden" name="login_redirect" value="referer">
|
||||
<?= $block->getChildHtml('form_additional_info_drop') ?>
|
||||
<a class="action remind" href="<?= $block->escapeUrl($block->getForgotPasswordUrl()) ?>"><?= $block->escapeHtml(__('Forgot Username Or Password')) ?></a>
|
||||
<label class="lts-remember-me"><input type="checkbox" name="persistent_remember_me" value="checked"><span><?= $block->escapeHtml(__('Remember Me')) ?></span></label>
|
||||
<div class="actions-toolbar"><button type="submit" class="action login primary" name="send" id="send2" <?php if ($loginButtonViewModel && $loginButtonViewModel->disabled()): ?>disabled="disabled"<?php endif; ?>><span><?= $block->escapeHtml(__('Sign In')) ?></span></button></div>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
<script type="text/x-magento-init">{"*":{"Magento_Customer/js/block-submit-on-send":{"formId":"login-form"}}}</script>
|
||||
</div>
|
||||
@@ -0,0 +1,396 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
use Magento\Customer\Helper\Address;
|
||||
|
||||
/** @var \Magento\Customer\Block\Form\Register $block */
|
||||
/** @var \Magento\Framework\Escaper $escaper */
|
||||
/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
|
||||
|
||||
/** @var Magento\Customer\Helper\Address $addressHelper */
|
||||
$addressHelper = $block->getData('addressHelper');
|
||||
/** @var \Magento\Directory\Helper\Data $directoryHelper */
|
||||
$directoryHelper = $block->getData('directoryHelper');
|
||||
/** @var \Magento\Customer\ViewModel\Address\RegionProvider $regionProvider */
|
||||
$regionProvider = $block->getRegionProvider();
|
||||
$formData = $block->getFormData();
|
||||
/** @var \Magento\Customer\ViewModel\CreateAccountButton $createAccountButtonViewModel */
|
||||
$createAccountButtonViewModel = $block->getData('create_account_button_view_model');
|
||||
?>
|
||||
<?php $displayAll = $block->getConfig('general/region/display_all'); ?>
|
||||
<?= $block->getChildHtml('form_fields_before') ?>
|
||||
<?php /* Extensions placeholder */ ?>
|
||||
<?= $block->getChildHtml('customer.form.register.extra') ?>
|
||||
<form class="form create account form-create-account"
|
||||
action="<?= $escaper->escapeUrl($block->getPostActionUrl()) ?>"
|
||||
method="post"
|
||||
id="form-validate"
|
||||
enctype="multipart/form-data"
|
||||
autocomplete="off">
|
||||
<?= /* @noEscape */ $block->getBlockHtml('formkey') ?>
|
||||
<fieldset class="fieldset create info">
|
||||
<legend class="legend"><span><?= $escaper->escapeHtml(__('Personal Information')) ?></span></legend><br>
|
||||
<input type="hidden" name="success_url" value="<?= $escaper->escapeUrl($block->getSuccessUrl()) ?>">
|
||||
<input type="hidden" name="error_url" value="<?= $escaper->escapeUrl($block->getErrorUrl()) ?>">
|
||||
<?= $block->getLayout()
|
||||
->createBlock(\Magento\Customer\Block\Widget\Name::class)
|
||||
->setObject($formData)
|
||||
->setForceUseCustomerAttributes(true)
|
||||
->toHtml() ?>
|
||||
<?php if ($block->isNewsletterEnabled()): ?>
|
||||
<div class="field choice newsletter">
|
||||
<input type="checkbox"
|
||||
name="is_subscribed"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Sign Up for Newsletter')) ?>"
|
||||
value="1"
|
||||
id="is_subscribed"
|
||||
<?php if ($formData->getIsSubscribed()): ?>checked="checked"<?php endif; ?>
|
||||
class="checkbox">
|
||||
<label for="is_subscribed" class="label">
|
||||
<span><?= $escaper->escapeHtml(__('Sign Up for Newsletter')) ?></span>
|
||||
</label>
|
||||
</div>
|
||||
<?php /* Extensions placeholder */ ?>
|
||||
<?= $block->getChildHtml('customer.form.register.newsletter') ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php $_dob = $block->getLayout()->createBlock(\Magento\Customer\Block\Widget\Dob::class) ?>
|
||||
<?php if ($_dob->isEnabled()): ?>
|
||||
<?= $_dob->setDate($formData->getDob())->toHtml() ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php $_taxvat = $block->getLayout()->createBlock(\Magento\Customer\Block\Widget\Taxvat::class) ?>
|
||||
<?php if ($_taxvat->isEnabled()): ?>
|
||||
<?= $_taxvat->setTaxvat($formData->getTaxvat())->toHtml() ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php $_gender = $block->getLayout()->createBlock(\Magento\Customer\Block\Widget\Gender::class) ?>
|
||||
<?php if ($_gender->isEnabled()): ?>
|
||||
<?= $_gender->setGender($formData->getGender())->toHtml() ?>
|
||||
<?php endif ?>
|
||||
<?= $block->getChildHtml('fieldset_create_info_additional') ?>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="fieldset create account"
|
||||
data-hasrequired="<?= $escaper->escapeHtmlAttr(__('* Required Fields')) ?>">
|
||||
<legend class="legend"><span><?= $escaper->escapeHtml(__('Sign-in Information')) ?></span></legend><br>
|
||||
<div class="field required">
|
||||
<label for="email_address" class="label"><span><?= $escaper->escapeHtml(__('Email')) ?></span></label>
|
||||
<div class="control">
|
||||
<input type="email"
|
||||
name="email"
|
||||
autocomplete="email"
|
||||
id="email_address"
|
||||
value="<?= $escaper->escapeHtmlAttr($formData->getEmail()) ?>"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Email')) ?>"
|
||||
class="input-text"
|
||||
data-mage-init='{"mage/trim-input":{}}'
|
||||
data-validate="{required:true, 'validate-email':true}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="field password required">
|
||||
<label for="password" class="label"><span><?= $escaper->escapeHtml(__('Password')) ?></span></label>
|
||||
<div class="control">
|
||||
<input type="password" name="password" id="password"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Password')) ?>"
|
||||
class="input-text"
|
||||
data-password-min-length="<?=
|
||||
$escaper->escapeHtmlAttr($block->getMinimumPasswordLength()) ?>"
|
||||
data-password-min-character-sets="<?=
|
||||
$escaper->escapeHtmlAttr($block->getRequiredCharacterClassesNumber()) ?>"
|
||||
data-validate="{required:true, 'validate-customer-password':true}"
|
||||
autocomplete="off">
|
||||
<div id="password-strength-meter-container" data-role="password-strength-meter" aria-live="polite">
|
||||
<div id="password-strength-meter" class="password-strength-meter">
|
||||
<?= $escaper->escapeHtml(__('Password Strength')) ?>:
|
||||
<span id="password-strength-meter-label" data-role="password-strength-meter-label">
|
||||
<?= $escaper->escapeHtml(__('No Password')) ?>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="field confirmation required">
|
||||
<label for="password-confirmation" class="label">
|
||||
<span><?= $escaper->escapeHtml(__('Confirm Password')) ?></span>
|
||||
</label>
|
||||
<div class="control">
|
||||
<input type="password"
|
||||
name="password_confirmation"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Confirm Password')) ?>"
|
||||
id="password-confirmation"
|
||||
class="input-text"
|
||||
data-validate="{required:true, equalTo:'#password'}"
|
||||
autocomplete="off">
|
||||
</div>
|
||||
</div>
|
||||
<div class="field choice" data-bind="scope: 'showPassword'">
|
||||
<!-- ko template: getTemplate() --><!-- /ko -->
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="fieldset additional_info">
|
||||
<?php if ($block->getShowAddressFields()): ?>
|
||||
<?php $cityValidationClass = $addressHelper->getAttributeValidationClass('city'); ?>
|
||||
<?php $postcodeValidationClass = $addressHelper->getAttributeValidationClass('postcode'); ?>
|
||||
<?php $regionValidationClass = $addressHelper->getAttributeValidationClass('region'); ?>
|
||||
<div class="fieldset address">
|
||||
<legend class="legend"><span><?= $escaper->escapeHtml(__('Address Information')) ?></span></legend><br>
|
||||
<input type="hidden" name="create_address" value="1" />
|
||||
|
||||
<?php $_company = $block->getLayout()->createBlock(\Magento\Customer\Block\Widget\Company::class) ?>
|
||||
<?php if ($_company->isEnabled()): ?>
|
||||
<?= $_company->setCompany($formData->getCompany())->toHtml() ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php $_telephone = $block->getLayout()->createBlock(\Magento\Customer\Block\Widget\Telephone::class) ?>
|
||||
<?php if ($_telephone->isEnabled()): ?>
|
||||
<?= $_telephone->setTelephone($formData->getTelephone())->toHtml() ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php $_fax = $block->getLayout()->createBlock(\Magento\Customer\Block\Widget\Fax::class) ?>
|
||||
<?php if ($_fax->isEnabled()): ?>
|
||||
<?= $_fax->setFax($formData->getFax())->toHtml() ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?php
|
||||
$_streetValidationClass = $addressHelper->getAttributeValidationClass('street');
|
||||
?>
|
||||
|
||||
<div class="field street required">
|
||||
<label for="street_1" class="label">
|
||||
<span><?= $escaper->escapeHtml(__('Address 1')) ?></span>
|
||||
</label>
|
||||
<div class="control">
|
||||
<input type="text"
|
||||
name="street[0]"
|
||||
value="<?= $escaper->escapeHtmlAttr($formData->getStreet(0)) ?>"
|
||||
id="street_1"
|
||||
class="input-text <?= $escaper->escapeHtmlAttr($_streetValidationClass) ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="field street">
|
||||
<label for="street_2" class="label">
|
||||
<span><?= $escaper->escapeHtml(__('Address 2')) ?></span>
|
||||
</label>
|
||||
<div class="control">
|
||||
<input type="text"
|
||||
name="street[2]"
|
||||
value="<?= $escaper->escapeHtml($formData->getStreetLine(1)) ?>"
|
||||
id="street_2"
|
||||
class="input-text">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if ($addressHelper->isVatAttributeVisible()): ?>
|
||||
<?php $_vatidValidationClass = $addressHelper->getAttributeValidationClass('vat_id'); ?>
|
||||
<div class="field taxvat">
|
||||
<label class="label" for="vat_id">
|
||||
<span><?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('vat_id') ?></span>
|
||||
</label>
|
||||
<div class="control">
|
||||
<input type="text"
|
||||
name="vat_id"
|
||||
value="<?= $escaper->escapeHtmlAttr($formData->getVatId()) ?>"
|
||||
title="<?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('vat_id') ?>"
|
||||
class="input-text <?= $escaper->escapeHtmlAttr($_vatidValidationClass) ?>"
|
||||
id="vat_id">
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="field country required">
|
||||
<label for="country" class="label">
|
||||
<span><?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('country_id') ?></span>
|
||||
</label>
|
||||
<div class="control">
|
||||
<?= $block->getCountryHtmlSelect() ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field region required">
|
||||
<label for="region_id" class="label">
|
||||
<span><?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('region') ?></span>
|
||||
</label>
|
||||
<div class="control">
|
||||
<select id="region_id"
|
||||
name="region_id"
|
||||
title="<?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('region') ?>"
|
||||
class="validate-select region_id">
|
||||
<option value="">
|
||||
<?= $escaper->escapeHtml(__('Please select a region, state or province.')) ?>
|
||||
</option>
|
||||
</select>
|
||||
<?= /* @noEscape */ $secureRenderer->renderStyleAsTag("display: none;", 'select#region_id') ?>
|
||||
<input type="text"
|
||||
id="region"
|
||||
name="region"
|
||||
value="<?= $escaper->escapeHtml($block->getRegion()) ?>"
|
||||
title="<?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('region') ?>"
|
||||
class="input-text <?= $escaper->escapeHtmlAttr($regionValidationClass) ?>">
|
||||
<?= /* @noEscape */ $secureRenderer->renderStyleAsTag("display: none;", 'input#region') ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field required">
|
||||
<label for="city" class="label">
|
||||
<span><?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('city') ?></span>
|
||||
</label>
|
||||
<div class="control">
|
||||
<input type="text"
|
||||
name="city"
|
||||
value="<?= $escaper->escapeHtmlAttr($formData->getCity()) ?>"
|
||||
title="<?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('city') ?>"
|
||||
class="input-text <?= $escaper->escapeHtmlAttr($cityValidationClass) ?>"
|
||||
id="city">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field zip required">
|
||||
<label for="zip" class="label">
|
||||
<span><?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('postcode') ?></span>
|
||||
</label>
|
||||
<div class="control">
|
||||
<input type="text"
|
||||
name="postcode"
|
||||
value="<?= $escaper->escapeHtmlAttr($formData->getPostcode()) ?>"
|
||||
title="<?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('postcode') ?>"
|
||||
id="zip"
|
||||
class="input-text validate-zip-international
|
||||
<?= $escaper->escapeHtmlAttr($postcodeValidationClass) ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php $addressAttributes = $block->getChildBlock('customer_form_address_user_attributes');?>
|
||||
<?php if ($addressAttributes): ?>
|
||||
<?php $addressAttributes->setEntityType('customer_address'); ?>
|
||||
<?php $addressAttributes->setFieldIdFormat('address:%1$s')->setFieldNameFormat('address[%1$s]');?>
|
||||
<?php $block->restoreSessionData($addressAttributes->getMetadataForm(), 'address');?>
|
||||
<?= $addressAttributes->setShowContainer(false)->toHtml() ?>
|
||||
<?php endif;?>
|
||||
<input type="hidden" name="default_billing" value="1">
|
||||
<input type="hidden" name="default_shipping" value="1">
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?= $block->getChildHtml('form_additional_info') ?>
|
||||
</fieldset>
|
||||
|
||||
|
||||
<div class="actions-toolbar">
|
||||
<div class="primary">
|
||||
<button type="submit"
|
||||
class="action submit primary"
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Create an Account')) ?>"
|
||||
id="send2"
|
||||
<?php if ($createAccountButtonViewModel->disabled()): ?> disabled="disabled" <?php endif; ?>>
|
||||
<span><?= $escaper->escapeHtml(__('Create an Account')) ?></span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="secondary">
|
||||
<a class="action back"
|
||||
href="<?= $escaper->escapeUrl($block->getBackUrl()) ?>">
|
||||
<span><?= $escaper->escapeHtml(__('Back')) ?></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<style>
|
||||
.form.create.account .fieldset .admin__legend.step-title{
|
||||
line-height: 1.1;
|
||||
font-size: 2.4rem;
|
||||
text-transform: uppercase;
|
||||
color: rgb(51, 51, 51);
|
||||
margin-bottom: 32px;
|
||||
font-weight: 500;
|
||||
}
|
||||
</style>
|
||||
<?php $ignore = /* @noEscape */ $_dob->isEnabled() ? '\'input[id$="full"]\'' : 'null';
|
||||
$scriptString = <<<script
|
||||
require([
|
||||
'jquery',
|
||||
'mage/mage'
|
||||
], function($){
|
||||
|
||||
var dataForm = $('#form-validate');
|
||||
var ignore = {$ignore};
|
||||
|
||||
dataForm.mage('validation', {
|
||||
script;
|
||||
if ($_dob->isEnabled()):
|
||||
$scriptString .= <<<script
|
||||
errorPlacement: function(error, element) {
|
||||
if (element.prop('id').search('full') !== -1) {
|
||||
var dobElement = $(element).parents('.customer-dob'),
|
||||
errorClass = error.prop('class');
|
||||
error.insertAfter(element.parent());
|
||||
dobElement.find('.validate-custom').addClass(errorClass)
|
||||
.after('<div class="' + errorClass + '"></div>');
|
||||
}
|
||||
else {
|
||||
error.insertAfter(element);
|
||||
}
|
||||
},
|
||||
ignore: ':hidden:not(' + ignore + ')'
|
||||
script;
|
||||
else:
|
||||
$scriptString .= <<<script
|
||||
ignore: ignore ? ':hidden:not(' + ignore + ')' : ':hidden'
|
||||
script;
|
||||
endif;
|
||||
$scriptString .= <<<script
|
||||
}).find('input:text').attr('autocomplete', 'off');
|
||||
});
|
||||
script;
|
||||
?>
|
||||
<?= /* @noEscape */ $secureRenderer->renderTag('script', [], $scriptString, false) ?>
|
||||
<?php if ($block->getShowAddressFields()): ?>
|
||||
<?php
|
||||
$regionJson = /* @noEscape */ $regionProvider->getRegionJson();
|
||||
$regionId = (int) $formData->getRegionId();
|
||||
$countriesWithOptionalZip = /* @noEscape */ $directoryHelper->getCountriesWithOptionalZip(true);
|
||||
?>
|
||||
<?php // phpcs:ignore Magento2.Legacy.PhtmlTemplate ?>
|
||||
<script type="text/x-magento-init">
|
||||
{
|
||||
"#country": {
|
||||
"directoryRegionUpdater": {
|
||||
"optionalRegionAllowed": <?= /* @noEscape */ $displayAll ? 'true' : 'false' ?>,
|
||||
"regionListId": "#region_id",
|
||||
"regionInputId": "#region",
|
||||
"postcodeId": "#zip",
|
||||
"form": "#form-validate",
|
||||
"regionJson": <?= /* @noEscape */ $regionJson ?>,
|
||||
"defaultRegion": <?= /* @noEscape */ $regionId ?>,
|
||||
"countriesWithOptionalZip": <?= /* @noEscape */ $countriesWithOptionalZip ?>
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
<?php // phpcs:ignore Magento2.Legacy.PhtmlTemplate ?>
|
||||
<script type="text/x-magento-init">
|
||||
{
|
||||
".field.password": {
|
||||
"passwordStrengthIndicator": {
|
||||
"formSelector": "form.form-create-account"
|
||||
}
|
||||
},
|
||||
"*": {
|
||||
"Magento_Customer/js/block-submit-on-send": {
|
||||
"formId": "form-validate"
|
||||
},
|
||||
"Magento_Ui/js/core/app": {
|
||||
"components": {
|
||||
"showPassword": {
|
||||
"component": "Magento_Customer/js/show-password",
|
||||
"passwordSelector": "#password,#password-confirmation"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,10 @@
|
||||
<div class="field tcagreecreateaccount">
|
||||
<div class="control">
|
||||
<input type="checkbox" id="tcagreecreateaccount" name="tcagreecreateaccount" data-validate="{required:false}" class="input-checkbox checkbox" value="1">
|
||||
<label for="tcagreecreateaccount" class="label">
|
||||
<?= __('By checking this box, I agree to receive SMS from LT Security Inc. and consent to LT Security Inc.’s ') ?>
|
||||
<a href="https://ltsecurityinc.com/privacy-policy " target="_blank" style="color: rgb(206, 33, 39); text-decoration: underline;">Privacy Policies</a> and <a href="https://ltsecurityinc.com/privacy-policy-cookie-restriction-mode" target="_blank" style="color: rgb(206, 33, 39); text-decoration: underline;">Cookie Policies</a>.
|
||||
<?= __(' Reply stop to opt-out anytime. [optional]') ?>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
/** @var \Magento\Customer\Block\Widget\Company $block */
|
||||
?>
|
||||
<div class="field company required <?= $block->isRequired() ? 'required' : '' ?>">
|
||||
<label for="company" class="label">
|
||||
<span>
|
||||
<?= $block->escapeHtml(__('Company Name')) ?>
|
||||
</span>
|
||||
</label>
|
||||
<div class="control">
|
||||
<?php
|
||||
$_validationClass = $block->escapeHtmlAttr(
|
||||
$this->helper(\Magento\Customer\Helper\Address::class)
|
||||
->getAttributeValidationClass('company')
|
||||
);
|
||||
?>
|
||||
<input type="text"
|
||||
name="company"
|
||||
id="company"
|
||||
value="<?= $block->escapeHtmlAttr($block->getCompany()) ?>"
|
||||
title="<?= $block->escapeHtmlAttr(__('Company')) ?>"
|
||||
class="input-text required-entry <?= $_validationClass ?: '' ?>"
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
|
||||
/** @var \Magento\Customer\Block\Widget\Dob $block */
|
||||
|
||||
/*
|
||||
<?= $block->getLayout()->createBlock('Magento\Customer\Block\Widget\Dob')
|
||||
->setDate($block->getCustomer()->getDob())
|
||||
->toHtml() ?>
|
||||
|
||||
For checkout/onepage/billing.phtml:
|
||||
|
||||
<?= $block->getLayout()->createBlock('Magento\Customer\Block\Widget\Dob')
|
||||
->setDate($block->getCustomer()->getDob())
|
||||
->setFieldIdFormat('billing:%s')
|
||||
->setFieldNameFormat('billing[%s]')
|
||||
->toHtml() ?>
|
||||
|
||||
NOTE: Regarding styles - if we leave it this way, we'll move it to boxes.css. Alternatively we could calculate widths
|
||||
automatically using block input parameters.
|
||||
*/
|
||||
|
||||
$translatedCalendarConfigJson = $block->getTranslatedCalendarConfigJson();
|
||||
$fieldCssClass = 'field date field-' . $block->getHtmlId();
|
||||
$fieldCssClass .= $block->isRequired() ? ' required' : '';
|
||||
?>
|
||||
<div class="<?= $block->escapeHtmlAttr($fieldCssClass) ?>">
|
||||
<label class="label" for="<?= $block->escapeHtmlAttr($block->getHtmlId()) ?>">
|
||||
<span><?= $block->escapeHtml($block->getStoreLabel('dob')) ?></span>
|
||||
</label>
|
||||
<div class="control customer-dob">
|
||||
<?= $block->getFieldHtml() ?>
|
||||
<?php if ($_message = $block->getAdditionalDescription()): ?>
|
||||
<div class="note"><?= $block->escapeHtml($_message) ?></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/x-magento-init">
|
||||
{
|
||||
"*": {
|
||||
"Magento_Customer/js/validation": {}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php $scriptString = <<<code
|
||||
|
||||
require([
|
||||
'jquery',
|
||||
'jquery-ui-modules/datepicker'
|
||||
], function($){
|
||||
|
||||
//<![CDATA[
|
||||
$.extend(true, $, {
|
||||
calendarConfig: {$translatedCalendarConfigJson}
|
||||
});
|
||||
//]]>
|
||||
|
||||
});
|
||||
code;
|
||||
?>
|
||||
<?= /* @noEscape */ $secureRenderer->renderTag('script', [], $scriptString, false) ?>
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
/** @var \Magento\Customer\Block\Widget\Fax $block */
|
||||
?>
|
||||
|
||||
<div class="field fax <?= $block->isRequired() ? 'required' : '' ?>">
|
||||
<label for="fax" class="label">
|
||||
<span>
|
||||
<?= $block->escapeHtml(__('Fax Number')) ?>
|
||||
</span>
|
||||
</label>
|
||||
<div class="control">
|
||||
<?php
|
||||
$_validationClass = $block->escapeHtmlAttr(
|
||||
$this->helper(\Magento\Customer\Helper\Address::class)
|
||||
->getAttributeValidationClass('fax')
|
||||
);
|
||||
?>
|
||||
<input type="text"
|
||||
name="fax"
|
||||
id="fax"
|
||||
value="<?= $block->escapeHtmlAttr($block->getFax()) ?>"
|
||||
title="<?= $block->escapeHtmlAttr(__('Fax')) ?>"
|
||||
class="input-text <?= $_validationClass ?: '' ?>"
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
/** @var \Magento\Customer\Block\Widget\Gender $block */
|
||||
?>
|
||||
<div class="field gender<?= $block->isRequired() ? ' required' : ''?>">
|
||||
<label class="label" for="<?= $block->escapeHtmlAttr($block->getFieldId('gender')) ?>"><span><?= $block->escapeHtml($block->getStoreLabel('gender')) ?></span></label>
|
||||
<div class="control">
|
||||
<select id="<?= $block->escapeHtmlAttr($block->getFieldId('gender')) ?>" name="<?= $block->escapeHtmlAttr($block->getFieldName('gender')) ?>" title="<?= $block->escapeHtmlAttr($block->getStoreLabel('gender')) ?>"<?php if ($block->isRequired()) : ?> class="validate-select" data-validate="{required:true}"<?php endif; ?>>
|
||||
<?php $options = $block->getGenderOptions(); ?>
|
||||
<?php $value = $block->getGender(); ?>
|
||||
<?php foreach ($options as $option) : ?>
|
||||
<option value="<?= $block->escapeHtmlAttr($option->getValue()) ?>"<?= ($option->getValue() == $value) ? ' selected="selected"' : '' ?>><?= $block->escapeHtml(__($option->getLabel())) ?></option>
|
||||
<?php endforeach;?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,154 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
/** @var \Magento\Customer\Block\Widget\Name $block */
|
||||
|
||||
/*
|
||||
<?= $block->getLayout()->createBlock('Magento\Customer\Block\Widget\Name')
|
||||
->setObject($block->getAddress())
|
||||
->toHtml() ?>
|
||||
|
||||
For checkout/onepage/shipping.phtml:
|
||||
|
||||
<?= $block->getLayout()->createBlock('Magento\Customer\Block\Widget\Name')
|
||||
->setObject($block->getAddress())
|
||||
->setFieldIdFormat('shipping:%s')
|
||||
->setFieldNameFormat('shipping[%s]')
|
||||
->toHtml() ?>
|
||||
*/
|
||||
|
||||
$prefix = $block->showPrefix();
|
||||
$middle = $block->showMiddlename();
|
||||
$suffix = $block->showSuffix();
|
||||
?>
|
||||
<?php if (($prefix || $middle || $suffix) && !$block->getNoWrap()): ?>
|
||||
<div class="field required fullname <?= $block->escapeHtmlAttr($block->getContainerClassName()) ?>">
|
||||
<label for="<?= $block->escapeHtmlAttr($block->getFieldId('firstname')) ?>" class="label">
|
||||
<span><?= $block->escapeHtml(__('Name')) ?></span>
|
||||
</label>
|
||||
<div class="control">
|
||||
<fieldset class="fieldset fieldset-fullname">
|
||||
<div class="fields">
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($prefix): ?>
|
||||
<div class="field field-name-prefix<?= $block->isPrefixRequired() ? ' required' : '' ?>">
|
||||
<label class="label" for="<?= $block->escapeHtmlAttr($block->getFieldId('prefix')) ?>">
|
||||
<span><?= $block->escapeHtml($block->getStoreLabel('prefix')) ?></span>
|
||||
</label>
|
||||
<div class="control">
|
||||
<?php if ($block->getPrefixOptions() === false): ?>
|
||||
<input type="text" id="<?= $block->escapeHtmlAttr($block->getFieldId('prefix')) ?>"
|
||||
name="<?= $block->escapeHtmlAttr($block->getFieldName('prefix')) ?>"
|
||||
value="<?= $block->escapeHtmlAttr($block->getObject()->getPrefix()) ?>"
|
||||
title="<?= $block->escapeHtmlAttr($block->getStoreLabel('prefix')) ?>"
|
||||
class="input-text
|
||||
<?= $block->escapeHtmlAttr($block->getAttributeValidationClass('prefix')) ?>"
|
||||
<?= $block->isPrefixRequired() ? ' data-validate="{required:true}"' : '' ?>>
|
||||
<?php else: ?>
|
||||
<select id="<?= $block->escapeHtmlAttr($block->getFieldId('prefix')) ?>"
|
||||
name="<?= $block->escapeHtmlAttr($block->getFieldName('prefix')) ?>"
|
||||
title="<?= $block->escapeHtmlAttr($block->getStoreLabel('prefix')) ?>"
|
||||
class="<?= $block->escapeHtmlAttr($block->getAttributeValidationClass('prefix')) ?>"
|
||||
<?= $block->isPrefixRequired() ? ' data-validate="{required:true}"' : '' ?> >
|
||||
<?php foreach ($block->getPrefixOptions() as $_option): ?>
|
||||
<option value="<?= $block->escapeHtmlAttr(__($_option)) ?>"
|
||||
<?php if ($block->getObject()->getPrefix() == $_option): ?>
|
||||
selected="selected"<?php endif; ?>>
|
||||
<?= $block->escapeHtml(__($_option)) ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="field field-name-firstname required">
|
||||
<label class="label" for="<?= $block->escapeHtmlAttr($block->getFieldId('firstname')) ?>">
|
||||
<span><?= $block->escapeHtml($block->getStoreLabel('firstname')) ?></span>
|
||||
</label>
|
||||
<div class="control">
|
||||
<input type="text" id="<?= $block->escapeHtmlAttr($block->getFieldId('firstname')) ?>"
|
||||
name="<?= $block->escapeHtmlAttr($block->getFieldName('firstname')) ?>"
|
||||
value="<?= $block->escapeHtmlAttr($block->getObject()->getFirstname()) ?>"
|
||||
title="<?= $block->escapeHtmlAttr($block->getStoreLabel('firstname')) ?>"
|
||||
class="input-text
|
||||
<?= $block->escapeHtmlAttr($block->getAttributeValidationClass('firstname')) ?>"
|
||||
<?= ($block->getAttributeValidationClass('firstname') == 'required-entry') ? '
|
||||
data-validate="{required:true}"' : '' ?>>
|
||||
</div>
|
||||
</div>
|
||||
<?php if ($middle): ?>
|
||||
<?php $isMiddlenameRequired = $block->isMiddlenameRequired(); ?>
|
||||
<div class="field field-name-middlename<?= $isMiddlenameRequired ? ' required' : '' ?>">
|
||||
<label class="label" for="<?= $block->escapeHtmlAttr($block->getFieldId('middlename')) ?>">
|
||||
<span><?= $block->escapeHtml($block->getStoreLabel('middlename')) ?></span>
|
||||
</label>
|
||||
<div class="control">
|
||||
<input type="text" id="<?= $block->escapeHtmlAttr($block->getFieldId('middlename')) ?>"
|
||||
name="<?= $block->escapeHtmlAttr($block->getFieldName('middlename')) ?>"
|
||||
value="<?= $block->escapeHtmlAttr($block->getObject()->getMiddlename()) ?>"
|
||||
title="<?= $block->escapeHtmlAttr($block->getStoreLabel('middlename')) ?>"
|
||||
class="input-text
|
||||
<?= $block->escapeHtmlAttr($block->getAttributeValidationClass('middlename')) ?>"
|
||||
<?= $isMiddlenameRequired ? ' data-validate="{required:true}"' : '' ?>>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="field field-name-lastname required">
|
||||
<label class="label" for="<?= $block->escapeHtmlAttr($block->getFieldId('lastname')) ?>">
|
||||
<span><?= $block->escapeHtml($block->getStoreLabel('lastname')) ?></span>
|
||||
</label>
|
||||
<div class="control">
|
||||
<input type="text" id="<?= $block->escapeHtmlAttr($block->getFieldId('lastname')) ?>"
|
||||
name="<?= $block->escapeHtmlAttr($block->getFieldName('lastname')) ?>"
|
||||
value="<?= $block->escapeHtmlAttr($block->getObject()->getLastname()) ?>"
|
||||
title="<?= $block->escapeHtmlAttr($block->getStoreLabel('lastname')) ?>"
|
||||
class="input-text
|
||||
<?= $block->escapeHtmlAttr($block->getAttributeValidationClass('lastname')) ?>"
|
||||
<?= ($block->getAttributeValidationClass('lastname') == 'required-entry') ? '
|
||||
data-validate="{required:true}"' : '' ?>>
|
||||
</div>
|
||||
</div>
|
||||
<?php if ($suffix): ?>
|
||||
<div class="field field-name-suffix<?= $block->isSuffixRequired() ? ' required' : '' ?>">
|
||||
<label class="label" for="<?= $block->escapeHtmlAttr($block->getFieldId('suffix')) ?>">
|
||||
<span><?= $block->escapeHtml($block->getStoreLabel('suffix')) ?></span>
|
||||
</label>
|
||||
<div class="control">
|
||||
<?php if ($block->getSuffixOptions() === false): ?>
|
||||
<input type="text" id="<?= $block->escapeHtmlAttr($block->getFieldId('suffix')) ?>"
|
||||
name="<?= $block->escapeHtmlAttr($block->getFieldName('suffix')) ?>"
|
||||
value="<?= $block->escapeHtmlAttr($block->getObject()->getSuffix()) ?>"
|
||||
title="<?= $block->escapeHtmlAttr($block->getStoreLabel('suffix')) ?>"
|
||||
class="input-text
|
||||
<?= $block->escapeHtmlAttr($block->getAttributeValidationClass('suffix')) ?>"
|
||||
<?= $block->isSuffixRequired() ? ' data-validate="{required:true}"' : '' ?>>
|
||||
<?php else: ?>
|
||||
<select id="<?= $block->escapeHtmlAttr($block->getFieldId('suffix')) ?>"
|
||||
name="<?= $block->escapeHtmlAttr($block->getFieldName('suffix')) ?>"
|
||||
title="<?= $block->escapeHtmlAttr($block->getStoreLabel('suffix')) ?>"
|
||||
class="<?= $block->escapeHtmlAttr($block->getAttributeValidationClass('suffix')) ?>"
|
||||
<?= $block->isSuffixRequired() ? ' data-validate="{required:true}"' : '' ?>>
|
||||
<?php foreach ($block->getSuffixOptions() as $_option): ?>
|
||||
<option value="<?= $block->escapeHtmlAttr(__($_option)) ?>"
|
||||
<?php if ($block->getObject()->getSuffix() == $_option): ?>
|
||||
selected="selected"<?php endif; ?>>
|
||||
<?= $block->escapeHtml(__($_option)) ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (($prefix || $middle || $suffix) && !$block->getNoWrap()): ?>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
/** @var \Magento\Customer\Block\Widget\Taxvat $block */
|
||||
?>
|
||||
<div class="field taxvat<?= $block->isRequired() ? ' required' : ''; ?>">
|
||||
<label class="label" for="<?= $block->escapeHtmlAttr($block->getFieldId('taxvat')) ?>"><span><?= $block->escapeHtml($block->getStoreLabel('taxvat')) ?></span></label>
|
||||
<div class="control">
|
||||
<input type="text" id="<?= $block->escapeHtmlAttr($block->getFieldId('taxvat')) ?>" name="<?= $block->escapeHtmlAttr($block->getFieldName('taxvat')) ?>" value="<?= $block->escapeHtmlAttr($block->getTaxvat()) ?>" title="<?= $block->escapeHtmlAttr($block->getStoreLabel('taxvat')) ?>" class="input-text <?= $block->escapeHtmlAttr($this->helper(\Magento\Customer\Helper\Address::class)->getAttributeValidationClass('taxvat')) ?>" <?= $block->isRequired() ? ' data-validate="{required:true}"' : '' ?>>
|
||||
</div>
|
||||
</div>
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
/** @var \Magento\Customer\Block\Widget\Telephone $block */
|
||||
?>
|
||||
|
||||
<div class="field telephone <?= $block->isRequired() ? 'required' : '' ?>">
|
||||
<label for="telephone" class="label">
|
||||
<span>
|
||||
<?= $block->escapeHtml(__('Phone Number')) ?>
|
||||
</span>
|
||||
</label>
|
||||
<div class="control">
|
||||
<input type="tel"
|
||||
name="telephone"
|
||||
id="telephone"
|
||||
value="<?= $block->escapeHtmlAttr($block->getTelephone()) ?>"
|
||||
title="<?= $block->escapeHtmlAttr(__('Phone Number')) ?>"
|
||||
class="input-text <?= $block->escapeHtmlAttr(
|
||||
$block->getAttributeValidationClass('telephone')
|
||||
) ?>"
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
+987
@@ -0,0 +1,987 @@
|
||||
// /**
|
||||
// * Copyright © Magento, Inc. All rights reserved.
|
||||
// * See COPYING.txt for license details.
|
||||
// */
|
||||
|
||||
//
|
||||
// Variables
|
||||
// _____________________________________________
|
||||
|
||||
@account-nav-background: @sidebar__background-color;
|
||||
@account-nav-color: false;
|
||||
|
||||
@account-nav-current-border: 3px solid transparent;
|
||||
@account-nav-current-border-color: @color-orange-red1;
|
||||
@account-nav-current-color: false;
|
||||
@account-nav-current-font-weight: @font-weight__semibold;
|
||||
|
||||
@account-nav-delimiter__border-color: @color-gray82;
|
||||
|
||||
@account-nav-item-hover: @color-gray91;
|
||||
|
||||
@_password-default: @color-gray-light01;
|
||||
@_password-weak: #ffafae;
|
||||
@_password-medium: #ffd6b3;
|
||||
@_password-strong: #c5eeac;
|
||||
@_password-very-strong: #81b562;
|
||||
|
||||
@ox-forms-wrapper__padding:55px;
|
||||
@ox-forms-wrapper__padding-s:45px;
|
||||
@ox-forms__width-desktop:920px;
|
||||
@ox-forms__width-mobile:500px;
|
||||
@ox-forms-wrapper__margin:60px;
|
||||
//
|
||||
// Common
|
||||
// _____________________________________________
|
||||
|
||||
& when (@media-common = true) {
|
||||
.multishipping-checkout-login,
|
||||
.customer-account-create,
|
||||
.multishipping-checkout-register,
|
||||
.customer-account-forgotpassword,
|
||||
.customer-account-login{
|
||||
.page-main{
|
||||
background: #efefef;
|
||||
max-width:100%;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
}
|
||||
.page.messages{
|
||||
max-width: @ox-forms__width-desktop;
|
||||
margin: auto;
|
||||
}
|
||||
}
|
||||
/* login buttons */
|
||||
.block {
|
||||
&-customer-login{
|
||||
.actions-toolbar{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex-flow: wrap;
|
||||
}
|
||||
}
|
||||
}
|
||||
.account{
|
||||
.table:not(.cart):not(.totals) > thead > tr > th{
|
||||
border:none;
|
||||
}
|
||||
.data.table {
|
||||
margin-bottom: 0;
|
||||
.col {
|
||||
&.actions {
|
||||
white-space: nowrap;
|
||||
}
|
||||
padding: 26px 14px;
|
||||
vertical-align: middle;
|
||||
width: auto;
|
||||
&:first-child{
|
||||
padding-left: 32px;
|
||||
}
|
||||
&:last-child{
|
||||
padding-right: 32px;
|
||||
}
|
||||
.action{
|
||||
border-bottom: 2px solid;
|
||||
font-weight: @font-weight__bold;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
}
|
||||
thead{
|
||||
background: #f8f8f8;
|
||||
text-transform: uppercase;
|
||||
line-height: 1;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
/*.inputs-style--underlined{
|
||||
.login-container {
|
||||
input{
|
||||
.ox-input-simple-underlined();
|
||||
}
|
||||
}
|
||||
}*/
|
||||
.block-customer-login,
|
||||
.block-new-customer{
|
||||
.block-title {
|
||||
.lib-heading(h2);
|
||||
.at-headings();
|
||||
}
|
||||
}
|
||||
.login-container {
|
||||
display: flex;
|
||||
|
||||
max-width: (@ox-forms__width-desktop / 2);
|
||||
margin: 100px auto;
|
||||
flex-flow: column;
|
||||
|
||||
box-shadow: 0px 15px 70px -8px rgba(0, 0, 0, 0.11);
|
||||
background: #ffffff;
|
||||
.block-title {
|
||||
.lib-heading(h2);
|
||||
.at-headings();
|
||||
|
||||
}
|
||||
.block-customer-login {
|
||||
.block-title {
|
||||
margin-bottom: 32px;
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
.block {
|
||||
width:100%;
|
||||
padding: @ox-forms-wrapper__padding;
|
||||
margin-bottom:0;
|
||||
display: flex;
|
||||
flex-flow: wrap;
|
||||
align-self: stretch;
|
||||
align-content: center;
|
||||
.action.primary{
|
||||
padding: @button__padding__b;
|
||||
min-width: 150px;
|
||||
}
|
||||
.secondary > a.action{
|
||||
background: none;
|
||||
color: #000;
|
||||
padding: 5px 7px;
|
||||
font-size:12px;
|
||||
margin-bottom: 10px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
}
|
||||
.field:not(.choice){
|
||||
input{
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
}
|
||||
.fieldset {
|
||||
.field.note{
|
||||
display:none;
|
||||
}
|
||||
> .field.choice:before, .fieldset > .field.no-label:before{
|
||||
content:none;
|
||||
}
|
||||
> .field:not(.choice) > .label{
|
||||
font-weight: @font-weight__black;
|
||||
text-transform: uppercase;
|
||||
font-size: 13px;
|
||||
float: none;
|
||||
width: auto;
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
}
|
||||
.block {
|
||||
&-customer-login{
|
||||
.block-title {
|
||||
margin-bottom: 32px;
|
||||
margin-top: 0;
|
||||
}
|
||||
.secondary > a.action{
|
||||
background: none;
|
||||
color: #000;
|
||||
padding: 5px 7px;
|
||||
font-size:12px;
|
||||
margin-bottom: 10px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
}
|
||||
&-new-customer {
|
||||
background: #f8f8f8;
|
||||
text-align: center;
|
||||
flex-flow: wrap;
|
||||
justify-content: center;
|
||||
.actions-toolbar {
|
||||
margin-top: 25px;
|
||||
}
|
||||
.block-title {
|
||||
strong{
|
||||
.lib-font-size(24);
|
||||
}
|
||||
}
|
||||
}
|
||||
&-content{
|
||||
width:100%;
|
||||
}
|
||||
}
|
||||
.block-addresses-list {
|
||||
.items.addresses {
|
||||
> .item {
|
||||
margin-bottom: @indent__base;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.form-address-edit {
|
||||
#region_id {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.actions-toolbar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
.action.primary {
|
||||
font-size: 1.6rem;
|
||||
padding: @button__padding__b;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.form-edit-account {
|
||||
.fieldset.password {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.box-billing-address,
|
||||
.box-shipping-address,
|
||||
.box-information,
|
||||
.box-newsletter {
|
||||
.box-content {
|
||||
line-height: 26px;
|
||||
}
|
||||
}
|
||||
|
||||
// Full name fieldset
|
||||
.fieldset {
|
||||
.fullname {
|
||||
&.field {
|
||||
> .label {
|
||||
&:extend(.abs-visually-hidden all);
|
||||
|
||||
+ .control {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.field {
|
||||
&:extend(.abs-add-clearfix all);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// My account
|
||||
// ---------------------------------------------
|
||||
|
||||
.account {
|
||||
.page-title-wrapper {
|
||||
.page-title {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
&.inputs-style--underlined{
|
||||
.toolbar .limiter-options{
|
||||
padding: 0 35px 0 10px;
|
||||
}
|
||||
}
|
||||
.column.main {
|
||||
h2 {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.toolbar {
|
||||
&:extend(.abs-pager-toolbar all);
|
||||
.limiter-options {
|
||||
width: auto;
|
||||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
}
|
||||
.form-edit-account{
|
||||
.field.password-info{
|
||||
margin-bottom:40px;
|
||||
}
|
||||
.fieldset.password{
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
}
|
||||
.fieldset:not(:last-of-type){
|
||||
margin-bottom:60px;
|
||||
}
|
||||
.actions-toolbar{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
.action.primary {
|
||||
font-size: 1.6rem;
|
||||
padding: @button__padding__b;
|
||||
}
|
||||
}
|
||||
.limiter {
|
||||
>.label {
|
||||
&:extend(.abs-visually-hidden all);
|
||||
}
|
||||
}
|
||||
|
||||
.block:not(.widget) {
|
||||
&:extend(.abs-account-blocks all);
|
||||
}
|
||||
.block-dashboard-addresses,
|
||||
.block-dashboard-info{
|
||||
padding: 40px;
|
||||
background: #f8f8f8;
|
||||
.block-title{
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
strong{
|
||||
font-size: 2.5rem !important;
|
||||
text-decoration: underline;
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
.action{
|
||||
color: #ce2127;
|
||||
border-bottom: 0 none !important;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.box-actions{
|
||||
margin-top: 15px;
|
||||
.action{
|
||||
padding: 5px 9px;
|
||||
background: #000;
|
||||
color: #fff;
|
||||
font-weight: @font-weight__bold;
|
||||
font-size: 14px;
|
||||
display: inline-block;
|
||||
margin-right: 5px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
}
|
||||
.box-content{
|
||||
margin: 10px 0;
|
||||
address{
|
||||
min-height: 40px;
|
||||
}
|
||||
}
|
||||
.table-wrapper {
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.action {
|
||||
margin-right: 15px;
|
||||
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.table-return-items {
|
||||
.qty {
|
||||
.input-text {
|
||||
&:extend(.abs-input-qty all);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Checkout address (create shipping address)
|
||||
.field.street {
|
||||
.field {
|
||||
.label {
|
||||
&:extend(.abs-visually-hidden all);
|
||||
position:absolute!important;
|
||||
}
|
||||
}
|
||||
}
|
||||
.fieldset.login{
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
//
|
||||
// Account navigation
|
||||
// ---------------------------------------------
|
||||
.sidebar-nobg{
|
||||
.account-nav {
|
||||
.content {
|
||||
padding: 0;
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
.title label{
|
||||
font-size: 16px;
|
||||
font-weight: @font-weight__bold;
|
||||
}
|
||||
.item {
|
||||
margin-left: -6px;
|
||||
|
||||
a,
|
||||
> strong {
|
||||
font-size: 16px;
|
||||
font-weight: @font-weight__bold;
|
||||
}
|
||||
.delimiter {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
border-color: rgb(228, 228, 228);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.account-nav {
|
||||
.title {
|
||||
display:none;
|
||||
padding: 10px;
|
||||
background: #f8f8f8;
|
||||
label{
|
||||
font-weight: @font-weight__black;
|
||||
text-transform: uppercase;
|
||||
color: #000;
|
||||
font-size: 14px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
margin: 0;
|
||||
border: 0;
|
||||
padding: 20px;
|
||||
border-top: 6px solid #ffe51e;
|
||||
background-color: #f8f8f8;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.item {
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
a,
|
||||
> strong {
|
||||
background-color: transparent;
|
||||
color: #000000;
|
||||
font-size: 14px;
|
||||
font-weight: @font-weight__black;
|
||||
margin: 0 0 2px 0;
|
||||
padding: 7px;
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0;
|
||||
box-sizing: border-box;
|
||||
display: inline-block;
|
||||
line-height:1;
|
||||
}
|
||||
|
||||
a {
|
||||
&:hover {
|
||||
background-color: #000000;
|
||||
color:#ffffff;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
&.current {
|
||||
a,
|
||||
strong {
|
||||
background-color: #000000;
|
||||
color:#ffffff;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
.delimiter {
|
||||
border-top: 1px solid @account-nav-delimiter__border-color;
|
||||
display: block;
|
||||
margin: 20px 7px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Password Strength Meter
|
||||
// ---------------------------------------------
|
||||
|
||||
.field.password {
|
||||
.control {
|
||||
.lib-vendor-prefix-display();
|
||||
.lib-vendor-prefix-flex-direction();
|
||||
|
||||
.mage-error {
|
||||
.lib-vendor-prefix-order(2);
|
||||
}
|
||||
|
||||
.input-text {
|
||||
.lib-vendor-prefix-order(0);
|
||||
z-index: 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.password-strength-meter {
|
||||
background-color: @_password-default;
|
||||
height: 100%;
|
||||
min-height: 38px;
|
||||
line-height: 1.6;
|
||||
padding: 7px 11px;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
|
||||
&:before {
|
||||
content: '';
|
||||
height: 100%;
|
||||
left: 0;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
.password-none & {
|
||||
&:before {
|
||||
background-color: @_password-default;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.password-weak & {
|
||||
&:before {
|
||||
background-color: @_password-weak;
|
||||
width: 25%;
|
||||
}
|
||||
}
|
||||
|
||||
.password-medium & {
|
||||
&:before {
|
||||
background-color: @_password-medium;
|
||||
width: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
.password-strong & {
|
||||
&:before {
|
||||
background-color: @_password-strong;
|
||||
width: 75%;
|
||||
}
|
||||
}
|
||||
|
||||
.password-very-strong & {
|
||||
&:before {
|
||||
background-color: @_password-very-strong;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
.captcha-reload{
|
||||
background: transparent;
|
||||
padding: 8px 10px;
|
||||
}
|
||||
.control.captcha-image {
|
||||
.lib-css(margin-top, 20px);
|
||||
|
||||
.captcha-img {
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
|
||||
.form.password.reset,
|
||||
.form.send.confirmation,
|
||||
.form.password.forget{
|
||||
.actions-toolbar{
|
||||
> .secondary{
|
||||
text-align: center;
|
||||
background: #000000;
|
||||
padding: 30px;
|
||||
margin: @ox-forms-wrapper__padding -@ox-forms-wrapper__padding -@ox-forms-wrapper__padding;
|
||||
}
|
||||
}
|
||||
}
|
||||
.form.password.reset,
|
||||
.form.send.confirmation,
|
||||
.form.password.forget,
|
||||
.form.create.account{
|
||||
background:#fff;
|
||||
max-width: @ox-forms__width-mobile;
|
||||
margin: @ox-forms-wrapper__margin auto;
|
||||
width: 100%;
|
||||
padding: @ox-forms-wrapper__padding;
|
||||
box-shadow: 0px 15px 70px -8px rgba(0, 0, 0, 0.11);
|
||||
.field.note{
|
||||
font-size: 26px;
|
||||
font-weight: @font-weight__bold;
|
||||
line-height: 1.1;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
.fieldset > .field > .control{
|
||||
width: 100%;
|
||||
}
|
||||
.fieldset > .field:not(.choice) > .label{
|
||||
font-weight: @font-weight__black;
|
||||
text-transform: uppercase;
|
||||
font-size: 13px;
|
||||
float: none;
|
||||
width: auto;
|
||||
text-align: left;
|
||||
}
|
||||
.actions-toolbar{
|
||||
.action.primary{
|
||||
padding: @button__padding__b;
|
||||
width:100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
.multishipping-checkout-register,
|
||||
.customer-account-create{
|
||||
.page-title-wrapper{
|
||||
text-align:center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Mobile
|
||||
// _____________________________________________
|
||||
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__xs) {
|
||||
.form.password.reset,
|
||||
.form.send.confirmation,
|
||||
.form.password.forget,
|
||||
.form.create.account,
|
||||
.login-container .block{
|
||||
padding: 35px 25px;
|
||||
}
|
||||
.form.password.reset,
|
||||
.form.send.confirmation,
|
||||
.form.password.forget,
|
||||
.form.create.account{
|
||||
.actions-toolbar{
|
||||
> .secondary{
|
||||
margin: 35px -25px -35px -25px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__s) {
|
||||
.block-customer-login,
|
||||
.block-new-customer{
|
||||
.block-title {
|
||||
line-height: 0.8;
|
||||
}
|
||||
}
|
||||
.account {
|
||||
.column.main,
|
||||
.sidebar-additional {
|
||||
margin: 0;
|
||||
}
|
||||
.column.main{
|
||||
.block-dashboard-addresses,
|
||||
.block-dashboard-info{
|
||||
padding: 25px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.form.password.reset,
|
||||
.form.send.confirmation,
|
||||
.form.password.forget,
|
||||
.form.create.account{
|
||||
margin: 0 auto;
|
||||
padding: @ox-forms-wrapper__padding-s;
|
||||
}
|
||||
.form.password.reset,
|
||||
.form.send.confirmation,
|
||||
.form.password.forget,
|
||||
.form.create.account{
|
||||
.actions-toolbar{
|
||||
> .secondary{
|
||||
padding: 15px;
|
||||
margin: @ox-forms-wrapper__padding-s -@ox-forms-wrapper__padding-s -@ox-forms-wrapper__padding-s;
|
||||
}
|
||||
}
|
||||
}
|
||||
.login-container {
|
||||
margin: 0 auto;
|
||||
.block{
|
||||
padding: @ox-forms-wrapper__padding-s;
|
||||
}
|
||||
.block .action.primary{
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
.block-customer-login {
|
||||
.actions-toolbar{
|
||||
text-align: center;
|
||||
display: block;
|
||||
}
|
||||
&.block .action.primary{
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) {
|
||||
.sidebar-nobg{
|
||||
.account-nav {
|
||||
&.collapsible-nav{
|
||||
.content{
|
||||
padding: 20px;
|
||||
background-color: #f8f8f8;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.account-nav {
|
||||
.title {
|
||||
display:none;
|
||||
}
|
||||
&.collapsible-nav{
|
||||
|
||||
.title {
|
||||
display:block;
|
||||
&.active{
|
||||
.hamburger-menu-icon-small span{
|
||||
&:nth-child(1){
|
||||
transform: rotate(-45deg);
|
||||
top: 5px;
|
||||
}
|
||||
&:nth-child(2){
|
||||
transform: rotate(45deg);
|
||||
top: 3px;
|
||||
}
|
||||
&:nth-child(3){
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.content {
|
||||
display: none;
|
||||
|
||||
&.active {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
.toggle-mobile-nav{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 10px;
|
||||
position: relative;
|
||||
}
|
||||
.hamburger-menu-icon-small{
|
||||
width: 22px;
|
||||
height: 14px;
|
||||
span{
|
||||
height: 2px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.form.create.account{
|
||||
margin: 20px auto;
|
||||
.actions-toolbar{
|
||||
> .secondary{
|
||||
text-align: center;
|
||||
background: #000000;
|
||||
padding: 30px;
|
||||
margin: @ox-forms-wrapper__padding -@ox-forms-wrapper__padding -@ox-forms-wrapper__padding;
|
||||
}
|
||||
}
|
||||
}
|
||||
.login-container {
|
||||
.fieldset {
|
||||
&:after {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.account {
|
||||
.columns {
|
||||
.sidebar-main{
|
||||
order: 0;
|
||||
margin-top:0;
|
||||
}
|
||||
.sidebar-additional{
|
||||
margin-top:60px;
|
||||
}
|
||||
}
|
||||
|
||||
.column.main {
|
||||
.toolbar {
|
||||
&:extend(.abs-pager-toolbar-mobile all);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.control.captcha-image {
|
||||
.captcha-img {
|
||||
.lib-css(margin-bottom, @indent__s);
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.customer-account-index {
|
||||
.page-title-wrapper {
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Desktop
|
||||
// _____________________________________________
|
||||
|
||||
.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
|
||||
.multishipping-checkout-register{
|
||||
.form.create.account{
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
.fieldset.address{
|
||||
order: 1;
|
||||
width: 100%;
|
||||
}
|
||||
.actions-toolbar{
|
||||
order: 2;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
.login-container {
|
||||
&:extend(.abs-add-clearfix-desktop all);
|
||||
max-width: @ox-forms__width-desktop;
|
||||
flex-flow: row;
|
||||
.block {
|
||||
width:50%;
|
||||
&.login {
|
||||
.actions-toolbar {
|
||||
> .primary {
|
||||
margin-bottom: 0;
|
||||
margin-right: @indent__l;
|
||||
}
|
||||
|
||||
> .secondary {
|
||||
float: left;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.fieldset {
|
||||
> .field {
|
||||
> .control {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.form.create.account {
|
||||
max-width: @ox-forms__width-desktop;
|
||||
margin: 0 auto;
|
||||
> .fieldset{
|
||||
width: 50%;
|
||||
display: inline-block;
|
||||
float: left;
|
||||
&.info{
|
||||
padding-right: 25px;
|
||||
}
|
||||
&.account{
|
||||
padding-left: 25px;
|
||||
}
|
||||
}
|
||||
.actions-toolbar{
|
||||
.lib-clearfix();
|
||||
width:100%;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
.action.primary{
|
||||
padding: @button__padding__b;
|
||||
width:100%;
|
||||
}
|
||||
> .secondary{
|
||||
width: 50%;
|
||||
padding-right: 25px;
|
||||
.action{
|
||||
padding: @button__padding__b;
|
||||
width:100%;
|
||||
}
|
||||
}
|
||||
> .primary{
|
||||
order: 1;
|
||||
width: 50%;
|
||||
padding-left: 25px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//
|
||||
// My account
|
||||
// ---------------------------------------------
|
||||
|
||||
.account {
|
||||
.data.table{
|
||||
tr:first-child{
|
||||
.col {
|
||||
border-top:none;
|
||||
}
|
||||
}
|
||||
.col {
|
||||
border-top: 1px solid @table__border-color;
|
||||
}
|
||||
}
|
||||
.column.main {
|
||||
.block:not(.widget) {
|
||||
.block-content {
|
||||
&:extend(.abs-add-clearfix-desktop all);
|
||||
|
||||
.box {
|
||||
&:extend(.abs-blocks-2columns all);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.block-addresses-list {
|
||||
.items.addresses {
|
||||
&:extend(.abs-add-clearfix-desktop all);
|
||||
font-size: 0;
|
||||
|
||||
> .item {
|
||||
display: inline-block;
|
||||
font-size: @font-size__base;
|
||||
margin-bottom: @indent__base;
|
||||
vertical-align: top;
|
||||
width: 48.8%;
|
||||
|
||||
&:nth-last-child(1),
|
||||
&:nth-last-child(2) {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
&:nth-child(even) {
|
||||
margin-left: 2.4%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Welcome block
|
||||
// ---------------------------------------------
|
||||
|
||||
.dashboard-welcome-toggler {
|
||||
&:extend(.abs-visually-hidden-desktop all);
|
||||
}
|
||||
|
||||
.control.captcha-image {
|
||||
.captcha-img {
|
||||
margin: 0 10px 10px 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
define([
|
||||
'jquery',
|
||||
'mage/mage'
|
||||
], function ($) {
|
||||
'use strict';
|
||||
|
||||
return function (config) {
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user