Add contract parts
add procurement create prevent enter to product field
This commit is contained in:
36
backend/views/contract/details.php
Normal file
36
backend/views/contract/details.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
use yii\grid\GridView;
|
||||
use common\models\TicketInstallmentRequest;
|
||||
?>
|
||||
Részletek
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
echo GridView::widget([
|
||||
'dataProvider' => $dataProvider,
|
||||
'columns' => [
|
||||
[
|
||||
'attribute' => 'id_ticket_installment_request' ,
|
||||
'label' => 'Részlet azonosító'
|
||||
],
|
||||
[
|
||||
'attribute' => 'request_target_time_at' ,
|
||||
'label' => 'Esedékességi dátum',
|
||||
'format' => 'date'
|
||||
],
|
||||
[
|
||||
'attribute' => 'priority' ,
|
||||
'label' => 'Sorszám'
|
||||
],
|
||||
[
|
||||
'attribute' => 'status' ,
|
||||
'label' => 'Státusz',
|
||||
'value' => function ($model, $key, $index, $column){
|
||||
return TicketInstallmentRequest::toStatusName($model->status);
|
||||
}
|
||||
],
|
||||
]
|
||||
]);
|
||||
|
||||
?>
|
||||
@@ -3,6 +3,7 @@
|
||||
use yii\helpers\Html;
|
||||
use yii\grid\GridView;
|
||||
use common\models\Contract;
|
||||
use yii\helpers\Url;
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $searchModel backend\models\ContractSearch */
|
||||
@@ -79,6 +80,23 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
'label' =>'Lejárat',
|
||||
'format' => 'date'
|
||||
],
|
||||
[
|
||||
'class' => 'yii\grid\ActionColumn',
|
||||
'template' =>'{details}',
|
||||
'urlCreator' => function ($action, $model, $key, $index){
|
||||
$result = "";
|
||||
if ( $action == 'details' ){
|
||||
$result = Url::toRoute(['contract/details','id' => $model['contract_id_contract']]);
|
||||
}
|
||||
return $result;
|
||||
},
|
||||
'buttons' => [
|
||||
'details' => function ($url, $model, $key) {
|
||||
return Html::a('Részletek', $url , ['class' => 'btn btn-primary btn-xs' ]) ;
|
||||
},
|
||||
|
||||
],
|
||||
],
|
||||
],
|
||||
]); ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user