Skip to content

Commit

Permalink
+ note xeditable in details
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Jul 30, 2015
1 parent e6a32f1 commit b133e6a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
16 changes: 9 additions & 7 deletions grid/DomainGridView.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,15 @@ static public function defaultColumns()
'attribute' => 'is_secured',
'popover' => Yii::t('app', 'Protection from transfer'),
],
// 'note' => [
// 'class' => EditableColumn::className(),
// 'attribute' => 'note',
// 'filter' => true,
// 'popover' => Yii::t('app','Make any notes for your convenience'),
// 'action' => ['set-note'],
// ],
'note' => [
'class' => 'hiqdev\xeditable\grid\XEditableColumn',
'attribute' => 'note',
'filter' => true,
'popover' => Yii::t('app','Make any notes for your convenience'),
'pluginOptions' => [
'url' => 'set-note',
],
],
'created_date' => [
'attribute' => 'created_date',
'format' => 'date',
Expand Down
11 changes: 4 additions & 7 deletions views/domain/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,19 +122,16 @@
<?= DomainGridView::detailView([
'model' => $model,
'columns' => [
'seller_id',
'client_id',
'seller_id', 'client_id',
[
'attribute' => 'domain',
'headerOptions' => ['class' => 'text-nowrap'],
],
'note',
'state',
'whois_protected',
'is_secured',
'created_date',
'expires',
'whois_protected', 'is_secured',
'created_date', 'expires',
'autorenewal',

[
'attribute' => 'authCode',
'value' => function ($model){
Expand Down

0 comments on commit b133e6a

Please sign in to comment.