Beispiel #1
0
?>

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

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

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

    <?php 
echo $form->field($model, 'source_id')->dropDownList(ArrayHelper::map(Source::getSoureListByNear($model), 'id', 'fullName'));
?>


    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>

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

</div>