index.php
2.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
use yii\helpers\Html;
/**
* @var $model \frontend\modules\user\models\Profile
*/
//$this->title = Yii::t('user', 'Profile');
?>
<div class="row">
<div class="col-md-6 col-md-offset-3 profile_form">
<div class="row">
<div class="col-sm-6 form-group profile_form_title">
<?= Yii::t('user', 'Profile') ?>
</div>
<div class="col-sm-6 form-group" style="text-align: right">
<?= Html::a(Yii::t('user', 'Change password'), ['/user/password/change'],
['class' => 'my_blue_btn']) ?>
</div>
</div>
<div class="row">
<div class="col-sm-6 form-group">
<div class="col-sm-12 form-group line_bottom">
<?= $model['first_name'] ?>
</div>
</div>
<div class="col-sm-6 form-group">
<div class="col-sm-12 form-group line_bottom">
<?= $model['last_name'] ?>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6 form-group ext-muted">
<div class="col-sm-12 line_bottom form-group <?= (!$model['phone']) ? ' text-muted' : '' ?>">
<?= ($model['phone']) ? $model['phone']: '*'.$model->getAttributeLabel('phone') ?>
</div>
</div>
<div class="col-sm-6 form-group">
<div class="col-sm-12 line_bottom form-group">
<?= $model['user']['email'] ?>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6 form-group">
<div class="col-sm-12 line_bottom form-group <?= (!$model['company']) ? ' text-muted' : '' ?>">
<?= ($model['company']) ? $model['company']: '*'.$model->getAttributeLabel('company') ?>
</div>
</div>
<div class="col-sm-6 form-group">
<div class="col-sm-12 line_bottom form-group <?= (!$model['website']) ? ' text-muted' : '' ?>">
<?= ($model['website']) ? $model['website']: '*'.$model->getAttributeLabel('website') ?>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 form-group" style="text-align: center">
<?= Html::a(Yii::t('app', 'Edit'), [
'/user/profile/update'
], [
'class' => 'my_yellow_btn btn'
]) ?>
</div>
</div>
</div>
</div>