Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Alto
/
rkn
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 36a11839
authored
2021-06-17 11:42:43 +0300
by
san58
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
сортировка результирующего списка
+отобразил доп поля
1 parent
a4a3044d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletions
controllers/HostFreeController.php
views/host-free/index.php
controllers/HostFreeController.php
View file @
36a1183
...
...
@@ -48,6 +48,12 @@ class HostFreeController extends Controller
{
$searchModel
=
new
HostSearch
([
'wis_status'
=>
Host
::
STATUS_WIS_FREE
,
'status'
=>
Filter
::
STATUS_ON
,
'f1_status'
=>
Filter
::
STATUS_ON
]);
$dataProvider
=
$searchModel
->
search
(
Yii
::
$app
->
request
->
queryParams
);
$dataProvider
->
setSort
([
'defaultOrder'
=>
[
'date'
=>
SORT_DESC
]
]);
return
$this
->
render
(
'index'
,
[
'searchModel'
=>
$searchModel
,
...
...
views/host-free/index.php
View file @
36a1183
...
...
@@ -31,7 +31,25 @@ $this->params['breadcrumbs'][] = $this->title;
'domain'
,
'wis_date'
,
'tix'
,
'tix_date'
'tix_date'
,
'f2_status'
=>
[
'attribute'
=>
'f2_status'
,
'filter'
=>
\app\models\Host
::
getFStatus
(),
'format'
=>
'raw'
,
'value'
=>
function
(
$model
)
{
return
$model
::
getFStatus
(
$model
->
f2_status
);
},
],
'f3_status'
=>
[
'attribute'
=>
'f3_status'
,
'filter'
=>
\app\models\Host
::
getFStatus
(),
'format'
=>
'raw'
,
'value'
=>
function
(
$model
)
{
return
$model
::
getFStatus
(
$model
->
f3_status
);
},
],
],
]);
?>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment