Commit 89571990fcb523dff173395b019d035b01d8dee2
1 parent
3e842416
tokar commit
Showing
2 changed files
with
83 additions
and
31 deletions
Show diff stats
frontend/views/accounts/contacts.php
| @@ -7,41 +7,79 @@ | @@ -7,41 +7,79 @@ | ||
| 7 | use yii\helpers\Html; | 7 | use yii\helpers\Html; |
| 8 | use yii\widgets\ActiveForm; | 8 | use yii\widgets\ActiveForm; |
| 9 | 9 | ||
| 10 | - $this->title = 'Мой профиль'; | 10 | + $this->title = 'Контакты'; |
| 11 | $this->params['breadcrumbs'][] = $this->title; | 11 | $this->params['breadcrumbs'][] = $this->title; |
| 12 | $user = \Yii::$app->user->identity; | 12 | $user = \Yii::$app->user->identity; |
| 13 | ?> | 13 | ?> |
| 14 | 14 | ||
| 15 | -<h1><?= $this->title ?></h1> | ||
| 16 | -<p>Будут видны всем</p> | ||
| 17 | -<?php | 15 | +<div class="login-left-column-title style"><span><?= $this->title ?></span><p class="login-left-column-title-hint">Будут видны всем</p></div> |
| 16 | + | ||
| 17 | + | ||
| 18 | +<div class=" admin-contacts-wr style"> | ||
| 19 | + <?php | ||
| 18 | $form = ActiveForm::begin (); | 20 | $form = ActiveForm::begin (); |
| 19 | -?> | ||
| 20 | -<?= FieldEditor::widget ( | ||
| 21 | - [ | ||
| 22 | - 'template' => 'phone', 'item_id' => $user->id, 'model' => 'common\models\User', 'language' => 'ru', | ||
| 23 | - ] | ||
| 24 | -); ?> | ||
| 25 | -<?= $form->field ($user_info, 'social_vk') | ||
| 26 | - ->label ('Vk.com') | ||
| 27 | - ->textInput () ?> | ||
| 28 | -<?= $form->field ($user_info, 'social_fb') | ||
| 29 | - ->label ('FaceBook.com') | ||
| 30 | - ->textInput () ?> | ||
| 31 | -<?= $form->field ($user_info, 'social_in') | ||
| 32 | - ->label ('LinkedIn.com') | ||
| 33 | - ->textInput () ?> | ||
| 34 | -<?= $form->field ($user_info, 'social_t') | ||
| 35 | - ->label ('Twitter.com') | ||
| 36 | - ->textInput () ?> | ||
| 37 | -<?= FieldEditor::widget ( | ||
| 38 | - [ | ||
| 39 | - 'template' => 'site', 'item_id' => $user->id, 'model' => 'common\models\User', 'language' => 'ru', | ||
| 40 | - ] | ||
| 41 | -); ?> | ||
| 42 | -<?php | ||
| 43 | - echo Html::submitButton ('submit'); | ||
| 44 | - $form->end (); | ||
| 45 | -?> | 21 | + ?> |
| 22 | + <div class="input-blocks-wrapper"> | ||
| 23 | + <div class="input-blocks"> | ||
| 24 | + <?= FieldEditor::widget ( | ||
| 25 | + [ | ||
| 26 | + 'template' => 'phone', 'item_id' => $user->id, 'model' => 'common\models\User', 'language' => 'ru', | ||
| 27 | + ] | ||
| 28 | + ); ?> | ||
| 29 | + </div> | ||
| 30 | + </div> | ||
| 31 | + | ||
| 32 | + <div class="input-blocks-wrapper"> | ||
| 33 | + <div class="input-blocks"> | ||
| 34 | + <?= $form->field ($user_info, 'social_vk') | ||
| 35 | + ->label ('Vk.com') | ||
| 36 | + ->textInput (['class'=> 'custom-input-2']); ?> | ||
| 37 | + </div> | ||
| 38 | + </div> | ||
| 39 | + | ||
| 40 | + <div class="input-blocks-wrapper"> | ||
| 41 | + <div class="input-blocks"> | ||
| 42 | + <?= $form->field ($user_info, 'social_fb') | ||
| 43 | + ->label ('FaceBook.com') | ||
| 44 | + ->textInput (['class'=> 'custom-input-2']); ?> | ||
| 45 | + </div> | ||
| 46 | + </div> | ||
| 47 | + | ||
| 48 | + <div class="input-blocks-wrapper"> | ||
| 49 | + <div class="input-blocks"> | ||
| 50 | + <?= $form->field ($user_info, 'social_in') | ||
| 51 | + ->label ('LinkedIn.com') | ||
| 52 | + ->textInput (['class'=> 'custom-input-2']); ?> | ||
| 53 | + </div> | ||
| 54 | + </div> | ||
| 55 | + | ||
| 56 | + <div class="input-blocks-wrapper"> | ||
| 57 | + <div class="input-blocks"> | ||
| 58 | + <?= $form->field ($user_info, 'social_t') | ||
| 59 | + ->label ('Twitter.com') | ||
| 60 | + ->textInput (['class'=> 'custom-input-2']); ?> | ||
| 61 | + </div> | ||
| 62 | + </div> | ||
| 63 | + | ||
| 64 | + <div class="input-blocks-wrapper"> | ||
| 65 | + <div class="input-blocks"> | ||
| 66 | + <?= FieldEditor::widget ( | ||
| 67 | + [ | ||
| 68 | + 'template' => 'site', 'item_id' => $user->id, 'model' => 'common\models\User', 'language' => 'ru', | ||
| 69 | + ] | ||
| 70 | + ); ?> | ||
| 71 | + </div> | ||
| 72 | + </div> | ||
| 73 | + | ||
| 74 | + <div class="input-blocks-wrapper"> | ||
| 75 | + <div class="admin-save-btn skills-save-btn style"> | ||
| 76 | + <?php | ||
| 77 | + echo Html::submitButton ('Сохранить',['class'=>'input-blocks-wrapper button']); | ||
| 78 | + $form->end (); | ||
| 79 | + ?> | ||
| 80 | + | ||
| 81 | + </div> | ||
| 82 | + </div> | ||
| 83 | +</div> | ||
| 46 | 84 | ||
| 47 | 85 |
frontend/web/css/style.css
| @@ -5504,4 +5504,18 @@ a.blog-new-link:hover{text-decoration: underline !important;} | @@ -5504,4 +5504,18 @@ a.blog-new-link:hover{text-decoration: underline !important;} | ||
| 5504 | display: block; | 5504 | display: block; |
| 5505 | border: none; | 5505 | border: none; |
| 5506 | outline: none; | 5506 | outline: none; |
| 5507 | +} | ||
| 5508 | +.login-left-column-title-hint { | ||
| 5509 | + font-size: 13px; | ||
| 5510 | + color: #b7b7b7; | ||
| 5511 | + padding: 0; | ||
| 5512 | + margin: 0; | ||
| 5513 | + height: 21px; | ||
| 5514 | + line-height: 21px; | ||
| 5515 | + float: left;;padding-bottom: 23px; | ||
| 5516 | + | ||
| 5517 | +} | ||
| 5518 | +.login-left-column-title span{float: left;display: block;padding-bottom: 23px} | ||
| 5519 | +.admin-contacts-wr legend { | ||
| 5520 | + display: none; | ||
| 5507 | } | 5521 | } |
| 5508 | \ No newline at end of file | 5522 | \ No newline at end of file |