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
a2a0f46d
Commit
a2a0f46d
authored
Apr 14, 2016
by
Shakarim Sapa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Вывели в отображение список прикрепленных файлов
parent
0f1ee007
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
common/modules/analyticsSchool/controllers/LessonAdminController.php
...les/analyticsSchool/controllers/LessonAdminController.php
+6
-0
common/modules/analyticsSchool/views/lesson-admin/view.php
common/modules/analyticsSchool/views/lesson-admin/view.php
+12
-0
No files found.
common/modules/analyticsSchool/controllers/LessonAdminController.php
View file @
a2a0f46d
...
@@ -73,9 +73,15 @@ class LessonAdminController extends AdminController {
...
@@ -73,9 +73,15 @@ class LessonAdminController extends AdminController {
* @return string
* @return string
*/
*/
public
function
actionView
(
$id
){
public
function
actionView
(
$id
){
$files
=
new
ActiveDataProvider
([
'query'
=>
AnalyticsSchoolLessonFile
::
find
()
->
where
([
'lesson_id'
=>
$id
])
]);
return
$this
->
render
(
return
$this
->
render
(
'view'
,
[
'view'
,
[
'model'
=>
$this
->
findModel
(
$id
),
'model'
=>
$this
->
findModel
(
$id
),
'files'
=>
$files
]
]
);
);
}
}
...
...
common/modules/analyticsSchool/views/lesson-admin/view.php
View file @
a2a0f46d
<?php
<?php
use
yii\widgets\DetailView
;
use
yii\widgets\DetailView
;
use
\common\modules\analyticsSchool\models\AnalyticsSchoolLesson
;
use
\common\modules\analyticsSchool\models\AnalyticsSchoolLesson
;
use
\yii\grid\GridView
;
/** @var AnalyticsSchoolLesson $model */
/** @var AnalyticsSchoolLesson $model */
?>
?>
...
@@ -24,3 +25,14 @@ use \common\modules\analyticsSchool\models\AnalyticsSchoolLesson;
...
@@ -24,3 +25,14 @@ use \common\modules\analyticsSchool\models\AnalyticsSchoolLesson;
]);
]);
?>
?>
</div>
</div>
<div
class=
"analytics-school-files-view"
>
<?=
GridView
::
widget
([
'dataProvider'
=>
$files
,
'columns'
=>
[
[
'class'
=>
'yii\grid\SerialColumn'
],
'title'
,
'file'
,
],
]);
?>
</div>
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