예제 #1
0
*/
?>
                    <?php 
echo NsWidget::widget(['model' => $model, 'attribute' => 'nsips']);
?>

                </div>

                <!-- Authorization code -->
                <!--                    <div class=" tab-pane" id="authorization-code"></div>-->

                <!-- DNS records -->
                <div class="tab-pane" id="dns-records">
                    <?php 
echo DomainGridView::detailView(['model' => $model, 'boxed' => false, 'dataProvider' => new ArrayDataProvider(['allModels' => [$config['model'], 'pagination' => false]]), 'columns' => ['is_premium' => ['label' => Yii::t('hipanel:domain', 'Premium package'), 'value' => function ($model) {
    $enablePremiumLink = Html::a(Yii::t('hipanel:domain', 'Enable premium'), Url::toRoute(''), ['class' => 'btn btn-success btn-xs pull-right']);
    return $model->is_premium === 't' ? Yii::t('hipanel', 'Activated to') . Yii::$app->formatter->asDatetime($model->prem_expires) : sprintf('%s %s', Yii::t('hipanel', 'Not enabled'), $enablePremiumLink);
}, 'format' => 'raw'], 'premium_autorenewal' => ['class' => BootstrapSwitchColumn::class, 'attribute' => 'premium_autorenewal', 'label' => Yii::t('hipanel:domain', 'Premium package autorenewal'), 'filter' => false, 'url' => Url::toRoute(['@hdomain/set-paid-feature-autorenewal']), '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'), 'visible' => $model->is_premium === 't' ? true : false, 'pluginOptions' => ['onColor' => 'info']]]]);
?>
                    <?php 
if (Yii::$app->hasModule('dns')) {
    echo DnsZoneEditWidget::widget(['domainId' => $model->id, 'clientScriptWrap' => function ($js) {
        return new \yii\web\JsExpression("\n                                    \$('a[data-toggle=tab]').filter(function () {\n                                        return \$(this).attr('href') == '#dns-records';\n                                    }).on('shown.bs.tab', function (e) {\n                                        {$js}\n                                    });\n                                ");
    }]);
}
?>
                </div>

                <!-- URL forwarding -->
                <div class=" tab-pane" id="url-forwarding"></div>

                <!-- E-mail forwarding -->
예제 #2
0
echo $page->renderPerPage();
?>
    <?php 
$page->endContent();
?>

    <?php 
$page->beginContent('bulk-actions');
?>
        <?php 
echo DomainBulkActionsMenu::create()->render(['encodeLabels' => false, 'itemOptions' => ['tag' => false]]);
?>
    <?php 
$page->endContent('bulk-actions');
?>

    <?php 
$page->beginContent('table');
?>
        <?php 
$page->beginBulkForm();
?>
            <?php 
echo DomainGridView::widget(['boxed' => false, 'dataProvider' => $dataProvider, 'filterModel' => $model, 'columns' => ['checkbox', 'domain', 'actions', 'client', 'seller', 'state', 'whois_protected', 'is_secured', 'created_date', 'expires', 'autorenewal']]);
?>
        <?php 
$page->endBulkForm();
?>
    <?php 
$page->endContent();
$page->end();