Skip to content

Commit

Permalink
Fix popover without link
Browse files Browse the repository at this point in the history
  • Loading branch information
tafid committed Dec 19, 2016
1 parent 0c25b16 commit ec38f82
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions src/grid/DomainGridView.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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' => [
Expand Down

0 comments on commit ec38f82

Please sign in to comment.