You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.1 KiB
49 lines
1.1 KiB
<?php |
|
|
|
use core\components\bootstrap4\widgets\Tab4; |
|
use core\forms\menu\MenuForm; |
|
use yii\bootstrap\Tabs; |
|
use yii\helpers\Html; |
|
use yii\widgets\ActiveForm; |
|
|
|
/* @var $this yii\web\View */ |
|
/* @var $model MenuForm */ |
|
/* @var $form yii\widgets\ActiveForm */ |
|
?> |
|
|
|
<div class="menu-form"> |
|
|
|
<?php $form = ActiveForm::begin(); ?> |
|
|
|
<div class="card"> |
|
<div class="card-body"> |
|
|
|
<?php |
|
$items = []; |
|
foreach (Yii::$app->params['translatedLanguages'] as $language => $language_name) { |
|
$items[] = [ |
|
'label' => $language_name, |
|
'content' => $this->render('_form_tab', [ |
|
'form' => $form, |
|
'model' => $model, |
|
'language' => $language, |
|
]), |
|
]; |
|
} |
|
?> |
|
|
|
<div class="nav-tabs-custom"> |
|
<?= Tab4::widget([ |
|
'items' => $items |
|
]) ?> |
|
</div> |
|
|
|
</div> |
|
<div class="card-footer text-right"> |
|
<?= Html::submitButton(Yii::t('buttons', 'Save'), ['class' => 'btn btn-success']) ?> |
|
</div> |
|
</div> |
|
|
|
<?php ActiveForm::end(); ?> |
|
|
|
</div>
|
|
|