Exemplo n.º 1
0
<div class="reservationinfo-form">

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

    <?php 
echo $form->field($model, 'objreservationId')->dropDownList($model->getObjreservationList(), ['prompt' => 'Выберите экскурсию...']);
?>

    <?php 
echo $form->field($model, 'dateBegin')->widget(Datetimepicker::className(), ['options' => ['lang' => 'ru', 'format' => 'd-m-Y H:m']]);
?>

    <?php 
echo $form->field($model, 'dateEnd')->widget(Datetimepicker::className(), ['options' => ['lang' => 'ru', 'format' => 'd-m-Y H:m']]);
?>
    <div class="weekdays">
        <?php 
echo $form->field($model, 'monday')->checkbox();
?>
        <?php 
echo $form->field($model, 'tuesday')->checkbox();
?>
        <?php 
echo $form->field($model, 'wednesday')->checkbox();
?>
        <?php 
echo $form->field($model, 'thursday')->checkbox();
?>
        <?php 
Exemplo n.º 2
0
?>
        </div>
    </div>

    <div class="row">
        <div class="col-md-2" style="line-height: 35px"><label>Дата выхода книги: </label></div>
        <div class="col-md-2">
            <?php 
echo $form->field($model, 'date0')->widget(\vakorovin\datetimepicker\Datetimepicker::className(), ['options' => ['lang' => 'ru', 'format' => 'Y-m-d', 'timepicker' => false]])->label(false);
?>
        </div>

        <div class="col-md-1 text-center" style="line-height: 35px">до</div>
        <div class="col-md-2">
            <?php 
echo $form->field($model, 'date1')->widget(\vakorovin\datetimepicker\Datetimepicker::className(), ['options' => ['lang' => 'ru', 'format' => 'Y-m-d', 'timepicker' => false]])->label(false);
?>
        </div>
        <div class="col-md-5">
            <?php 
echo Html::submitButton(Yii::t('app', 'Искать'), ['class' => 'btn btn-primary']);
?>
        </div>
    </div>

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

</div>
Exemplo n.º 3
0
/* @var $form yii\widgets\ActiveForm */
?>

<div class="books-form">

    <?php 
$form = ActiveForm::begin(['enableClientValidation' => false, 'options' => ['enctype' => 'multipart/form-data']]);
?>

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


    <?php 
echo $form->field($model, 'date')->widget(\vakorovin\datetimepicker\Datetimepicker::className(), ['options' => ['lang' => 'ru', 'format' => 'Y-m-d', 'timepicker' => false, 'value' => $model->date, 'mask' => '9999-99-99']]);
?>

    <?php 
echo $form->field($model, 'author_id')->dropDownList(\app\models\Authors::getAuthors());
?>

    <?php 
echo $form->field($model, 'preview')->fileInput();
?>

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