Commit 01a3e99029031d0be78c721f70c187f143679f26
1 parent
01836820
add Vitaliy's widgets
Showing
2 changed files
with
4 additions
and
3 deletions
Show diff stats
backend/assets/FileUploadAsset.php
@@ -19,9 +19,11 @@ use yii\web\AssetBundle; | @@ -19,9 +19,11 @@ use yii\web\AssetBundle; | ||
19 | class FileUploadAsset extends AssetBundle | 19 | class FileUploadAsset extends AssetBundle |
20 | { | 20 | { |
21 | public $sourcePath = '@bower/blueimp-file-upload/'; | 21 | public $sourcePath = '@bower/blueimp-file-upload/'; |
22 | + | ||
22 | public $css = [ | 23 | public $css = [ |
23 | 'css/jquery.fileupload.css' | 24 | 'css/jquery.fileupload.css' |
24 | ]; | 25 | ]; |
26 | + | ||
25 | public $js = [ | 27 | public $js = [ |
26 | 'js/vendor/jquery.ui.widget.js', | 28 | 'js/vendor/jquery.ui.widget.js', |
27 | 'js/jquery.iframe-transport.js', | 29 | 'js/jquery.iframe-transport.js', |
frontend/controllers/SiteController.php
@@ -183,9 +183,8 @@ class SiteController extends Controller | @@ -183,9 +183,8 @@ class SiteController extends Controller | ||
183 | * | 183 | * |
184 | * @return mixed | 184 | * @return mixed |
185 | */ | 185 | */ |
186 | - public function actionSignup() | 186 | + public function actionRegistration() |
187 | { | 187 | { |
188 | - $this->layout = 'admin'; | ||
189 | 188 | ||
190 | $model = new SignupForm(); | 189 | $model = new SignupForm(); |
191 | if ($model->load(Yii::$app->request->post())) { | 190 | if ($model->load(Yii::$app->request->post())) { |
@@ -203,7 +202,7 @@ class SiteController extends Controller | @@ -203,7 +202,7 @@ class SiteController extends Controller | ||
203 | } | 202 | } |
204 | } | 203 | } |
205 | 204 | ||
206 | - return $this->render('signup', [ | 205 | + return $this->render('registration', [ |
207 | 'model' => $model, | 206 | 'model' => $model, |
208 | ]); | 207 | ]); |
209 | } | 208 | } |