<?php
// Copyright 1999-2026. WebPros International GmbH. All rights reserved.
    $uploadElement = $this->element->getElement('uploadType');
?>
<div id='apsLicense-uploadTextRadio-form-row' class='form-row'>
    <div class='field-name'><?php echo $this->elementPart($uploadElement)->label() ?></div>
    <div class='field-value'>
        <div class="text-value">
            <div class="indent-box">
                <input type="radio" class="radio" value="text" id="<?php echo $uploadElement->getId() . '-text'
                    ?>" name="<?php echo $this->elementPart($uploadElement)->name()
                    ?>"<?php echo ('text' == $uploadElement->getValue()) ? ' checked="checked"' : ''
                ?>/>
                <div class="indent-box-content" style="width: 100%;">
                    <label for="<?php echo $uploadElement->getId() . '-text'; ?>"><?php echo $uploadElement->getMultiOption('text') ?></label>
                    <div class="form-row<?php echo $this->element->getElement('uploadText')->hasErrors() ? ' error' : ''?>">
                        <?php echo $this->elementPart($this->element->getElement('uploadText'))->content() ?>
                        <?php if ($this->element->getElement('uploadText')->hasErrors()): ?>
                            <span class='field-errors'><?php echo $this->elementPart($this->element->getElement('uploadText'))->errors() ?></span>
                        <?php else: ?>
                            <span class='field-errors' style="display: none;"></span>
                        <?php endif; ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div id='apsLicense-uploadFileRadio-form-row' class='form-row'>
    <div class='field-name'><label for="license-upload-file"/></div>
    <div class='field-value'>
        <div class="text-value">
            <div class="indent-box">
                <input type="radio" class="radio" value="file" id="<?php echo $uploadElement->getId() . '-file'
                    ?>" name="<?php echo $this->elementPart($uploadElement)->name()
                    ?>"<?php echo ('file' == $uploadElement->getValue()) ? ' checked="checked"' : ''
                ?>/>
                <div class="indent-box-content" style="width: 100%;">
                    <label for="<?php echo $uploadElement->getId() . '-file'; ?>"><?php echo $uploadElement->getMultiOption('file') ?></label>
                    <div class="form-row<?php echo $this->element->getElement('uploadFile')->hasErrors() ? ' error' : ''?>">
                        <?php echo $this->element->getElement('uploadFile')->renderFile(); ?>
                        <?php if ($this->element->getElement('uploadFile')->hasErrors()): ?>
                            <span class='field-errors'><?php echo $this->elementPart($this->element->getElement('uploadFile'))->errors(); ?></span>
                        <?php else: ?>
                            <span class='field-errors' style="display: none;"></span>
                        <?php endif; ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type='text/javascript'>
//<![CDATA[
Jsw.onReady(function() {
    Smb.ApsLicense.initForm();
});
//]]>
</script>
