![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/app/code/Cnc/Customer/view/frontend/templates/form/ |
<?php /** * Copyright (c) 2020 Kaliop Digital Commerce (https://digitalcommerce.kaliop.com) All Rights Reserved. * https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) * Cnc * Radosław Stępień <[email protected]> <[email protected]> */ use Magento\Customer\Block\Form\Edit; /** @var Edit $block */ $fieldType = $block->getFieldType(); $attributeCode = $block->getFieldCode(); $fieldLabel = $block->getFieldLabel(); $validation = $block->getValidationRules(); $customer = $block->getCustomer(); ?> <label for=" <?=$block->escapeHtml($attributeCode) ?>_new"> <?= $block->escapeHtml(__($fieldLabel))?> </label> <div id="<?=$block->escapeHtml($attributeCode) ?>"> <span> <?= $block->escapeHtml($customer->getCustomAttribute($attributeCode) ? $customer->getCustomAttribute($attributeCode)->getValue() : ''); ?> </span> </div> <div class="field choice"> <input type="checkbox" name="<?= $block->escapeHtml($attributeCode);?>_edit" id=" <?= $block->escapeHtml($attributeCode);?>_edit" data-role="change-<?= $block->escapeHtml(str_replace('_', '-', $attributeCode))?>" value="1" title="<?= $block->escapeHtmlAttr(__('Change')) ?>" class="checkbox" /> <label class="label" for=" <?= $block->escapeHtml($attributeCode);?>_edit"> <span class="label-change"><?= $block->escapeHtml(__('Change')) ?></span> <span class="label-cancel"><?= $block->escapeHtml(__('Cancel')) ?></span> </label> </div> <div class="field-contact-input" data-container="<?= $block->escapeHtml(str_replace('_', '-', $attributeCode))?>" style="display:none"> <div class="control"> <input type="<?= $fieldType == 'email' ? 'email' : 'tel';?>" name="<?= $block->escapeHtml($attributeCode);?>" id="<?= $block->escapeHtml($attributeCode);?>" autocomplete="<?= $fieldType == 'email' ? 'email' : 'telephone';?>" data-input="<?= $block->escapeHtml(str_replace('_', '-', $attributeCode))?>-new" value="<?= $block->escapeHtmlAttr($customer ->getCustomAttribute($attributeCode) ? $customer ->getCustomAttribute($attributeCode) ->getValue() : '') ?>" title="<?= $block->escapeHtmlAttr(__($fieldLabel)) ?>" class="input-text" data-validate="<?= $block->escapeHtml($validation)?>" /> </div> </div>