Add contract parts
add procurement create prevent enter to product field
This commit is contained in:
@@ -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