Example #1
0
 /**
  * Registers required script for the plugin to work as DatePicker
  */
 public function registerClientScript()
 {
     $view = $this->getView();
     FancyBoxAsset::register($view);
     if ($this->mouse) {
         MousewheelAsset::register($view);
     }
     if ($this->helpers) {
         FancyBoxHelpersAsset::register($view);
     }
 }
Example #2
0
<?php

use yii\helpers\Html;
use yii\bootstrap\Tabs;
use yii\widgets\ActiveForm;
$this->title = 'Настройки';
if (isset(Yii::$app->controller->actionParams['page'])) {
    $this->params['breadcrumbs'][] = ['url' => ['index'], 'label' => $this->title];
    $this->params['breadcrumbs'][] = Yii::$app->params['modules'][Yii::$app->controller->actionParams['page']]['description'];
} else {
    $this->params['breadcrumbs'][] = $this->title;
}
\lenarx\admin\helpers\Backend::addControlLink(['rule' => 'BSettingsManage', 'label' => 'Управление настройками', 'url' => ['manage', 'page' => isset(Yii::$app->controller->actionParams['page']) ? Yii::$app->controller->actionParams['page'] : null]]);
\yii\jui\JuiAsset::register($this);
\common\themes\admin\widgets\touch_punch\TouchPunchAssets::register($this);
\newerton\fancybox\FancyBoxAsset::register($this);
?>

<?php 
if ($fields || $tabs) {
    ?>

    <?php 
    $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]);
    ?>

    <?php 
    if ($fields) {
        ?>

        <?php