<?php /** @var $this \Ardaenye\View\ViewRenderer */ ?>
<?php /** @var $element \Ardaenye\Form\Element\AbstractElement */ ?>

<div class='form-row'>
    <div class='table'>
        <div class='label'>
            <label><?= $element->getLabel() ?></label>
        </div>
        <div class='form-element'>
            <?= $element ?>
        </div>

        <?php if ($element->hasAttribute('description')): ?>
            <div class='form-info'>
                <?= $element->getAttribute('description') ?>
            </div>
        <?php endif ?>
    </div>
</div>