<?php
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
?>
<?php if ($this->mainGroupTitle): ?>
<p><?php echo $this->escape($this->mainGroupTitle); ?></p>
<?php endif;?>

<?php if ($this->mainGroupDescription): ?>
<p><?php echo $this->escape($this->mainGroupDescription); ?></p>
<?php endif;?>

<div id="permissionsGroups-layout" class="two-cols-block clearfix">
    <div class="first-col">
      <div class="column-box">
        <div id="permissionsGroups-main" class="form-box form-box-50x50">
            <div id="permissionsGroups-main-content-area">
                <?php echo $this->element->getSubForm('main')->render($this)?>
            </div>
        </div>
      </div>
    </div>

    <div class="second-col">
      <div class="column-box">
        <div id="permissionsGroups-additional" class="form-box form-box-50x50 b-collapsible">
            <div id="permissionsGroups-additional-content-area">
                <?php echo $this->element->getSubForm('additional')->render($this)?>
            </div>
        </div>
      </div>
    </div>
</div>

<script type='text/javascript'>
//<![CDATA[
    new Jsw.Panel({
        applyTo: 'permissionsGroups-main',
        cls: 'form-box form-box-50x50'
    });
    new Jsw.Panel({
        title: <?php echo $this->jsEscape($this->additionalGroupTitle) ?>,
        hideContentTitle: <?php echo $this->jsEscape($this->additionalGroupTitleHidden) ?>,
        applyTo: 'permissionsGroups-additional',
        collapsed: true
    });
//]]>
</script>
