guild/backend/modules/knowledgelevel/views/knowledge-level/_form.php

26 lines
628 B
PHP
Raw Normal View History

2023-04-12 13:14:37 +03:00
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\modules\knowledgelevel\models\KnowledgeLevel */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="knowledge-level-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'status')->dropDownList(\common\models\KnowledgeLevel::getStatus()) ?>
<div class="form-group">
<?= Html::submitButton('Сохранить', ['class' => 'btn btn-success']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>