Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-local_archive
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
uw-moodle
moodle-local_archive
Commits
04ceb3cd
Commit
04ceb3cd
authored
10 years ago
by
Matt Petro
Browse files
Options
Downloads
Patches
Plain Diff
UWMOODLE-668: When searching for archives, always show advanced columns to archive managers
Task-Url:
https://jira.doit.wisc.edu/jira/browse/UWMOODLE-668
parent
25754983
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
renderer.php
+3
-2
3 additions, 2 deletions
renderer.php
ui_component.php
+1
-1
1 addition, 1 deletion
ui_component.php
with
4 additions
and
3 deletions
renderer.php
+
3
−
2
View file @
04ceb3cd
...
...
@@ -24,6 +24,7 @@ class local_archive_renderer extends plugin_renderer_base {
$courses
=
$component
->
search
(
$page
*
$perpage
,
$perpage
);
$showadvanced
=
$component
->
get_showadvanced
();
$canshowadvanced
=
$component
->
can_show_advanced
();
// Get subject mapping
$subjects
=
array
();
...
...
@@ -69,7 +70,7 @@ class local_archive_renderer extends plugin_renderer_base {
/* Display archive selection table */
$output
.
=
html_writer
::
start_tag
(
'div'
,
array
(
'class'
=>
'ics-results'
));
$table
=
new
html_table
();
if
(
!
$showadvanced
)
{
if
(
!
$
can
showadvanced
)
{
$table
->
head
=
array
(
''
,
'Term'
,
'Catalog'
,
get_string
(
'fullnamecourse'
),
'Archived'
,
'Size'
);
}
else
{
$table
->
head
=
array
(
''
,
'Term'
,
'Catalog'
,
get_string
(
'fullnamecourse'
),
'Type'
,
'Filename'
,
'Archived'
,
'Size'
,
'Teachers'
);
...
...
@@ -107,7 +108,7 @@ class local_archive_renderer extends plugin_renderer_base {
if
(
$course
->
id
===
$selected
)
{
$inputparams
[
'checked'
]
=
'checked'
;
}
if
(
!
$showadvanced
)
{
if
(
!
$
can
showadvanced
)
{
$row
->
cells
=
array
(
html_writer
::
empty_tag
(
'input'
,
$inputparams
),
$term
,
...
...
This diff is collapsed.
Click to expand it.
ui_component.php
+
1
−
1
View file @
04ceb3cd
...
...
@@ -75,7 +75,7 @@ abstract class archive_course_search_base implements renderable {
}
public
function
get_showadvanced
()
{
if
(
$this
->
can_show_advanced
())
{
if
(
!
empty
(
$this
->
state
[
'advanced'
])
&&
$this
->
can_show_advanced
())
{
return
true
;
}
else
{
return
false
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment