add multiple detsta upload
This commit is contained in:
@@ -71,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'
|
||||
// ];
|
||||
// }
|
||||
|
||||
?>
|
||||
|
||||
@@ -100,7 +100,14 @@ $attributes = [
|
||||
'label' => 'Létrehozva'
|
||||
],
|
||||
[
|
||||
'class' => ActionColumn::className()
|
||||
'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;
|
||||
}
|
||||
]
|
||||
]
|
||||
|
||||
@@ -115,7 +122,7 @@ $attributes = [
|
||||
<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