Add contract parts

add procurement create prevent enter to product field
This commit is contained in:
2016-01-30 11:48:39 +01:00
parent a00331ce7c
commit 7b4fe04229
8 changed files with 225 additions and 0 deletions

View File

@@ -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' ]) ;
},
],
],
],
]); ?>