59 lines
1.2 KiB
PHP
59 lines
1.2 KiB
PHP
<?php
|
|
|
|
use yii\helpers\Html;
|
|
use yii\widgets\DetailView;
|
|
use yii\helpers\Url;
|
|
use common\models\Ugiro;
|
|
|
|
/* @var $this yii\web\View */
|
|
/* @var $model common\models\Ugiro */
|
|
|
|
$this->title = "Köteg részletei";
|
|
$this->params['breadcrumbs'][] = ['label' => "Kötegek", 'url' => ['index']];
|
|
$this->params['breadcrumbs'][] = $this->title;
|
|
?>
|
|
<div class="ugiro-view">
|
|
|
|
<h1><?= Html::encode($this->title) ?></h1>
|
|
|
|
|
|
<?php
|
|
$attributes = [
|
|
[
|
|
'attribute' => 'id_ugiro',
|
|
'label' => 'Köteg azonosító'
|
|
],
|
|
[
|
|
'attribute' => 'user.username',
|
|
'label' => 'Felhasználó'
|
|
],
|
|
[
|
|
'attribute' => 'statusName',
|
|
'label' => 'Státusz'
|
|
],
|
|
[
|
|
'attribute' => 'created_at',
|
|
'label' => 'Létrehozva',
|
|
'format' =>'datetime'
|
|
],
|
|
[
|
|
'attribute' => 'path',
|
|
'label' => 'Köteg Fájl',
|
|
'value' => Html::a( "Letöltés" , Url::base() ."/". $model->path , ['target' =>'_blank' ,'download' =>'CS-BESZED.' .$model->id_ugiro ] ),
|
|
'format' => 'raw'
|
|
],
|
|
];
|
|
if ( $model->status == Ugiro::$STATUS_FINISHED){
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
<?= DetailView::widget([
|
|
'model' => $model,
|
|
'attributes' => $attributes,
|
|
]) ?>
|
|
|
|
</div>
|