2015-06-29 15:15:07 -04:00
|
|
|
extends /templates/base
|
|
|
|
|
|
|
|
block content
|
|
|
|
|
|
|
|
//- DO NOT localize / i18n
|
|
|
|
|
|
|
|
div
|
|
|
|
span *UNDER CONSTRUCTION, send feedback to
|
|
|
|
a.spl(href='mailto:team@codecombat.com') team@codecombat.com
|
|
|
|
div
|
2015-06-30 19:53:33 -04:00
|
|
|
input.student-view-checkbox(type='checkbox')
|
2015-06-29 15:15:07 -04:00
|
|
|
span.spl Student view
|
|
|
|
div TODO: fix ugly tabs
|
|
|
|
div TODO: student view
|
2015-07-01 18:11:40 -04:00
|
|
|
div TODO: aggregate student progress
|
|
|
|
div TODO: student level progress popups
|
2015-06-30 19:53:33 -04:00
|
|
|
div(style='border-bottom: 1px solid black;')
|
2015-06-29 15:15:07 -04:00
|
|
|
|
|
|
|
h1= course.title
|
2015-06-30 19:53:33 -04:00
|
|
|
p= course.description
|
|
|
|
p
|
|
|
|
strong Concepts:
|
|
|
|
ul
|
2015-07-09 20:53:32 -04:00
|
|
|
each concept in courseConcepts
|
|
|
|
li(data-i18n="concepts." + concept)
|
2015-06-30 19:53:33 -04:00
|
|
|
strong= course.duration
|
2015-06-29 15:15:07 -04:00
|
|
|
|
2015-07-09 20:53:32 -04:00
|
|
|
p
|
|
|
|
.form-group
|
|
|
|
span.spr Select your class
|
|
|
|
select.form-control.select-session
|
|
|
|
each instance in instances
|
|
|
|
option= instance.name
|
|
|
|
|
|
|
|
h3= instance.name
|
2015-06-30 19:53:33 -04:00
|
|
|
span.spl
|
|
|
|
button.btn.btn-xs.edit-class-name-btn edit class name
|
|
|
|
|
|
|
|
p
|
|
|
|
if instance.description
|
|
|
|
span= instance.description
|
|
|
|
span.spl
|
|
|
|
button.btn.btn-xs.edit-description-btn edit class description
|
|
|
|
else
|
|
|
|
div
|
|
|
|
button.btn.btn-xs.edit-description-btn add class description
|
|
|
|
|
|
|
|
.form-group
|
2015-07-09 20:53:32 -04:00
|
|
|
span.spr Select language
|
|
|
|
select.form-control.select-language
|
2015-06-29 15:15:07 -04:00
|
|
|
option(value="Python") Python
|
|
|
|
option(value="JavaScript") JavaScript
|
|
|
|
option(value="All Languages") All Languages
|
|
|
|
|
|
|
|
div(role='tabpanel')
|
|
|
|
ul.nav.nav-tabs(role='tablist')
|
|
|
|
li.active(role='presentation')
|
|
|
|
a(href='#progress', aria-controls='progress', role='tab', data-toggle='tab') Students
|
|
|
|
li(role='presentation')
|
|
|
|
a(href='#invite', aria-controls='invite', role='tab', data-toggle='tab') Add Students
|
|
|
|
li(role='presentation')
|
|
|
|
a(href='#levels', aria-controls='levels', role='tab', data-toggle='tab') Levels
|
|
|
|
|
|
|
|
.tab-content
|
|
|
|
.tab-pane.active#progress(role='tabpanel')
|
|
|
|
if instance.students
|
|
|
|
table.table.table-condensed
|
|
|
|
thead
|
|
|
|
tr
|
2015-07-01 18:11:40 -04:00
|
|
|
th
|
|
|
|
th
|
|
|
|
span.progress-header Progress
|
|
|
|
span.progress-key.progress-key-complete complete
|
|
|
|
span.progress-key.progress-key-started started
|
|
|
|
span.progress-key not started
|
|
|
|
if maxLastStartedIndex > 30
|
|
|
|
input.expand-progress-checkbox(type='checkbox')
|
|
|
|
span.spl.expand-progress-label(data-i18n="clans.exp_levels") Expand levels
|
2015-06-29 15:15:07 -04:00
|
|
|
tbody
|
|
|
|
each student in instance.students
|
|
|
|
tr
|
2015-07-01 18:11:40 -04:00
|
|
|
td
|
|
|
|
a= student
|
|
|
|
td.progress-cell
|
2015-07-09 20:53:32 -04:00
|
|
|
.level-progression-concepts Concepts
|
|
|
|
each concept in courseConcepts
|
|
|
|
if userConceptsMap[student] && userConceptsMap[student][concept] === 'complete'
|
|
|
|
span.spr.progress-level-cell.progress-level-cell-complete(data-i18n="concepts." + concept)
|
|
|
|
else if userConceptsMap[student] && userConceptsMap[student][concept] === 'started'
|
|
|
|
span.spr.progress-level-cell.progress-level-cell-started(data-i18n="concepts." + concept)
|
|
|
|
else
|
|
|
|
span.spr.progress-level-cell.progress-level-cell-not-started(data-i18n="concepts." + concept)
|
|
|
|
|
|
|
|
.level-progression-levels Levels
|
2015-07-01 18:11:40 -04:00
|
|
|
- var i = 0
|
|
|
|
each level in course.levels
|
2015-07-09 20:53:32 -04:00
|
|
|
if userLevelStateMap[student][level] === 'complete'
|
2015-07-01 18:11:40 -04:00
|
|
|
span.progress-level-cell.progress-level-cell-complete #{i + 1}
|
2015-07-01 18:36:33 -04:00
|
|
|
if showExpandedProgress || i === 0 || i === course.levels.length - 1
|
2015-07-01 18:11:40 -04:00
|
|
|
span.spl #{level}
|
2015-07-09 20:53:32 -04:00
|
|
|
else if userLevelStateMap[student][level] === 'started'
|
|
|
|
span.progress-level-cell.progress-level-cell-started #{i + 1} #{level}
|
2015-07-01 18:11:40 -04:00
|
|
|
else
|
|
|
|
span.progress-level-cell.level-progression-level-not-started #{i + 1}
|
2015-07-09 20:53:32 -04:00
|
|
|
if showExpandedProgress || i === 0
|
2015-07-01 18:11:40 -04:00
|
|
|
span.spl #{level}
|
|
|
|
- i++
|
2015-06-29 15:15:07 -04:00
|
|
|
|
|
|
|
.tab-pane#invite(role='tabpanel')
|
|
|
|
p Invite students to join this class.
|
2015-06-30 19:53:33 -04:00
|
|
|
if course.title !== 'Introduction to Computer Science'
|
|
|
|
p Student unlock code: #{instance.code}
|
|
|
|
p Class capacity: 34/50
|
2015-06-29 15:15:07 -04:00
|
|
|
textarea.textarea-emails(rows=3, placeholder="Enter student emails to invite, one per line")
|
|
|
|
div
|
|
|
|
button.btn.btn-success.btn-invite Send Invites
|
2015-07-01 18:11:40 -04:00
|
|
|
|
2015-06-29 15:15:07 -04:00
|
|
|
.tab-pane#levels(role='tabpanel')
|
2015-07-09 20:53:32 -04:00
|
|
|
table.table.table-striped.table-condensed
|
2015-06-29 15:15:07 -04:00
|
|
|
thead
|
|
|
|
tr
|
|
|
|
th
|
2015-07-09 20:53:32 -04:00
|
|
|
th Status
|
|
|
|
th Level
|
|
|
|
th Concepts
|
2015-06-29 15:15:07 -04:00
|
|
|
tbody
|
2015-07-09 20:53:32 -04:00
|
|
|
- var student = instance.students[0]
|
2015-06-29 15:15:07 -04:00
|
|
|
each level in course.levels
|
|
|
|
tr
|
|
|
|
td
|
2015-07-09 20:53:32 -04:00
|
|
|
button.btn.btn-success.btn-play-level(data-level=level) Play
|
|
|
|
td= userLevelStateMap[student][level]
|
|
|
|
td= level
|
2015-06-29 15:15:07 -04:00
|
|
|
td
|
2015-07-09 20:53:32 -04:00
|
|
|
each concept in courseConcepts
|
|
|
|
if levelConceptsMap[level] && levelConceptsMap[level][concept]
|
|
|
|
span.spr.progress-level-cell.level-progression-level-not-started(data-i18n="concepts." + concept)
|