title = Yii::t('main', 'Settings'); $this->params['breadcrumbs'][] = $this->title; ?>

'btn btn-success'] ) ?>

select('section')->distinct()->where(['<>', 'section', ''])->all() as $setting) : ?> section), ['/settings/list/index', 'section' => $setting->section], [ 'class' => 'list-group-item ' . ($section == $setting->section ? 'active' : ''), ]) ?>
$dataProvider, 'filterModel' => $searchModel, 'columns' => [ [ 'attribute' => 'key', 'options' => ['style' => 'width: 25%;'], ], [ 'label' => Yii::t('main', 'Value'), 'value' => function (Settings $setting) { return $setting->translation->value; }, 'format' => 'ntext', ], [ 'class' => ToggleColumn::class, 'attribute' => 'active', 'filter' => [1 => Yii::t('yii', 'Yes'), 0 => Yii::t('yii', 'No')], 'options' => ['style' => 'width: 100px;'], 'contentOptions' => ['class' => 'text-center'], ], [ 'class' => 'yii\grid\ActionColumn', 'options' => ['style' => 'width: 100px;'], 'contentOptions' => ['class' => 'text-center'], ], ], ] ); ?>