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.

45 lines
973 B

<?php
3 years ago
use core\forms\menu\MenuItemForm;
use yii\web\View;
use yii\widgets\ActiveForm;
use yii\helpers\Html;
/**
3 years ago
* @var $this View
* @var $model MenuItemForm
*/
?>
<div class="menu_item_widget">
<?php $form = ActiveForm::begin(); ?>
3 years ago
<?= $form->field($model, 'name')->input('text', [
'class' => 'form-control form-control-sm'
]) ?>
3 years ago
<?= $form->field($model, 'title_attr')->input('text', [
'class' => 'form-control form-control-sm'
]) ?>
<?= $form->field($model, 'module')->hiddenInput()->label(false) ?>
<?= $form->field($model, 'menu_id')->hiddenInput()->label(false) ?>
3 years ago
<?= $form->field($model, 'url')->input('text', [
'class' => 'form-control form-control-sm'
]) ?>
<?= $form->field($model, 'url_params')->hiddenInput()->label(false) ?>
<div class="form-group">
<?= Html::submitButton(Yii::t('buttons', 'Add to menu'), [
3 years ago
'class' => 'btn btn-info btn-sm float-right'
]) ?>
</div>
<?php ActiveForm::end(); ?>
</div>