Finish detsta_part
This commit is contained in:
@@ -5,6 +5,9 @@ use yii\widgets\DetailView;
|
||||
use yii\helpers\Url;
|
||||
use common\models\Ugiro;
|
||||
use yii\widgets\ActiveForm;
|
||||
use yii\grid\GridView;
|
||||
use yii\base\Widget;
|
||||
use yii\grid\ActionColumn;
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $model common\models\Ugiro */
|
||||
@@ -68,14 +71,14 @@ $attributes = [
|
||||
|
||||
|
||||
|
||||
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'
|
||||
];
|
||||
}
|
||||
// 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'
|
||||
// ];
|
||||
// }
|
||||
|
||||
?>
|
||||
|
||||
@@ -85,11 +88,41 @@ $attributes = [
|
||||
'attributes' => $attributes,
|
||||
]) ?>
|
||||
|
||||
|
||||
<h1>Detsta válaszok</h1>
|
||||
<?php
|
||||
echo GridView::widget(
|
||||
[
|
||||
'dataProvider' => $detstaDp,
|
||||
'columns' =>[
|
||||
[
|
||||
'attribute' => 'created_at',
|
||||
'label' => 'Létrehozva'
|
||||
],
|
||||
[
|
||||
'class' => ActionColumn::className() ,
|
||||
'template' =>'{view}',
|
||||
'urlCreator' => function ($action, $model, $key, $index){
|
||||
if ($action == 'view' ){
|
||||
return Url::toRoute(['message-detsta/view','id' => $model->id_message]);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
]
|
||||
]
|
||||
|
||||
]
|
||||
);
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
</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("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']);
|
||||
echo Html::a("PDF", Url::current(['output' => 'pdf']) ,[ 'class' => 'btn btn-primary']);
|
||||
|
||||
Reference in New Issue
Block a user