<?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;

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

$this->title = Yii::t('common/ticket_installment_request', 'Indításra váró bérlet fizetési megbízások');
$this->params['breadcrumbs'][] = $this->title;
?>
<?php 
PendingRequestAsset::register($this);
?>
<div class="ticket-installment-request-index">

    <h1><?= Html::encode($this->title) ?></h1>
    <?php  echo $this->render('_search_pending', ['model' => $searchModel]); ?>


<div>
	<label>
		Mindent ki/be
		<?php  echo Html::checkbox("select-all",false, ['id' => 'select-all-pending' ]);?>
	</label>
</div>
<?php $form = ActiveForm::begin([
        'action' => Url::current(),
        'method' => 'post',
    ]); ?>

	<?php 
		echo ListView::widget([
				'dataProvider' => $dataProvider,
				'itemView' => '_pending_view'
		]);
	?>
 <div class="form-group">
        <?= Html::submitButton("Beküldendőnek jelöl", ['class' => 'btn btn-primary']) ?>
    </div>

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

</div>
