Merge pull request #9146 from open-craft/OC-791-course-timeline
Instructor Dashboard: Display info about course timeline
This commit is contained in:
@@ -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
|
||||
@@ -351,6 +352,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)}),
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user