Example #1
0
echo $form->field($model, 'start_date')->widget(DatePicker::className(), ['language' => 'th', 'options' => ['placeholder' => 'Select issue date ...'], 'pluginOptions' => ['format' => 'yyyy-mm-dd', 'todayHighlight' => true]]);
?>
            </div>
            <div class="col-sm-6 col-md-6">
             <?php 
echo $form->field($model, 'end_date')->widget(DatePicker::className(), ['language' => 'th', 'options' => ['placeholder' => 'Select issue date ...'], 'pluginOptions' => ['format' => 'yyyy-mm-dd', 'todayHighlight' => true]]);
?>
            </div>
    </div>

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

    <?php 
echo $form->field($model, 'province_id')->widget(Select2::classname(), ['data' => ArrayHelper::map(province::find()->all(), 'PROVINCE_ID', 'PROVINCE_NAME'), 'options' => ['placeholder' => 'เลือกจังหวัด ...'], 'pluginOptions' => ['allowClear' => true]]);
?>
    
    <div class="row">
        <div class="col-sm-6 col-md-6">
            <?php 
echo $form->field($model, 'customer_name')->textInput(['maxlength' => 150]);
?>
        </div>
        <div class="col-sm-6 col-md-6">
            <?php 
echo $form->field($model, 'customer_mobile_phone')->textInput(['maxlength' => 20]);
?>
        </div>
    </div>