Commit 226de2e682f8d3a15e324e7f76021bf73c5d9bf1
1 parent
0f712ced
-translated form labels
Showing
4 changed files
with
10 additions
and
7 deletions
Show diff stats
common/messages/ru/app.php
... | ... | @@ -18,4 +18,7 @@ |
18 | 18 | 'Are you sure you want to delete this item?' => 'Вы уверены, что хотите удалить этот объект?', |
19 | 19 | 'Settings' => 'Настройки', |
20 | 20 | 'Submit comment' => 'Отправить комментарий', |
21 | + 'Username' => 'Имя', | |
22 | + 'Email' => 'Email', | |
23 | + 'Text' => 'Текст сообщения', | |
21 | 24 | ]; |
22 | 25 | \ No newline at end of file | ... | ... |
frontend/views/comment/artbox_comment_form.php
... | ... | @@ -51,12 +51,12 @@ |
51 | 51 | } |
52 | 52 | if (\Yii::$app->user->isGuest) { |
53 | 53 | echo $form->field($comment_model, 'username', [ 'options' => [ 'class' => 'form-group input_bl' ] ]) |
54 | - ->textInput(); | |
54 | + ->textInput()->label('Ваше имя'); | |
55 | 55 | echo $form->field($comment_model, 'email', [ 'options' => [ 'class' => 'form-group input_bl' ] ]) |
56 | - ->textInput([ 'options' => [ 'class' => 'form-control' ] ]); | |
56 | + ->textInput([ 'options' => [ 'class' => 'form-control' ] ])->label('Email'); | |
57 | 57 | } |
58 | 58 | echo $form->field($comment_model, 'text', [ 'options' => [ 'class' => 'form-group input_bl area_bl' ] ]) |
59 | - ->textarea(); | |
59 | + ->textarea()->label('Текст сообщения'); | |
60 | 60 | echo Html::tag( |
61 | 61 | 'div', |
62 | 62 | Html::submitButton( | ... | ... |
frontend/views/site/comment/artbox_comment_form.php
... | ... | @@ -50,12 +50,12 @@ |
50 | 50 | } |
51 | 51 | if (\Yii::$app->user->isGuest) { |
52 | 52 | echo $form->field($comment_model, 'username', [ 'options' => [ 'class' => 'form-group input_bl' ] ]) |
53 | - ->textInput(); | |
53 | + ->textInput()->label('Ваше имя'); | |
54 | 54 | echo $form->field($comment_model, 'email', [ 'options' => [ 'class' => 'form-group input_bl' ] ]) |
55 | - ->textInput(); | |
55 | + ->textInput()->label('Email'); | |
56 | 56 | } |
57 | 57 | echo $form->field($comment_model, 'text', [ 'options' => [ 'class' => 'form-group input_bl area_bl' ] ]) |
58 | - ->textarea(); | |
58 | + ->textarea()->label('Текст сообщения'); | |
59 | 59 | echo Html::tag( |
60 | 60 | 'div', |
61 | 61 | Html::submitButton( | ... | ... |
frontend/web/css/custom.css