Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions view/frontend/templates/experius/customer/address/edit.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<?php echo $block->getNameBlockHtml() ?>
<?php if ($this->helper('Experius\AddressLines\Helper\Data')->isUsedInForm('company')): ?>
<?php $attributeValidationClass = $this->helper('Magento\Customer\Helper\Address')->getAttributeValidationClass('company'); ?>
<div class="field company<?php echo (strpos($attributeValidationClass, 'required-entry')) ? ' required' : '' ?>">
<div class="field company<?php echo ((strpos($attributeValidationClass, 'required-entry')) !== false) ? ' required' : '' ?>">
<label class="label" for="company"><span><?php /* @escapeNotVerified */ echo __('Company') ?></span></label>
<div class="control">
<input type="text" name="company" id="company" title="<?php /* @escapeNotVerified */ echo __('Company') ?>" value="<?php echo $block->escapeHtml($block->getAddress()->getCompany()) ?>" class="input-text <?php /* @escapeNotVerified */ echo $attributeValidationClass ?>"/>
Expand All @@ -32,7 +32,7 @@
<?php endif; ?>
<?php if ($this->helper('Experius\AddressLines\Helper\Data')->isUsedInForm('telephone')): ?>
<?php $attributeValidationClass = $this->helper('Magento\Customer\Helper\Address')->getAttributeValidationClass('telephone'); ?>
<div class="field telephone<?php echo (strpos($attributeValidationClass, 'required-entry')) ? ' required' : '' ?>">
<div class="field telephone<?php echo ((strpos($attributeValidationClass, 'required-entry')) !== false) ? ' required' : '' ?>">
<label class="label" for="telephone"><span><?php /* @escapeNotVerified */ echo __('Phone Number') ?></span></label>
<div class="control">
<input type="text" name="telephone" value="<?php echo $block->escapeHtml($block->getAddress()->getTelephone()) ?>" title="<?php /* @escapeNotVerified */ echo __('Phone Number') ?>" class="input-text <?php /* @escapeNotVerified */ echo $attributeValidationClass ?>" id="telephone"/>
Expand Down