示例#1
0
文件: _form.php 项目: ra-duga/basicls
/* @var $this yii\web\View */
/* @var $model app\models\Comission */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="comission-form">

    <?php 
$form = ActiveForm::begin();
?>

    <?php 
echo $form->field($model, 'objects_id')->dropDownList(ArrayHelper::map(Objects::getList(), 'id', 'name'));
?>
    <?php 
echo $form->field($model, 'agents_id')->dropDownList(ArrayHelper::map(Agents::getList(), 'id', 'name'));
?>
    <?php 
echo $form->field($model, 'value')->textInput();
?>

    <?php 
echo $form->field($model, 'is_episode')->checkBox(['checked' => 1]);
?>


    <?php 
echo $form->field($model, 'start_epizode')->textInput();
?>

    <?php