コード例 #1
0
 public function registerJs()
 {
     if ($this->collapse_remember && $this->collapse) {
         $view = $this->getView();
         JCookieAsset::register($view);
         ExtAdminlteAsset::register($view);
     }
 }
コード例 #2
0
ファイル: form.php プロジェクト: infinitydevphp/infinity-gii
<style>
    form > div.row > div.col-lg-8 {
        width: 100%;
    }
</style>
<?php 
$addition = isset($addition) ? $addition : '';
$notVisible = isset($notVisible) && is_array($notVisible) ? $notVisible : [];
$titleBox = isset($titleBox) ? $titleBox : 'Origin table';
/* @var $this yii\web\View */
/* @var $form yii\widgets\ActiveForm */
/* @var $generator \infinitydevphp\gii\table\Generator */
use insolita\wgadminlte\Box;
\yii\web\YiiAsset::register($this);
\insolita\wgadminlte\JCookieAsset::register($this);
insolita\wgadminlte\ExtAdminlteAsset::register($this);
\dmstr\web\AdminLteAsset::register($this);
if (!in_array('db', $notVisible)) {
    echo $form->field($generator, $addition . 'db');
}
if (!in_array('migrationPath', $notVisible)) {
    echo $form->field($generator, $addition . 'migrationPath');
}
if (!in_array('useTablePrefix', $notVisible)) {
    echo $form->field($generator, $addition . 'useTablePrefix')->checkbox();
}
Box::begin(['type' => Box::TYPE_PRIMARY, 'withBorder' => true, 'title' => $titleBox, 'collapse' => true]);
if (!in_array('migrationName', $notVisible)) {
    echo $form->field($generator, $addition . 'migrationName')->hiddenInput()->label(false);
}
if (!in_array('tableName', $notVisible)) {