2015-11-05 18:30:57 -05:00
|
|
|
extends /templates/base
|
|
|
|
|
|
|
|
block content
|
|
|
|
|
|
|
|
if view.state === 'purchasing'
|
|
|
|
p.text-center Purchasing...
|
|
|
|
.progress.progress-striped.active
|
|
|
|
.progress-bar(style="width: 100%")
|
2015-11-29 17:45:33 -05:00
|
|
|
|
2015-11-05 18:30:57 -05:00
|
|
|
else if view.state === 'purchased'
|
2015-11-29 17:45:33 -05:00
|
|
|
p Thank you for your purchase! You can now assign #{view.numberOfStudents} more students to paid courses.
|
|
|
|
|
2015-11-05 18:30:57 -05:00
|
|
|
p.text-center
|
2015-11-30 14:14:27 -05:00
|
|
|
if view.fromClassroom
|
|
|
|
a(href="/courses/"+view.fromClassroom) Return to classroom
|
|
|
|
else
|
|
|
|
a(href="/courses/teachers") Return to course management.
|
2015-11-05 18:30:57 -05:00
|
|
|
|
|
|
|
else
|
2015-11-29 17:45:33 -05:00
|
|
|
|
2015-12-06 10:28:16 -05:00
|
|
|
h2.text-center Purchase Enrollments
|
2015-11-29 17:45:33 -05:00
|
|
|
br
|
|
|
|
|
2015-11-05 18:30:57 -05:00
|
|
|
if view.state === 'error'
|
|
|
|
.alert.alert-danger= view.stateMessage
|
2015-11-29 17:45:33 -05:00
|
|
|
|
2015-12-06 17:26:32 -05:00
|
|
|
- var usedEnrollments = view.prepaids.totalRedeemers();
|
|
|
|
- var totalEnrollments = view.prepaids.totalMaxRedeemers();
|
|
|
|
- var remainingEnrollments = totalEnrollments - usedEnrollments;
|
|
|
|
.row
|
|
|
|
.col-md-4
|
|
|
|
.col-md-3
|
|
|
|
strong.uppercase unused paid enrollments
|
|
|
|
.col-md-1
|
|
|
|
strong= remainingEnrollments
|
|
|
|
br
|
|
|
|
.row
|
|
|
|
.col-md-4
|
|
|
|
.col-md-3
|
|
|
|
strong.uppercase students not enrolled
|
|
|
|
.row
|
|
|
|
.col-md-4
|
|
|
|
.col-md-3
|
|
|
|
each classroom in view.classrooms.models
|
|
|
|
if classroom.get('members').length > 0
|
|
|
|
.not-enrolled= classroom.get('name')
|
|
|
|
.not-enrolled Total Across All Classes
|
|
|
|
.col-md-1
|
|
|
|
- var totalNotEnrolled = 0
|
|
|
|
each classroom in view.classrooms.models
|
|
|
|
if classroom.get('members').length > 0 && view.classroomNotEnrolledMap
|
|
|
|
.not-enrolled
|
|
|
|
strong= view.classroomNotEnrolledMap[classroom.id]
|
|
|
|
.not-enrolled
|
|
|
|
strong= view.totalNotEnrolled
|
|
|
|
|
|
|
|
br
|
|
|
|
br
|
|
|
|
|
2015-11-29 17:45:33 -05:00
|
|
|
p.text-center
|
2015-12-04 17:43:36 -05:00
|
|
|
strong How many additional paid enrollments do you need?
|
2015-11-29 17:45:33 -05:00
|
|
|
br
|
|
|
|
|
|
|
|
p.text-center
|
2015-12-06 10:28:16 -05:00
|
|
|
input#students-input.text-center.enrollment-count(
|
2015-12-06 17:26:32 -05:00
|
|
|
value= view.numberOfStudents
|
2015-11-29 17:45:33 -05:00
|
|
|
type='number'
|
|
|
|
)
|
|
|
|
br
|
|
|
|
|
|
|
|
.container-fluid
|
|
|
|
.row
|
2015-12-04 17:43:36 -05:00
|
|
|
.col-md-offset-3.col-md-6
|
2015-12-06 10:28:16 -05:00
|
|
|
| Each student in a class will get access to Courses 2-4 once they are enrolled in paid courses.
|
2015-12-04 17:43:36 -05:00
|
|
|
| You may assign each course to each student individually.
|
2015-11-29 17:45:33 -05:00
|
|
|
br
|
|
|
|
|
|
|
|
p.text-center#price-form-group
|
|
|
|
strong Total: #{view.numberOfStudents} enrollments x $#{view.pricePerStudent.toFixed(2)} = #{view.getPriceString()}
|
|
|
|
|
|
|
|
p.text-center
|
|
|
|
button#purchase-btn.btn.btn-lg.btn-success.uppercase Purchase Now
|