Blame view

frontend/views/site/login.php 3.81 KB
950817c6   Alex Savenko   first commit
1
2
3
4
5
6
7
8
9
10
11
  <?php
      
      /* @var $this yii\web\View */
      /* @var $form yii\bootstrap\ActiveForm */
      /* @var $loginForm \common\models\LoginForm */
      /* @var $signupForm \common\models\SignupForm */
      
      use yii\bootstrap\ActiveForm;
      use yii\bootstrap\Html;
      use yii\helpers\Url;
      
10e74468   mzavalniuk   translate to ua r...
12
      $this->title = \Yii::t('app', 'registration');
950817c6   Alex Savenko   first commit
13
14
15
16
17
18
19
20
      $this->params[ 'breadcrumbs' ][] = $this->title;
  ?>
  <div id="content">
    <div class="container">
      
      <div class="row">
        <div class="col-md-6">
          <div class="box">
10e74468   mzavalniuk   translate to ua r...
21
            <h2 class="text-uppercase"><?php echo \Yii::t('app', 'New account'); ?></h2>
950817c6   Alex Savenko   first commit
22
            
10e74468   mzavalniuk   translate to ua r...
23
            <p class="lead"><?php echo \Yii::t('app', 'Not registered yet?'); ?></p>
950817c6   Alex Savenko   first commit
24
25
            <p class="text-muted"><?php echo \Yii::t(
                    'app',
10e74468   mzavalniuk   translate to ua r...
26
                    'registration_text',
950817c6   Alex Savenko   first commit
27
28
                    [
                        'link' => Html::a(
10e74468   mzavalniuk   translate to ua r...
29
                            \Yii::t('app', 'write to us'),
950817c6   Alex Savenko   first commit
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
                            [
                                'site/contact',
                            ]
                        ),
                    ]
                ); ?></p>
            
            <hr>
              
              <?php
                  $formSignup = ActiveForm::begin();
                  echo $formSignup->field($signupForm, 'username')
                                  ->textInput();
                  echo $formSignup->field($signupForm, 'email')
                                  ->textInput();
                  echo $formSignup->field($signupForm, 'password')
                                  ->passwordInput();
                  echo Html::tag(
                      'div',
                      Html::submitButton(
                          Html::icon(
                              'user-md',
                              [
                                  'prefix' => 'fa fa-',
                              ]
10e74468   mzavalniuk   translate to ua r...
55
                          ) . \Yii::t('app', 'Register now!'),
950817c6   Alex Savenko   first commit
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
                          [
                              'class' => 'btn btn-template-main',
                          ]
                      ),
                      [
                          'class' => 'text-center',
                      ]
                  );
                  $formSignup::end();
              ?>
          </div>
        </div>
        
        <div class="col-md-6">
          <div class="box">
10e74468   mzavalniuk   translate to ua r...
71
            <h2 class="text-uppercase"><?php echo \Yii::t('app', 'Enter'); ?></h2>
950817c6   Alex Savenko   first commit
72
            
10e74468   mzavalniuk   translate to ua r...
73
            <p class="lead"><?php echo \Yii::t('app', 'Already registered?'); ?></p>
950817c6   Alex Savenko   first commit
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
            
            <hr>
              
              <?php
                  $formLogin = ActiveForm::begin();
                  echo $formLogin->field($loginForm, 'username')
                                 ->textInput();
                  echo $formLogin->field($loginForm, 'password')
                                 ->passwordInput();
                  echo $formLogin->field($loginForm, 'rememberMe')
                                 ->checkbox();
                  ?>
            <a class="restore_password_" href="<?= Url::to(
                [
                    '/site/request-password-reset',
        
                ]
10e74468   mzavalniuk   translate to ua r...
91
            ) ?>"><?=Yii::t('app','Restore password')?></a>
950817c6   Alex Savenko   first commit
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
            <?php
                  echo Html::tag(
                      'div',
                      Html::submitButton(
                          Html::icon(
                              'sign-in',
                              [
                                  'prefix' => 'fa fa-',
                              ]
                          ) . \Yii::t('app', 'Login'),
                          [
                              'class' => 'btn btn-template-main',
                          ]
                      ),
                      [
                          'class' => 'text-center',
                      ]
                  );
                  $formSignup::end();
              ?>
          </div>
        </div>
      
      </div>
      <!-- /.row -->
    
    </div>
    <!-- /.container -->
  </div>