Skip to content

Commit

Permalink
Some Combo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tafid committed May 21, 2015
1 parent 510d92a commit 250d0d1
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions views/ticket/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,22 +232,23 @@
'inputOptions' => [
'id' => 'responsible_id',
]
// 'url' => Url::to(['/client/client/client-all-list'])
]),
],
[
'attribute' => 'recipient_id',
'format' => 'html',
'filterInputOptions' => ['id' => 'recipient_id'],
'label' => Yii::t('app', 'Recipient'),
'value' => function ($data) {
return Html::a($data->recipient, ['/client/client/view', 'id' => $data->recipient_id]);

},
'filter' => Select2::widget([
'filter' => \hipanel\modules\client\widgets\combo\ClientCombo::widget([
'attribute' => 'recipient_id',
'model' => $searchModel,
'url' => Url::to(['/client/client/can-manage-list'])
'formElementSelector' => 'td',
'inputOptions' => [
'id' => 'recipient_id',
]
]),
],
[
Expand All @@ -267,12 +268,14 @@
. Html::a($data->author, ['/client/client/view', 'id' => $data->author_id]);
},
'format' => 'html',
'filterInputOptions' => ['id' => 'author_id'],
'label' => Yii::t('app', 'Author'),
'filter' => Select2::widget([
'filter' => \hipanel\modules\client\widgets\combo\ClientCombo::widget([
'attribute' => 'author_id',
'model' => $searchModel,
'url' => Url::to(['/client/client/client-all-list'])
'formElementSelector' => 'td',
'inputOptions' => [
'id' => 'author_id',
]
]),
],
[
Expand Down

0 comments on commit 250d0d1

Please sign in to comment.