Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
edx-platform
Commits
a4d60b7f
Commit
a4d60b7f
authored
Sep 18, 2017
by
Nico van Niekerk
Committed by
Dillon Dumesnil
Oct 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIX: course enrollment search, FIX: hidden tabs on instructor dashboard
parent
a1956116
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
common/djangoapps/student/admin.py
+1
-1
lms/templates/instructor/instructor_dashboard_2/instructor_dashboard_2.html
+3
-1
No files found.
common/djangoapps/student/admin.py
View file @
a4d60b7f
...
@@ -155,7 +155,7 @@ class CourseEnrollmentAdmin(admin.ModelAdmin):
...
@@ -155,7 +155,7 @@ class CourseEnrollmentAdmin(admin.ModelAdmin):
list_display
=
(
'id'
,
'course_id'
,
'mode'
,
'user'
,
'is_active'
,)
list_display
=
(
'id'
,
'course_id'
,
'mode'
,
'user'
,
'is_active'
,)
list_filter
=
(
'mode'
,
'is_active'
,)
list_filter
=
(
'mode'
,
'is_active'
,)
raw_id_fields
=
(
'user'
,)
raw_id_fields
=
(
'user'
,)
search_fields
=
(
'course_id'
,
'mode'
,
'user__username'
,)
search_fields
=
(
'course_
_
id'
,
'mode'
,
'user__username'
,)
def
queryset
(
self
,
request
):
def
queryset
(
self
,
request
):
return
super
(
CourseEnrollmentAdmin
,
self
)
.
queryset
(
request
)
.
select_related
(
'user'
)
return
super
(
CourseEnrollmentAdmin
,
self
)
.
queryset
(
request
)
.
select_related
(
'user'
)
...
...
lms/templates/instructor/instructor_dashboard_2/instructor_dashboard_2.html
View file @
a4d60b7f
...
@@ -123,7 +123,9 @@ from openedx.core.djangolib.markup import HTML
...
@@ -123,7 +123,9 @@ from openedx.core.djangolib.markup import HTML
<
%
is_hidden =
section_data.get('is_hidden',
False
)
%
>
<
%
is_hidden =
section_data.get('is_hidden',
False
)
%
>
## This is necessary so we don't scrape 'section_display_name' as a string.
## This is necessary so we don't scrape 'section_display_name' as a string.
<
%
dname =
section_data['section_display_name']
%
>
<
%
dname =
section_data['section_display_name']
%
>
<li
class=
"nav-item"
><button
type=
"button"
class=
"btn-link ${ section_data['section_key'] }${' hidden' if is_hidden else ''}"
data-section=
"${ section_data['section_key'] }"
>
${_(dname)}
</button></li>
% if not is_hidden:
<li
class=
"nav-item"
><button
type=
"button"
class=
"btn-link ${ section_data['section_key'] }${' hidden' if is_hidden else ''}"
data-section=
"${ section_data['section_key'] }"
>
${_(dname)}
</button></li>
% endif
% endfor
% endfor
</ul>
</ul>
...
...
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