Merge pull request #16035 from proversity-org/proverity/NVN-enrollment-search-instructor-dashboard-fix
FIX: course enrollment search, FIX: hidden tabs on instructor dashboard
This commit is contained in:
@@ -155,7 +155,7 @@ class CourseEnrollmentAdmin(admin.ModelAdmin):
|
||||
list_display = ('id', 'course_id', 'mode', 'user', 'is_active',)
|
||||
list_filter = ('mode', 'is_active',)
|
||||
raw_id_fields = ('user',)
|
||||
search_fields = ('course_id', 'mode', 'user__username',)
|
||||
search_fields = ('course__id', 'mode', 'user__username',)
|
||||
|
||||
def queryset(self, request):
|
||||
return super(CourseEnrollmentAdmin, self).queryset(request).select_related('user')
|
||||
|
||||
@@ -123,7 +123,9 @@ from openedx.core.djangolib.markup import HTML
|
||||
<% is_hidden = section_data.get('is_hidden', False) %>
|
||||
## This is necessary so we don't scrape 'section_display_name' as a string.
|
||||
<% 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
|
||||
</ul>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user