<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
?>
<div class='form-row'>
    <div class='field-name'>
        <?php echo $this->elementPart($this->element->getElement('action'))->label(); ?>
    </div>
    <div class='field-value'>
        <?php echo $this->elementPart($this->element->getElement('action'))->content(); ?>
        <?php echo $this->elementPart($this->element->getElement('addAction'))->content(); ?>
        <?php echo $this->elementPart($this->element->getElement('action'))->description(); ?>
        <span class="field-errors" style="display: none;"></span>
    </div>
</div>
<script type="text/javascript">
//<![CDATA[
(function () {
    document.getElementById('addAction').addEventListener('click', function () {
        if ('<none>' !== document.getElementById('action').value) {
            document.getElementById('actionContent').value += ('' != document.getElementById('actionContent').value ? '\n' : '') + document.getElementById('action').value;
            document.getElementById('action').value = '<none>';
        }
    });
})();
//]]>
</script>
