示例#1
0
文件: _form.php 项目: Vlad9330/waiver
    ?>

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

    <?php 
    echo $form->field($model, 'email')->widget(\yii\widgets\MaskedInput::className(), ['clientOptions' => ['alias' => 'email']]);
    ?>

    <?php 
    echo $form->field($model, 'adult_gender')->dropDownList(common\models\Adult::getGenderItems());
    ?>

    <?php 
    echo $form->field($model, 'adult_dob')->widget(dosamigos\datepicker\DatePicker::classname(), ['template' => '{addon}{input}', 'clientOptions' => ['autoclose' => true, 'format' => 'dd-M-yyyy']]);
    ?>

    <?php 
    echo $form->field($model, 'how_hear_id')->dropDownList(common\models\HowHear::HowHearAboutUs());
    ?>

    <h2> Your Address and Phone Number </h2>

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

    <?php 
    echo $form->field($model, 'state')->textInput(['maxlength' => true]);
    ?>
示例#2
0
    <?php 
NavBar::begin();
$form = ActiveForm::begin(['method' => 'post', 'action' => ['/tour/index'], 'options' => ['class' => 'form-inline']]);
?>

    <?php 
echo $form->field($model, 'search_data', ['options' => ['class' => 'search-data form-group']])->widget(Select2::classname(), ['data' => $data, 'options' => ['placeholder' => 'Введите ключевые слова...'], 'pluginOptions' => ['allowClear' => true]]);
?>

    <!-- /.search-data -->

    <?php 
$today = new DateTime();
?>
    <?php 
echo $form->field($model, 'date_begin')->widget(\dosamigos\datepicker\DatePicker::classname(), ['language' => 'ru', 'clientOptions' => ['format' => 'yyyy-mm-dd', 'autoclose' => true, 'startDate' => 'today', 'defaultViewDate' => 'today', 'value' => $today]]);
?>
    <div class="form-group btn-search">
        <?php 
echo Html::submitButton('Вперед!', ['class' => 'btn btn-success']);
?>
    </div>
    <?php 
ActiveForm::end();
NavBar::end();
?>
</div>
<div class="row">
    <div class="col-sm-12">
        <?php 
$i = 1;