示例#1
0
文件: _form.php 项目: andreyvaslv/crb
echo $form->field($model, 'snils')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'last_name')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'first_name')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'patronymic')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'localities')->checkboxList(Locality::getList(), ['class' => 'checkbox-list']);
?>

    <div class="form-group">
        <?php 
echo Html::submitButton('Сохранить', ['class' => 'btn btn-success']);
?>
    </div>

    <?php 
ActiveForm::end();
?>

</div>
示例#2
0
文件: _form.php 项目: andreyvaslv/crb
/* @var $model app\modules\appointment\models\Patient */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="patient-form">

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

    <?php 
echo $form->field($model, 'blocked')->checkbox();
?>

    <?php 
echo $form->field($model, 'locality_id')->dropDownList(Locality::getList());
?>

    <?php 
echo $form->field($model, 'physician_id')->dropDownList(\app\modules\appointment\models\Physician::getList());
?>

    <?php 
echo $form->field($model, 'policy')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'last_name')->textInput(['maxlength' => true]);
?>

    <?php