Пример #1
0
        <?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>
    
    <div class="row">
        <div class="col-sm-3">
        <?php 
echo $form->field($model, 'alamat')->textarea(['rows' => 6]);
?>

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

        <!-- ?= $form->field($nilai, 'tahun_ajaran')->dropDownList(
                                                \app\models\Data::tahun_ajaran(),