コード例 #1
0
ファイル: _form.php プロジェクト: andreyvaslv/crb
/* @var $model app\modules\appointment\models\Physician */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="physician-form">

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

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

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

    <?php 
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 
コード例 #2
0
ファイル: entry.php プロジェクト: andreyvaslv/crb
        <?php 
$form = ActiveForm::begin();
?>

        <div class="row">

            <div class="col-sm-6 specialty">
                <div class="well">
                    <h4><?php 
echo $model->getAttributeLabel('specialty_id');
?>
</h4>

                    <?php 
echo $form->field($model, 'specialty_id')->dropDownList(Specialty::getList($patient->physicianSpecialty), ['prompt' => '-'])->label(false);
?>
                </div>
            </div>

            <div class="col-sm-6 physician" style="display: none;">
                <div class="well">
                    <h4><?php 
echo $model->getAttributeLabel('physician_id');
?>
</h4>

                    <?php 
echo $form->field($model, 'physician_id')->dropDownList(Physician::getList(null, $patient->physician_id), ['prompt' => '-'])->label(false);
?>
                </div>