guild/backend/modules/settings/views/additional-fields/_form.php
2018-10-12 14:52:08 +03:00

26 lines
606 B
PHP

<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\modules\fields\models\AdditionalFields */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="additional-fields-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'use')->checkboxList((new \common\models\UseField())->statuses); ?>
<div class="form-group">
<?= Html::submitButton('Save', ['class' => 'btn btn-success']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>