Blame view

frontend/views/reg/customer.php 1.78 KB
550eac02   Administrator   second
1
2
3
4
5
6
7
8
9
10
11
  <?php
  use yii\helpers\Html;
  use yii\web\View;
  use yii\bootstrap\ActiveForm;
  use yii\captcha\Captcha;
  
  
  
  $this->title = 'Регистрация Заказчика';
  $this->params['breadcrumbs'][] = $this->title;
  
3a8a9bd9   Administrator   image size
12
  $this->registerJsFile(Yii::$app->request->baseUrl.'/js/jquery.mask.js',['position'=>View::POS_END,'depends'=>['yii\web\YiiAsset']]);
550eac02   Administrator   second
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
  
  $this->registerJs("
  $('#user-phone').mask('(000) 000-0000');
  ", View::POS_READY, 'mask');
  ?>
  <div class="col-md-6 col-md-offset-3">
      <h1><?= Html::encode($this->title) ?></h1>
  
      <div class="alert alert-info">Потратив пару минут для регистрации на Бычок, вы сможете создавать заказы и находить исполнителей.</div>
  
      <?php $form = ActiveForm::begin([
          'id' => 'reg-form',
          'options' => ['class' => 'form-vertical'],
          'fieldConfig' => [
              //'template' => "{label}\n<div class=\"col-lg-5\">{input}</div>\n<div class=\"col-lg-8\">{error}</div>",
              //'labelOptions' => ['class' => 'col-lg-2 control-label'],
          ],
      ]); ?>
  
      <?= $form->field($model, 'username') ?>
  
      <?= $form->field($model, 'password')->passwordInput() ?>
  	
  	<?= $form->field($model, 'password_repeat')->passwordInput() ?>
  	
  	<?= $form->field($model, 'name') ?>
  	
  	<?= $form->field($model, 'surname') ?>
  	
  	<?= $form->field($model, 'phone') ?>
  	
  	<?= $form->field($model, 'verifyCode')->widget(Captcha::className(),['captchaAction'=>'reg/captcha']) ?>
  
  	<?= $form->field($model, 'role')->hiddenInput(['value'=>'customer'])->label(false); ?> 
      <div class="form-group">
              <?= Html::submitButton(' Регистрация ', ['class' => 'btn btn-primary btn-lg btn-block', 'name' => 'login-button']) ?>
      </div>
  
      <?php ActiveForm::end(); ?>
  
  </div>
3f2bc3d0   Administrator   first commit
54