<?php

use yii\helpers\Html;
use yii\grid\GridView;

/* @var $this yii\web\View */
/* @var $searchModel common\modules\support\models\redmine\IssueSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = 'Issues';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="issue-index">

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

    <p>
        <?= Html::a('Create Issue', ['create'], ['class' => 'btn btn-success']) ?>
    </p>
    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

            'id',
            'tracker_id',
            'project_id',
            'subject',
            'description:ntext',
            // 'due_date',
            // 'category_id',
            // 'status_id',
            // 'assigned_to_id',
            // 'priority_id',
            // 'fixed_version_id',
            // 'author_id',
            // 'lock_version',
            // 'created_on',
            // 'updated_on',
            // 'start_date',
            // 'done_ratio',
            // 'estimated_hours',
            // 'parent_id',
            // 'root_id',
            // 'lft',
            // 'rgt',
            // 'is_private',
            // 'closed_on',
            // 'assigned_to_manager_id',
            // 'assigned_to_customer_id',
            // 'price_for_customer',
            // 'max_price_for_developer',
            // 'price_developer',
            // 'type_price',
            // 'paid',

            ['class' => 'yii\grid\ActionColumn'],
        ],
    ]); ?>
</div>
