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
edx
edx-platform
Commits
050b747b
Commit
050b747b
authored
Jul 24, 2015
by
Tim Krones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Display start date, end date, and number of sections (weeks) on "Course
Info" tab of instructor dashboard.
parent
614baab3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
lms/djangoapps/instructor/views/instructor_dashboard.py
+4
-0
lms/templates/instructor/instructor_dashboard_2/course_info.html
+16
-0
No files found.
lms/djangoapps/instructor/views/instructor_dashboard.py
View file @
050b747b
...
...
@@ -39,6 +39,7 @@ from course_modes.models import CourseMode, CourseModesArchive
from
student.roles
import
CourseFinanceAdminRole
,
CourseSalesAdminRole
from
certificates.models
import
CertificateGenerationConfiguration
from
certificates
import
api
as
certs_api
from
util.date_utils
import
get_default_time_display
from
class_dashboard.dashboard_data
import
get_section_display_name
,
get_array_section_has_problem
from
.tools
import
get_units_with_due_date
,
title_or_url
,
bulk_email_is_enabled_for_course
...
...
@@ -334,6 +335,9 @@ def _section_course_info(course, access):
'course_display_name'
:
course
.
display_name
,
'has_started'
:
course
.
has_started
(),
'has_ended'
:
course
.
has_ended
(),
'start_date'
:
get_default_time_display
(
course
.
start
),
'end_date'
:
get_default_time_display
(
course
.
end
),
'num_sections'
:
len
(
course
.
children
),
'list_instructor_tasks_url'
:
reverse
(
'list_instructor_tasks'
,
kwargs
=
{
'course_id'
:
unicode
(
course_key
)}),
}
...
...
lms/templates/instructor/instructor_dashboard_2/course_info.html
View file @
050b747b
...
...
@@ -58,6 +58,16 @@
<b>
${ section_data['course_display_name'] }
</b>
</li>
<li
class=
"field text is-not-editable"
id=
"field-course-start-date"
>
<label
for=
"course-start-date"
>
${_("Course Start Date:")}
</label>
<b>
${ section_data['start_date'] }
</b>
</li>
<li
class=
"field text is-not-editable"
id=
"field-course-end-date"
>
<label
for=
"course-end-date"
>
${_("Course End Date:")}
</label>
<b>
${ section_data['end_date'] }
</b>
</li>
<li
class=
"field text is-not-editable"
id=
"field-course-started"
>
<label
for=
"start-date"
>
${_("Has the course started?")}
</label>
...
...
@@ -73,6 +83,12 @@
<b>
${_("No")}
</b>
%endif
</li>
<li
class=
"field text is-not-editable"
id=
"field-course-num-sections"
>
<label
for=
"course-num-sections"
>
${_("Number of sections:")}
</label>
<b>
${ section_data['num_sections'] }
</b>
</li>
<li
class=
"field text is-not-editable"
id=
"field-grade-cutoffs"
>
<label
for=
"start-date"
>
${_("Grade Cutoffs:")}
</label>
<b>
${ section_data['grade_cutoffs'] }
</b>
...
...
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