Beispiel #1
0
foreach ($groups as $groupId => $groupTitle) {
    ?>
            <li role="presentation" class="<?php 
    if ($groupId == $group) {
        ?>
active<?php 
    }
    ?>
">
                <a href="<?php 
    echo Url::to(['security', 'groupId' => $groupId]);
    ?>
" role="tab" ><?php 
    echo $groupTitle;
    ?>
</a>
            </li>
        <?php 
}
?>
    </ul>
</div>

<div class="panel-body" style="padding-top:0px;">
    <div class="tab-content">
        <?php 
echo \humhub\modules\user\widgets\PermissionGridEditor::widget(['permissionManager' => $user->permissionManager, 'groupId' => $group]);
?>
    </div>
</div>
Beispiel #2
0
<?php

use humhub\modules\user\widgets\PermissionGridEditor;
$this->beginContent('@admin/views/group/_manageLayout.php', ['group' => $group]);
?>
<div class="panel-body">
<?php 
echo PermissionGridEditor::widget(['permissionManager' => Yii::$app->user->permissionManager, 'groupId' => $group->id]);
?>
</div>
<?php 
$this->endContent();
<?php

use yii\helpers\Url;
use yii\helpers\Html;
use humhub\modules\space\modules\manage\widgets\MemberMenu;
use humhub\modules\user\widgets\PermissionGridEditor;
echo MemberMenu::widget(['space' => $space]);
?>
<br />
<div class="panel panel-default">
    <div class="panel-heading">
        <?php 
echo Yii::t('SpaceModule.views_admin_members', '<strong>Manage</strong> permissions');
?>
    </div>
    <div class="panel-body">
        <?php 
echo Yii::t('SpaceModule.views_admin_members', '<strong>Current Group:</strong>');
echo Html::beginForm($space->createUrl('permissions'), 'GET');
echo Html::dropDownList('groupId', $groupId, $groups, ['class' => 'form-control', 'onchange' => 'this.form.submit()']);
echo Html::endForm();
?>
        <br />
        <?php 
echo PermissionGridEditor::widget(['permissionManager' => $space->permissionManager, 'groupId' => $groupId]);
?>
    </div>
</div>