94 lines
2.2 KiB
PHP
94 lines
2.2 KiB
PHP
<?php
|
|
|
|
use yii\helpers\Html;
|
|
use yii\widgets\DetailView;
|
|
use yii\helpers\Url;
|
|
use common\models\Ugiro;
|
|
use yii\widgets\ActiveForm;
|
|
|
|
/* @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;
|
|
?>
|
|
<style >
|
|
.btns a{
|
|
margin-right: 6px;
|
|
}
|
|
|
|
a.btn{
|
|
margin-right: 6px;
|
|
}
|
|
</style>
|
|
<div class="ugiro-view">
|
|
|
|
<h1><?= Html::encode($this->title) ?></h1>
|
|
|
|
<?php
|
|
$attributes = [
|
|
[
|
|
'attribute' => 'id_ugiro',
|
|
'label' => 'Köteg azonosító'
|
|
],
|
|
[
|
|
'attribute' => 'number',
|
|
'label' => 'Üzenet sorszám'
|
|
],
|
|
[
|
|
'attribute' => 'datum',
|
|
'label' => 'Üzenet összeállítási dátum'
|
|
],
|
|
[
|
|
'attribute' => 'user.username',
|
|
'label' => 'Felhasználó'
|
|
],
|
|
[
|
|
'attribute' => 'statusName',
|
|
'label' => 'Státusz'
|
|
],
|
|
[
|
|
'attribute' => 'created_at',
|
|
'label' => 'Létrehozva',
|
|
'format' =>'datetime'
|
|
],
|
|
[
|
|
'attribute' => 'path',
|
|
'label' => 'Beszed 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_RECIEVED || $model->status == Ugiro::$STATUS_FINISHED ){
|
|
$attributes[] = [
|
|
'attribute' => 'desta_path',
|
|
'label' => 'Detsta Fájl',
|
|
'value' => Html::a( "Letöltés" , Url::base() ."/". $model->desta_path , ['target' =>'_blank' ,'download' =>'CS-BESZED.' .$model->id_ugiro ] ),
|
|
'format' => 'raw'
|
|
];
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
<?= DetailView::widget([
|
|
'model' => $model,
|
|
'attributes' => $attributes,
|
|
]) ?>
|
|
|
|
</div>
|
|
<div class="btns">
|
|
<?php
|
|
if ( $model->status == Ugiro::$STATUS_RECIEVED ){
|
|
echo Html::a("DetSta Fájl Feldoglozás",['view', 'id' => $model->id_ugiro] ,['data-method' =>'post', 'class' => 'btn btn-danger']);
|
|
}
|
|
echo Html::a("Megbízások a kötegben",['ticket-installment-request/index', 'TicketInstallmentRequestSearch[id_ugiro]' => $model->id_ugiro] ,[ 'class' => 'btn btn-primary']);
|
|
?>
|
|
</div>
|
|
|
|
|