Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taskonsite-архив-перенесен
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitry Korolev
taskonsite-архив-перенесен
Commits
fa4327b2
Commit
fa4327b2
authored
Jan 26, 2016
by
Олег Гиммельшпах
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix reviews
parent
bb6ad369
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
13 deletions
+10
-13
common/modules/reviews/controllers/ReviewAdminController.php
common/modules/reviews/controllers/ReviewAdminController.php
+8
-7
common/modules/reviews/forms/ReviewForm.php
common/modules/reviews/forms/ReviewForm.php
+0
-4
common/modules/reviews/models/Reviews.php
common/modules/reviews/models/Reviews.php
+2
-2
No files found.
common/modules/reviews/controllers/ReviewAdminController.php
View file @
fa4327b2
...
@@ -28,12 +28,12 @@ class ReviewAdminController extends AdminController
...
@@ -28,12 +28,12 @@ class ReviewAdminController extends AdminController
public
static
function
actionsTitles
()
{
public
static
function
actionsTitles
()
{
return
[
return
[
"Create"
=>
"Добавление
группы
"
,
"Create"
=>
"Добавление
отзыва
"
,
"Update"
=>
"Редактирование
группы
"
,
"Update"
=>
"Редактирование
отзыва
"
,
"View"
=>
"Просмотр
группы
"
,
"View"
=>
"Просмотр
отзыва
"
,
"Manage"
=>
"Управление
групп
ами"
,
"Manage"
=>
"Управление
отзыв
ами"
,
"Delete"
=>
"Удаление
группы
"
,
"Delete"
=>
"Удаление
отзыва
"
,
"Updateanswer"
=>
"Ответить"
,
"Update
-
answer"
=>
"Ответить"
,
];
];
}
}
...
@@ -42,7 +42,8 @@ class ReviewAdminController extends AdminController
...
@@ -42,7 +42,8 @@ class ReviewAdminController extends AdminController
* $id integer
* $id integer
* @return mixed
* @return mixed
*/
*/
public
function
actionUpdateanswer
(
$id
)
{
public
function
actionUpdateAnswer
(
$id
)
{
$model
=
$this
->
findModel
(
$id
);
$model
=
$this
->
findModel
(
$id
);
\yii
::
$app
->
controller
->
page_title
=
'Ответ на отзыв <small>'
.
$model
->
user
->
email
.
'</small>'
;
\yii
::
$app
->
controller
->
page_title
=
'Ответ на отзыв <small>'
.
$model
->
user
->
email
.
'</small>'
;
...
...
common/modules/reviews/forms/ReviewForm.php
View file @
fa4327b2
...
@@ -21,10 +21,6 @@ return [
...
@@ -21,10 +21,6 @@ return [
'type'
=>
'dropdownlist'
,
'type'
=>
'dropdownlist'
,
'items'
=>
ArrayHelper
::
map
(
\common\modules\languages\models\Languages
::
find
()
->
all
(),
'code'
,
'name'
)
'items'
=>
ArrayHelper
::
map
(
\common\modules\languages\models\Languages
::
find
()
->
all
(),
'code'
,
'name'
)
],
],
'user_id'
=>
[
'type'
=>
'dropdownlist'
,
'items'
=>
ArrayHelper
::
map
(
\common\modules\scoring\models\ScClient
::
find
()
->
all
(),
'id'
,
'fullName'
),
],
'date'
=>
[
'type'
=>
'date'
,
'class'
=>
'form-control'
,],
'date'
=>
[
'type'
=>
'date'
,
'class'
=>
'form-control'
,],
'text'
=>
[
'type'
=>
'textarea'
,
'class'
=>
'form-control'
],
'text'
=>
[
'type'
=>
'textarea'
,
'class'
=>
'form-control'
],
'<a id="doAnswer" style="cursor: pointer;" onclick="$(this).next().next().slideToggle(); return false;">Ответить</a>'
.
'<a id="doAnswer" style="cursor: pointer;" onclick="$(this).next().next().slideToggle(); return false;">Ответить</a>'
.
...
...
common/modules/reviews/models/Reviews.php
View file @
fa4327b2
...
@@ -91,8 +91,8 @@ class Reviews extends \common\components\ActiveRecordModel
...
@@ -91,8 +91,8 @@ class Reviews extends \common\components\ActiveRecordModel
public
function
rules
()
public
function
rules
()
{
{
return
[
return
[
[[
'
user_id'
,
'
text'
,
'state'
,
'date'
,
'notification_send'
,
'show_in_module'
],
'required'
],
[[
'text'
,
'state'
,
'date'
,
'notification_send'
,
'show_in_module'
],
'required'
],
[[
'
user_id'
,
'
admin_id'
,
'priority'
,
'notification_send'
,
'order'
,
'cat_id'
,
'show_in_module'
,
'rate_usability'
,
'rate_loyality'
,
'rate_profit'
],
'integer'
],
[[
'admin_id'
,
'priority'
,
'notification_send'
,
'order'
,
'cat_id'
,
'show_in_module'
,
'rate_usability'
,
'rate_loyality'
,
'rate_profit'
],
'integer'
],
[[
'text'
,
'state'
,
'attendant_products'
],
'string'
],
[[
'text'
,
'state'
,
'attendant_products'
],
'string'
],
[[
'admin_id'
],
'adminIdValidate'
],
[[
'admin_id'
],
'adminIdValidate'
],
[[
'date'
,
'answer'
,
'good'
,
'bad'
,
'date_create'
,
'notification_date'
,
'rate_usability'
,
'rate_loyality'
,
'rate_profit'
,
'title'
,
'order'
],
'safe'
],
[[
'date'
,
'answer'
,
'good'
,
'bad'
,
'date_create'
,
'notification_date'
,
'rate_usability'
,
'rate_loyality'
,
'rate_profit'
,
'title'
,
'order'
],
'safe'
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment