<?php
/**
 * Copyright © 2016 maijindou.com All rights reserved.
 * See COPYING.txt for license details.
 */

// @codingStandardsIgnoreFile

?>
<?php
$_element = $block->getElement();
$_note = $_element->getNote();
$_class = $_element->getFieldsetHtmlClass();
$_validateButton = $block->getValidateButton();
?>
<?php if (!$_element->getNoDisplay()): ?>
<div class="admin__field field-vat-number">
    <?php if ($_element->getType() == 'hidden'): ?>
    <div class="hidden"><?php echo $_element->getElementHtml(); ?></div>
    <?php else: ?>
    <?php echo $_element->getLabelHtml(); ?>
    <div class="admin__field-control <?php /* @escapeNotVerified */ echo $_element->hasValueClass() ? $_element->getValueClass() : 'value'; ?><?php echo $_class ? " {$_class}-value" : ''; ?>">
        <?php echo $_element->getElementHtml(); ?>
        <?php if ($_note): ?>
            <div class="admin__field-note<?php echo $_class ? " {$_class}-note" : ''; ?>" id="note_<?php /* @escapeNotVerified */ echo $_element->getId(); ?>">
                <span><?php /* @escapeNotVerified */ echo $_note; ?></span>
            </div>
        <?php endif; ?>
        <div class="actions">
            <?php echo $_validateButton->toHtml(); ?>
        </div>
    </div>
    <?php endif; ?>
</div>
<?php endif; ?>
