diff --git a/console/migrations/m161227_115146_add_columns_to_int_property_table.php b/console/migrations/m161227_115146_add_columns_to_int_property_table.php new file mode 100644 index 0000000..3e074b6 --- /dev/null +++ b/console/migrations/m161227_115146_add_columns_to_int_property_table.php @@ -0,0 +1,22 @@ +addColumn('intellectual_property', 'author_role', $this->string(255)); + $this->addColumn('intellectual_property', 'percent', $this->string(255)); + $this->addColumn('intellectual_property', 'calculated', $this->string(255)); + $this->addColumn('intellectual_property', 'play_count', $this->string(255)); + } + + public function down() + { + $this->dropColumn('intellectual_property', 'play_count'); + $this->dropColumn('intellectual_property', 'calculated'); + $this->dropColumn('intellectual_property', 'percent'); + $this->dropColumn('intellectual_property', 'author_role'); + } + } diff --git a/frontend/assets/CabinetAsset.php b/frontend/assets/CabinetAsset.php index e67062b..9a489fc 100644 --- a/frontend/assets/CabinetAsset.php +++ b/frontend/assets/CabinetAsset.php @@ -21,7 +21,7 @@ class CabinetAsset extends AssetBundle ]; public $depends = [ 'yii\web\YiiAsset', - 'yii\bootstrap\BootstrapAsset', + 'yii\bootstrap\BootstrapPluginAsset', 'frontend\assets\AppAsset', ]; } diff --git a/frontend/views/cabinet/index.php b/frontend/views/cabinet/index.php index 70d38d2..b07d4b3 100644 --- a/frontend/views/cabinet/index.php +++ b/frontend/views/cabinet/index.php @@ -3,7 +3,9 @@ /* @var $this yii\web\View */ use frontend\assets\CabinetAsset; + use frontend\models\IntellectualProperty; use yii\helpers\Html; + use yii\widgets\ActiveForm; CabinetAsset::register($this); $this->title = 'My Yii Application'; @@ -14,28 +16,28 @@ Html::img( '/images/cabinet/logo.png', [ - 'width' => 129, + 'width' => 129, 'height' => 52, ] ), - ['cabinet/index'], + [ 'cabinet/index' ], [ 'class' => 'logo-cab', ] ) ?> -