Example #1
0
$form = ActiveForm::begin(['id' => $model->formName(), 'options' => ['class' => 'inline', 'enctype' => 'multipart/form-data']]);
$request = Yii::$app->request;
$get = $request->get();
$id = $request->get('id');
?>
    <?php 
echo $form->errorSummary($model);
?>
    <?php 
echo $form->field($model, 'ref')->hiddenInput()->label(false);
?>
    <div class="row">
        <div class="col-md-4">

            <?php 
echo $form->field($model, 'drivers_title')->label('คำนำหน้า')->dropDownList(AppCar::itemAlias('prefixs'));
?>
        </div>
        <div class="col-md-4">
            <?php 
echo $form->field($model, 'drivers_name')->textInput(['maxlength' => true]);
?>
        </div>
        <div class="col-md-4">
            <?php 
echo $form->field($model, 'drivers_lastname')->textInput(['maxlength' => true]);
?>
        </div>
    </div>
    <div class="row">
        <div class="col-md-4"><?php 
Example #2
0
                <div class="col-md-4 col-xs-4  divbox-dlt">
                    <span>ประเภทรถ</span><?php 
echo $form->field($model, 'car_type')->inline()->label(false)->radioList(AppCar::itemAlias('cartype'));
?>
                </div>
                <div class="col-md-1"></div>
                <div class="col-md-4 col-xs-4 divbox-dlt">
                    <span>ผู้ขออนุญาต</span><?php 
echo $form->field($model, 'owner_type')->inline()->label(false)->radioList(AppCar::itemAlias('ownertype'));
?>
                </div>
            </div><hr/>
            <div class="row">
                <div class="col-md-2 col-xs-2">
                    <span>คำนำหน้า</span>   <?php 
echo $form->field($model, 'gender')->label(false)->dropDownList(AppCar::itemAlias('prefixs'));
?>
                </div>
                <div class="col-md-4 col-xs-4">
                    <span>ข้าพเจ้า </span><?php 
echo $form->field($model, 'fullname')->textInput(['maxlength' => true, 'placeholder' => 'ชื่อ - นามสกุล'])->label(false);
?>
                </div>
                <div class="col-md-2 col-xs-2">
                    <span>อายุ</span><?php 
echo $form->field($model, 'age')->textInput(['maxlength' => true, 'placeholder' => '0'])->label(false);
?>
                </div>
                <div class="col-md-4 col-xs-4">
                    <span>เลขที่หนังสือหนังสือเดินทาง</span><?php 
echo $form->field($model, 'passport')->widget(\yii\widgets\MaskedInput::classname(), ['mask' => '99-9999-9999'])->label(false);
Example #3
0
<div class="panel panel-info">
    <div class="panel-heading">##</div>
    <div class="panel-body">

        <?php 
$form = ActiveForm::begin();
?>
        <div class="row">
            <div class="row">
                <?php 
echo $form->errorSummary($model2);
?>
            </div>
            <div class="col-md-3 col-xs-3">
                คำนำหน้า<?php 
echo $form->field($model2, 'drivers_title')->inline()->label(false)->radioList(AppCar::itemAlias('prefixs'));
?>
            </div> 
            <div class="col-md-4 col-xs-4">
                ชื่อ<?php 
echo $form->field($model2, 'drivers_name')->textInput(['maxlength' => true])->label(false);
?>
            </div>
            <div class="col-md-4 col-xs-4">
                นามสกุล<?php 
echo $form->field($model2, 'drivers_lastname')->textInput(['maxlength' => true])->label(false);
?>
            </div>
            <div></div>
        </div>
        <div class="row">
Example #4
0
echo $form->field($model, 'confirm_password')->passwordInput(['maxlength' => true]);
?>
        </div>
    </div>
<?php 
echo $form->field($model, 'email')->textInput(['maxlength' => true]);
?>
    <div class="panel panel-info">
        <div class="panel-heading">
            ข้อมูลส่วนตัว
        </div>
        <div class="panel-body">
            <div class="row">
                <div class="col-md-3">
                    <span>คำนำหน้า</span>   <?php 
echo $form->field($modelUser, 'title')->label(false)->radioList(AppCar::itemAlias('prefixs'));
?>
                </div>
                <div class="col-md-3">
<?php 
echo $form->field($modelUser, 'name')->textInput(['maxlength' => true]);
?>
                </div>
                <div class="col-md-3">
<?php 
echo $form->field($modelUser, 'lname')->textInput(['maxlength' => true]);
?>
                </div>
                <div class="col-md-3">
<?php 
echo $form->field($modelUser, 'id_no')->textInput();