示例#1
0
        <?php 
// Normal select with ActiveForm & model
echo $form->field($model, 'nis')->widget(Select2::classname(), ['data' => \app\models\Data::nis(), 'language' => 'en', 'options' => ['placeholder' => 'Pilih...'], 'pluginOptions' => ['allowClear' => true]])->label('NAMA');
?>
            

        <?php 
//$form->field($model, 'id_matapelajaran')->textInput()
?>
        <!-- ?= $form->field($model,'id_matapelajaran')->dropDownList(
                                                \app\models\Data::matapelajaranGuru(), 
                                                ['prompt'=>'Pilih Mata Pelajaran...'])->label('Mata Pelajaran'); ?>  -->
        <?php 
// Normal select with ActiveForm & model
echo $form->field($model, 'id_matapelajaran')->widget(Select2::classname(), ['data' => \app\models\Data::matapelajaranGuru(), 'language' => 'en', 'options' => ['placeholder' => 'Pilih Mata Pelajaran...'], 'pluginOptions' => ['allowClear' => true]])->label('Mata Pelajaran');
?>
            

        </div>
        
        <div class="col-sm-3">

        <?php 
echo $form->field($model, 'nilai')->textInput();
?>

        <?php 
//$form->field($model, 'tahun_ajaran')->textInput(['maxlength' => true])
?>
        <!-- ?= $form->field($model, 'tahun_ajaran')->dropDownList(