From be42633137ae75531b26066dd8b5c502d81b38ea Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Fri, 5 Feb 2016 12:02:05 +0200 Subject: [PATCH] add Vitaliy's widgets --- console/migrations/m160204_151615_cities.php | 24 ++++++++++++++++++++++++ frontend/views/site/registration.php | 12 +++++++++--- 2 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 console/migrations/m160204_151615_cities.php diff --git a/console/migrations/m160204_151615_cities.php b/console/migrations/m160204_151615_cities.php new file mode 100644 index 0000000..ad08d46 --- /dev/null +++ b/console/migrations/m160204_151615_cities.php @@ -0,0 +1,24 @@ +createTable('{{%cities}}', [ + 'id' => $this->primaryKey(), + 'name' => $this->string(255), + 'is_active' => $this->smallInteger(), + 'parent' => $this->integer() + ], $tableOptions); + + } + + public function down() + { + $this->dropTable('{{%cities}}'); + } +} diff --git a/frontend/views/site/registration.php b/frontend/views/site/registration.php index 4a8370f..daf311e 100644 --- a/frontend/views/site/registration.php +++ b/frontend/views/site/registration.php @@ -1,5 +1,9 @@ registerJsFile('@web/js/selectize.js'); +/** + * @var $user common\models\User + * @var $user_info common\models\UserInfo + */ + use yii\widgets\ActiveForm; ?>
@@ -7,10 +11,12 @@
Регистрация
-
+
+ field($model, 'username')?> +
- +
-- libgit2 0.21.4