Commit 04b7173a077e389829808e08c512b559d5059a9e

Authored by Yarik
2 parents 723a81cb 4a6500eb

Merge remote-tracking branch 'origin/master'

backend/assets/FileUploadAsset.php
... ... @@ -19,9 +19,11 @@ use yii\web\AssetBundle;
19 19 class FileUploadAsset extends AssetBundle
20 20 {
21 21 public $sourcePath = '@bower/blueimp-file-upload/';
  22 +
22 23 public $css = [
23 24 'css/jquery.fileupload.css'
24 25 ];
  26 +
25 27 public $js = [
26 28 'js/vendor/jquery.ui.widget.js',
27 29 'js/jquery.iframe-transport.js',
... ...
console/migrations/m160204_104222_specialization_add_fields.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\db\Migration;
  4 +
  5 +class m160204_104222_specialization_add_fields extends Migration
  6 +{
  7 + public function up()
  8 + {
  9 + $this->addColumn('specialization', 'status', $this->smallInteger());
  10 + $this->addColumn('specialization', 'background', $this->string(50));
  11 + }
  12 +
  13 + public function down()
  14 + {
  15 + $this->dropColumn('specialization', 'status');
  16 + $this->dropColumn('specialization', 'background');
  17 +
  18 + }
  19 +
  20 +
  21 +}
... ...
frontend/controllers/SiteController.php
... ... @@ -183,9 +183,8 @@ class SiteController extends Controller
183 183 *
184 184 * @return mixed
185 185 */
186   - public function actionSignup()
  186 + public function actionRegistration()
187 187 {
188   - $this->layout = 'admin';
189 188  
190 189 $model = new SignupForm();
191 190 if ($model->load(Yii::$app->request->post())) {
... ... @@ -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 206 'model' => $model,
208 207 ]);
209 208 }
... ...
frontend/views/site/registration.php
... ... @@ -120,7 +120,7 @@
120 120  
121 121 <div class="input-blocks-wrapper captcha">
122 122 <div class="input-blocks-captcha">
123   - <img id="accountsform-verifycode-image" src="images/captcha.png" alt="">
  123 + <img id="accountsform-verifycode-image" src="/images/captcha.png" alt="">
124 124 </div>
125 125 </div>
126 126  
... ...