<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model common\modules\support\models\redmine\Issue */

$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Issues', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="issue-view">

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

    <p>
        <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
        <?= Html::a('Delete', ['delete', 'id' => $model->id], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => 'Are you sure you want to delete this item?',
                'method' => 'post',
            ],
        ]) ?>
    </p>

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            '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',
        ],
    ]) ?>

</div>
