Exemple #1
0
        <!-- ?= $form->field($model, 'bln')->dropDownList(
                                                \app\models\Data::bln(), 
                                                ['prompt'=>'Bulan...'])->label('Bulan'); ?> -->
        <?php 
// Normal select with ActiveForm & model
echo $form->field($model, 'bln')->widget(Select2::classname(), ['data' => \app\models\Data::bln(), 'language' => 'en', 'options' => ['placeholder' => 'Pilih Bulan...'], 'pluginOptions' => ['allowClear' => true]])->label('Bulan');
?>
      
        </div>
        <div class="col-sm-1">
        <!-- ?= $form->field($model, 'thn')->dropDownList(
                                                \app\models\Data::thn(1996,10), 
                                                ['prompt'=>'Tahun...'])->label('Tahun'); ?> -->
        <?php 
// Normal select with ActiveForm & model
echo $form->field($model, 'thn')->widget(Select2::classname(), ['data' => \app\models\Data::thn(1995, 10), 'language' => 'en', 'options' => ['placeholder' => 'Pilih Tahun...'], 'pluginOptions' => ['allowClear' => true]])->label('Tahun');
?>
     
        
        </div>
    
        <div class="col-sm-3">
        <?php 
echo $form->field($model, 'no_telp')->textInput(['maxlength' => true]);
?>

        <!-- ?php //$form->field($model, 'jns_kelamin')->dropDownList([ 'L' => 'L', 'P' => 'P', ], ['prompt' => '']) ?> -->
        <?php 
echo $form->field($model, 'jns_kelamin')->radioList(\app\models\Data::jns_kelamin())->label('Jenis Kelamin');
?>
        </div>