From ec38f82fb1467bab61629a5fcce4321a8c02c6bc Mon Sep 17 00:00:00 2001 From: tofid Date: Mon, 19 Dec 2016 14:05:25 +0200 Subject: [PATCH] Fix popover without link --- src/grid/DomainGridView.php | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/grid/DomainGridView.php b/src/grid/DomainGridView.php index 3a145fa4..c2695f0f 100644 --- a/src/grid/DomainGridView.php +++ b/src/grid/DomainGridView.php @@ -67,19 +67,33 @@ public static function defaultColumns() 'whois_protected' => [ 'class' => BootstrapSwitchColumn::class, 'attribute' => 'whois_protected', - 'filter' => false, 'url' => Url::toRoute('set-whois-protect'), + 'filter' => false, + 'enableSorting' => false, + 'encodeLabel' => false, + 'label' => Html::tag('span', 'WHOIS'), 'popover' => 'WHOIS protection', + 'popoverOptions' => [ + 'placement' => 'bottom', + 'selector' => 'span', + ], 'pluginOptions' => [ 'offColor' => 'warning', ], ], 'is_secured' => [ 'class' => BootstrapSwitchColumn::class, + 'encodeLabel' => false, 'filter' => false, + 'enableSorting' => false, + 'label' => Html::tag('span', Yii::t('hipanel:domain', 'Protection')), 'url' => Url::toRoute('set-lock'), 'attribute' => 'is_secured', 'popover' => Yii::t('hipanel:domain', 'Protection from transfer'), + 'popoverOptions' => [ + 'placement' => 'bottom', + 'selector' => 'span', + ], ], 'note' => [ 'class' => XEditableColumn::class, @@ -106,12 +120,15 @@ public static function defaultColumns() ], 'autorenewal' => [ 'class' => BootstrapSwitchColumn::class, + 'filter' => false, 'url' => Url::toRoute('set-autorenewal'), - 'label' => Yii::t('hipanel', 'Autorenew'), + 'label' => Html::tag('span', Yii::t('hipanel', 'Autorenew')), 'enableSorting' => false, + 'encodeLabel' => false, 'popover' => Yii::t('hipanel:domain', 'The domain will be autorenewed for one year in a week before it expires if you have enough credit on your account'), 'popoverOptions' => [ 'placement' => 'bottom', + 'selector' => 'span', ] ], 'nameservers' => [