<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\jui\DatePicker;

/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\Laporan */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="laporan-form">

    <?php $form = ActiveForm::begin(); ?>

    
    <?php 
    	$thn = date('Y');
    	foreach(range(2002-2, $thn) as $i) {
    		$array[] = $i;
		}
    ?>
	
    <?= $form->field($model, 'bulan_laporan')->dropDownlist(['Januari' => 'Januari', 'Februari' => 'Februari', 'Maret' => 'Maret', 'April' => 'April', 'Mei' => 'Mei', 'Juni' => 'Juni', 'Juli' => 'Juli', 'Agustus' => 'Agustus', 'September' => 'September' , 'Oktober' => 'Oktober', 'November' => 'November', 'Desember' => 'Desember'], ['prompt' => 'Pilih Bulan'])?>

    <?= $form->field($model, 'tahun_laporan')->dropDownList(
            $array, ['prompt' => 'Pilih Tahun']
    ); ?>	


    
    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
