mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 16:17:57 -05:00
e2d08fa7cf
Partially fix ActivateLicensesModal.spec [IN PROGRESS] Don't display deleted users Move userID to classroom.deletedMembers on user delete (not retroactive) Fix PDF links for course guides, remove old PDFs from repo Remove deprecated SalesView Remove underline for not-yet-linked student names Only show class select when there's more than one Ignore case when sorting student names Use student.broadName instead of name for display and sorting Fix initial load not showing progress after joining a course (hacky) Fix text entry for enrollment number input Fix enrollment statistics Fix enrollment stats completely (and add back in per-class unenrolled count) Add deletedMembers to classroom schema More fixes to enrollment stats (don't count nonmember prepaids) Don't use 0 as implicit false for openSpots Update suggested number of credit to buy automatically Fix classroom edit form ignoring cleared values Add alert text when more users selected than enrollments available Alert user when trying to assign course to unenrolled students Alert user when assigning course to nobody Add some tests for TeacherClassView bulk assign alerts Fix TeacherClassView tests failing without demos Use model/collection.fakeRequests :D Remove unused comment Fix handling of improperly sorted deleted users on clientside Add test for moving deleted users to deletedMembers Add script for moving all deleted classroom members to classroom.deletedMembers Completely rewrite tallying up enrollment statistics Fix some tests to not be dependent on logged-in user Address PR comments Fix default number of enrollments to buy Fix i18n for not enough enrollments Use custom error message for classroom name length
109 lines
3.8 KiB
Text
109 lines
3.8 KiB
Text
extends /templates/base-flat
|
|
|
|
block page_nav
|
|
include ./teacher-dashboard-nav.jade
|
|
|
|
block content
|
|
if me.isAnonymous() || (!me.isTeacher() && !view.classrooms.size())
|
|
.access-restricted.container.text-center.m-y-3
|
|
h5(data-i18n='teacher.access_restricted')
|
|
p(data-i18n='teacher.teacher_account_required')
|
|
if me.isAnonymous()
|
|
.login-button.btn.btn-lg.btn-primary(data-i18n='login.log_in')
|
|
a.btn.btn-lg.btn-primary-alt(href="/teachers/signup" data-i18n='teacher.create_teacher_account')
|
|
else
|
|
a.btn.btn-lg.btn-primary(href="/teachers/update-account" data-i18n="teachers_quote.convert_account_title")
|
|
button#logout-button.btn.btn-lg.btn-primary-alt(data-i18n="login.log_out")
|
|
|
|
.teacher-account-blurb.text-center.col-xs-6.col-xs-offset-3.m-y-3
|
|
h5(data-i18n='teacher.what_is_a_teacher_account')
|
|
p(data-i18n='teacher.teacher_account_explanation')
|
|
|
|
else
|
|
if !me.isTeacher()
|
|
.alert.alert-danger.text-center
|
|
.container
|
|
// DNT: Temporary
|
|
h3 ATTENTION: Please upgrade your account to a Teacher Account.
|
|
p
|
|
| We are transitioning to a new improved classroom management system for instructors.
|
|
| Please convert your account to ensure you retain access to your classrooms.
|
|
a.btn.btn-primary.btn-lg(href="/teachers/update-account") Upgrade to teacher account
|
|
|
|
.container.m-t-5
|
|
h3(data-i18n='teacher.enrollments')
|
|
h4
|
|
span(data-i18n='teacher.enrollments_blurb_1')
|
|
span 2–8
|
|
span(data-i18n='teacher.enrollments_blurb_2')
|
|
|
|
.row.m-t-3
|
|
.col-xs-4
|
|
+enrollmentStats
|
|
.col-xs-4
|
|
+addCredits
|
|
.col-xs-3.col-xs-offset-1
|
|
+howToEnroll
|
|
+quoteSection
|
|
|
|
mixin enrollmentStats
|
|
h5
|
|
span(data-i18n='teacher.credits_available')
|
|
span.spr :
|
|
= view.prepaids.totalAvailable()
|
|
.small-details
|
|
span(data-i18n='teacher.total_unique_students')
|
|
span.spr :
|
|
= view.totalEnrolled + view.totalNotEnrolled
|
|
.small-details
|
|
span(data-i18n='teacher.total_enrolled_students')
|
|
span.spr :
|
|
= view.totalEnrolled
|
|
|
|
h5.small-details.m-t-3
|
|
span(data-i18n='teacher.unenrolled_students')
|
|
each classroom in view.classrooms.models
|
|
if classroom.get('members').length > 0 && view.classroomNotEnrolledMap && view.classroomNotEnrolledMap[classroom.id] > 0
|
|
.small-details
|
|
span= classroom.get('name')
|
|
span.spr :
|
|
span= view.classroomNotEnrolledMap[classroom.id]
|
|
|
|
.small-details
|
|
span(data-i18n='teacher.total_unenrolled')
|
|
span.spr :
|
|
= view.totalNotEnrolled
|
|
|
|
//- .enroll-students.btn.btn-lg.btn-navy
|
|
//- span(data-i18n='teacher.enroll_students')
|
|
|
|
mixin addCredits
|
|
.text-center
|
|
h5(data-i18n='teacher.add_enrollment_credits')
|
|
div.m-t-1
|
|
input#students-input.text-center.enrollment-count(value=view.numberOfStudents type='number')
|
|
div.m-t-1
|
|
if view.state === 'purchasing'
|
|
.purchase-now.btn.btn-lg.btn-forest.disabled
|
|
span(data-i18n='teacher.purchasing')
|
|
else if view.state === 'purchased'
|
|
.purchase-now.btn.btn-lg.btn-forest
|
|
span(data-i18n='teacher.purchased')
|
|
else
|
|
.purchase-now.btn.btn-lg.btn-forest
|
|
span(data-i18n='teacher.purchase_now')
|
|
|
|
mixin howToEnroll
|
|
.how-to-enroll.small-details
|
|
.text-center
|
|
b(data-i18n='teacher.how_to_enroll')
|
|
ol
|
|
li.m-t-1(data-i18n='teacher.how_to_enroll_blurb_1')
|
|
li.m-t-2(data-i18n='teacher.how_to_enroll_blurb_2')
|
|
li.m-t-2(data-i18n='teacher.how_to_enroll_blurb_3')
|
|
|
|
mixin quoteSection
|
|
.text-center.m-t-5
|
|
h4(data-i18n='teacher.bulk_pricing_blurb')
|
|
a.request-quote.btn.btn-lg.btn-navy.m-t-2(href='/teachers/demo')
|
|
span(data-i18n='teachers_quote.title')
|