From 226de2e682f8d3a15e324e7f76021bf73c5d9bf1 Mon Sep 17 00:00:00 2001 From: zhegal Date: Tue, 31 Oct 2017 15:36:34 +0200 Subject: [PATCH] -translated form labels --- common/messages/ru/app.php | 3 +++ frontend/views/comment/artbox_comment_form.php | 6 +++--- frontend/views/site/comment/artbox_comment_form.php | 6 +++--- frontend/web/css/custom.css | 2 +- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/common/messages/ru/app.php b/common/messages/ru/app.php index 69bbb62..9a66823 100755 --- a/common/messages/ru/app.php +++ b/common/messages/ru/app.php @@ -18,4 +18,7 @@ 'Are you sure you want to delete this item?' => 'Вы уверены, что хотите удалить этот объект?', 'Settings' => 'Настройки', 'Submit comment' => 'Отправить комментарий', + 'Username' => 'Имя', + 'Email' => 'Email', + 'Text' => 'Текст сообщения', ]; \ No newline at end of file diff --git a/frontend/views/comment/artbox_comment_form.php b/frontend/views/comment/artbox_comment_form.php index acf9544..43f0177 100755 --- a/frontend/views/comment/artbox_comment_form.php +++ b/frontend/views/comment/artbox_comment_form.php @@ -51,12 +51,12 @@ } if (\Yii::$app->user->isGuest) { echo $form->field($comment_model, 'username', [ 'options' => [ 'class' => 'form-group input_bl' ] ]) - ->textInput(); + ->textInput()->label('Ваше имя'); echo $form->field($comment_model, 'email', [ 'options' => [ 'class' => 'form-group input_bl' ] ]) - ->textInput([ 'options' => [ 'class' => 'form-control' ] ]); + ->textInput([ 'options' => [ 'class' => 'form-control' ] ])->label('Email'); } echo $form->field($comment_model, 'text', [ 'options' => [ 'class' => 'form-group input_bl area_bl' ] ]) - ->textarea(); + ->textarea()->label('Текст сообщения'); echo Html::tag( 'div', Html::submitButton( diff --git a/frontend/views/site/comment/artbox_comment_form.php b/frontend/views/site/comment/artbox_comment_form.php index df2fdd2..401c393 100755 --- a/frontend/views/site/comment/artbox_comment_form.php +++ b/frontend/views/site/comment/artbox_comment_form.php @@ -50,12 +50,12 @@ } if (\Yii::$app->user->isGuest) { echo $form->field($comment_model, 'username', [ 'options' => [ 'class' => 'form-group input_bl' ] ]) - ->textInput(); + ->textInput()->label('Ваше имя'); echo $form->field($comment_model, 'email', [ 'options' => [ 'class' => 'form-group input_bl' ] ]) - ->textInput(); + ->textInput()->label('Email'); } echo $form->field($comment_model, 'text', [ 'options' => [ 'class' => 'form-group input_bl area_bl' ] ]) - ->textarea(); + ->textarea()->label('Текст сообщения'); echo Html::tag( 'div', Html::submitButton( diff --git a/frontend/web/css/custom.css b/frontend/web/css/custom.css index 5a60a7d..cba7a22 100755 --- a/frontend/web/css/custom.css +++ b/frontend/web/css/custom.css @@ -470,7 +470,7 @@ div.modal-title{ text-decoration:none; } .footer-copyrights{ - margin-top:-55px; + margin-top:-15px; } #blog-listing-big .post .author-category, #blog-homepage .post .author-category { color: #999999; -- libgit2 0.21.4