<?php
// Copyright 1999-2026. WebPros International GmbH. All rights reserved.
?>
<div id="<?php echo $this->element->getId();?>">
    <div class="dynamicSubFormTemplate" style="display: none;">
        <div class='form-row'>
            <div class='field-name'>
                <?php echo $this->elementPart($this->element)->label(); ?>
            </div>
            <div class='field-value'>
                <div class="text-value">
                    <input type="hidden" name="<?php echo $this->element->getFullyQualifiedName() ?>[]" value="">
                    <span class="webContentPath"></span>
                    <span class="buttonRemoveItem"></span>
                </div>
                <span class="field-errors" style="display: none;"></span>
            </div>
        </div>
    </div>
    <div class="form-row">
        <div class="field-name"></div>
        <div class="field-value">
            <div id="<?php echo $this->element->getId();?>-buttonAddItem" class="text-value"></div>
        </div>
    </div>
</div>
<?= $this->requireJs('app/backup/web-content-dynamic', [
    'applyTo' => $this->element->getId(),
    'dataUrl' => $this->dataUrl,
]) ?>
