1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* @var \inblank\activeuser\models\forms\ResendForm $model |
4
|
|
|
*/ |
5
|
|
|
use yii\helpers\Html; |
6
|
|
|
use yii\widgets\ActiveForm; |
7
|
|
|
|
8
|
|
|
$this->title = Yii::t('activeuser_frontend', 'Resend confirm message'); |
9
|
|
|
$this->params['breadcrumbs'][] = $this->title; |
10
|
|
|
?> |
11
|
|
|
<div class="row"> |
12
|
|
|
<div class="col-md-6 col-md-offset-3 col-sm-8 col-sm-offset-2"> |
13
|
|
|
<div id="form-resend" class="panel panel-warning"> |
14
|
|
|
<div class="panel-heading"> |
15
|
|
|
<h3 class="panel-title"><?= Html::encode($this->title) ?></h3> |
16
|
|
|
</div> |
17
|
|
|
<div class="panel-body"> |
18
|
|
|
<?php $form = ActiveForm::begin([ |
19
|
|
|
'enableAjaxValidation' => false, |
20
|
|
|
'enableClientValidation' => false, |
21
|
|
|
'enableClientScript' => false, |
22
|
|
|
'validateOnBlur' => false, |
23
|
|
|
'validateOnType' => false, |
24
|
|
|
'validateOnChange' => false, |
25
|
|
|
]) ?> |
26
|
|
|
<?= $form->field($model, 'email', [ |
27
|
|
|
'inputOptions' => [ |
28
|
|
|
'autofocus' => 'autofocus', |
29
|
|
|
'class' => 'form-control', |
30
|
|
|
'tabindex' => '1', |
31
|
|
|
], |
32
|
|
|
]) ?> |
33
|
|
|
|
34
|
|
|
<?= Html::submitButton(Yii::t('activeuser_frontend', 'Resend message'), [ |
35
|
|
|
'class' => 'btn btn-warning btn-block', 'tabindex' => '2' |
36
|
|
|
]) ?> |
37
|
|
|
|
38
|
|
|
<?php ActiveForm::end(); ?> |
39
|
|
|
</div> |
40
|
|
|
</div> |
41
|
|
|
<div class="text-center"> |
42
|
|
|
<p class="activeuser-login"> |
43
|
|
|
<?= Html::a(Yii::t('activeuser_frontend', 'Sign in'), ['/activeuser/account/login'], ['tabindex' => '3']) ?> |
44
|
|
|
</p> |
45
|
|
View Code Duplication |
<?php if ($model->module->enableRegistration): ?> |
|
|
|
|
46
|
|
|
<p class="activeuser-register"> |
47
|
|
|
<?= Html::a(Yii::t('activeuser_frontend', "Don't have an account? Sign up!"), ['/activeuser/account/register'], ['tabindex' => '4']) ?> |
48
|
|
|
</p> |
49
|
|
|
<?php endif ?> |
50
|
|
|
<?php if ($model->module->enablePasswordRestore): ?> |
51
|
|
|
<p class="activeuser-restore"> |
52
|
|
|
<?= Html::a(Yii::t('activeuser_frontend', 'Forgot password?'), ['/activeuser/account/restore'], ['tabindex' => '5']) ?> |
53
|
|
|
</p> |
54
|
|
|
<?php endif; ?> |
55
|
|
|
</div> |
56
|
|
|
</div> |
57
|
|
|
</div> |
58
|
|
|
|
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.