\yii\helpers\Url::to(['user/set-identity']),
'options' => [
'id' => 'debug-userswitch__set-identity',
'style' => $panel->canSearchUsers() ? 'display:none' : ''
]
]);
echo $formSet->field(
$panel->userSwitch,
'user[id]', ['options' => ['class' => '']])
->textInput(['id' => 'user_id', 'name' => 'user_id'])
->label('Switch User');
echo Html::submitButton('Switch', ['class' => 'btn btn-primary']);
ActiveForm::end();
?>
userSwitch->isMainUser()) {
$formReset = ActiveForm::begin([
'action' => \yii\helpers\Url::to(['user/reset-identity']),
'options' => [
'id' => 'debug-userswitch__reset-identity',
]
]);
echo Html::submitButton('Reset to ' .
$panel->userSwitch->getMainUser()->getId() .
'', [
'class' => 'btn btn-outline-secondary',
'id' => 'debug-userswitch__reset-identity-button'
]);
ActiveForm::end();
}
?>
canSearchUsers()) {
yii\widgets\Pjax::begin(['id' => 'debug-userswitch__filter', 'timeout' => false]);
echo GridView::widget([
'dataProvider' => $panel->getUserDataProvider(),
'filterModel' => $panel->getUsersFilterModel(),
'tableOptions' => [
'class' => 'table table-bordered table-responsive table-hover table-pointer'
],
'pager' => [
'linkContainerOptions' => [
'class' => 'page-item'
],
'linkOptions' => [
'class' => 'page-link'
],
'disabledListItemSubTagOptions' => [
'tag' => 'a',
'href' => 'javascript:;',
'tabindex' => '-1',
'class' => 'page-link'
]
],
'columns' => $panel->filterColumns
]);
yii\widgets\Pjax::end();
}
?>