Esempio n. 1
0
use yii\helpers\ArrayHelper;
use app\models\Objects;
use app\models\Agents;
/* @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();