/** * @inheritdoc */ public function attributeLabels() { return ['id' => Module::t('setting', 'ID'), 'parent_id' => Module::t('setting', 'Parent ID'), 'code' => Module::t('setting', 'Code'), 'type' => Module::t('setting', 'Type'), 'store_range' => Module::t('setting', 'Store Range'), 'store_dir' => Module::t('setting', 'Store Dir'), 'value' => Module::t('setting', 'Value'), 'sort_order' => Module::t('setting', 'Sort Order')]; }
$item['content'] = $str; array_push($items, $item); } ?> <style> .tab-pane {padding-top: 20px;} </style> <div class="setting-form"> <?php $form = ActiveForm::begin(['id' => 'setting-form', 'options' => ['class' => 'form-horizontal'], 'fieldConfig' => ['template' => "{label}\n<div class=\"col-lg-3\">{input}{hint}</div>\n<div class=\"col-lg-5\">{error}</div>", 'labelOptions' => ['class' => 'col-lg-2 control-label']]]); ?> <?php echo \yii\bootstrap\Tabs::widget(['items' => $items, 'options' => ['tag' => 'div'], 'itemOptions' => ['tag' => 'div'], 'headerOptions' => ['class' => 'my-class'], 'clientOptions' => ['collapsible' => false]]); ?> <div class="form-group"> <label class="col-lg-2 control-label" for=""> </label> <?php echo Html::submitButton(Module::t('setting', 'Update'), ['class' => 'btn btn-primary']); ?> </div> <?php ActiveForm::end(); ?> </div>