<?php

use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\ListView;
use yii\base\Widget;
use kartik\widgets\ActiveForm;
use backend\assets\PendingRequestAsset;
use yii\helpers\Url;
use kartik\widgets\DateTimePicker;
use kartik\widgets\DatePicker;

/* @var $this yii\web\View */
/* @var $searchModel backend\models\TicketInstallmentRequestSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = Yii::t('common/ticket_installment_request', 'Giro köteg létrehozása');
$this->params['breadcrumbs'][] = $this->title;
?>
<?php 
PendingRequestAsset::register($this);
?>
<div class="ticket-installment-request-index">

    <h1><?= Html::encode($this->title) ?></h1>


	
<?php $form = ActiveForm::begin([
        'action' => Url::current(),
        'method' => 'post',
    ]); ?>
    <?php  echo $form->field($model, 'action')->hiddenInput()->label(false)  ?>
    <div class="row">
    <div class="col-md-3">
     <?= $form->field($model, 'teljesitesi_datum')->widget(DatePicker::classname(), [
    			 'pluginOptions' => [
				        'autoclose'=>true,
				        'format' => 'yyyy.mm.dd'
				    ]
				])  ?>
    </div>
    </div>
 	<div class="form-group">
        <?= Html::submitButton("Köteg létrehozása", ['class' => 'btn btn-primary']) ?>
    </div>

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

	<?php 
		echo ListView::widget([
				'dataProvider' => $dataProvider,
				'itemView' => '_download_giro_view'
		]);
	?>

</div>
