<?php
$dataTypeName = (strpos('resource', $dataType->getName()) !== false) ? 'resource' : $dataType->getName();
?>
<fieldset class="value-annotation inputs">
    <legend class="value-annotation-heading"></legend>
    <span class="required-tag"><?php echo $this->translate('Required'); ?></span>
    <div class="value" data-data-type="<?php echo $dataTypeName; ?>" data-data-type-label="<?php echo $dataType->getLabel(); ?>" data-data-type-icon="" role="group">
        <?php echo $dataType->valueAnnotationForm($this); ?>
        <div class="input-footer">
            <span class="restore-value"><?php echo $this->translate('Value to be removed'); ?></span>
            <ul class="actions">
                <li><?php echo $this->hyperlink('', '#', ['class' => 'o-icon-delete value-annotation-remove', 'title' => $this->translate('Remove value'), 'aria-label' => $this->translate('Remove value')]); ?></li>
                <li><?php echo $this->hyperlink('', '#', ['class' => 'o-icon-undo value-annotation-restore', 'title' => $this->translate('Restore value'), 'aria-label' => $this->translate('Restore value'), 'style' => 'display: none;']); ?></li>
                <li><?php echo $this->hyperlink('', '#', ['class' => 'o-icon-public value-annotation-visibility', 'title' => $this->translate('Make private'), 'aria-label' => $this->translate('Make private')]); ?></li>
            </ul>
            <input type="hidden" class="is_public" data-value-key="is_public">
            <input type="hidden" class="data_type" data-value-key="type" value="<?php echo $this->escapeHtml($dataType->getName()); ?>">
            <input type="hidden" class="property_id" data-value-key="property_id">
            <input type="hidden" class="property_term" data-value-key="property_term">
        </div>
    </div>
</fieldset>
