Update /courses/purchase
Updating to latest UI designs.
This commit is contained in:
parent
5a72d32f60
commit
edc05facfe
2 changed files with 44 additions and 26 deletions
app
14
app/styles/courses/mock1/purchase-courses-view.sass
Normal file
14
app/styles/courses/mock1/purchase-courses-view.sass
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
#purchase-courses-view
|
||||||
|
|
||||||
|
font-size: 18px
|
||||||
|
|
||||||
|
.enrollments-info
|
||||||
|
width: 300px
|
||||||
|
|
||||||
|
#students-input
|
||||||
|
width: 100px
|
||||||
|
font-size: 30px
|
||||||
|
text-align: center
|
||||||
|
|
||||||
|
.uppercase
|
||||||
|
text-transform: uppercase
|
|
@ -6,36 +6,40 @@ block content
|
||||||
p.text-center Purchasing...
|
p.text-center Purchasing...
|
||||||
.progress.progress-striped.active
|
.progress.progress-striped.active
|
||||||
.progress-bar(style="width: 100%")
|
.progress-bar(style="width: 100%")
|
||||||
|
|
||||||
else if view.state === 'purchased'
|
else if view.state === 'purchased'
|
||||||
p Thank you for your purchase! You can now assign (more) students to paid courses.
|
p Thank you for your purchase! You can now assign #{view.numberOfStudents} more students to paid courses.
|
||||||
|
|
||||||
p.text-center
|
p.text-center
|
||||||
a(href="/courses/teachers") Return to course management.
|
a(href="/courses/teachers") Return to course management.
|
||||||
|
|
||||||
else
|
else
|
||||||
h3.text-center Purchase Courses for Students
|
|
||||||
|
h2.text-center Purchase Student Enrollments
|
||||||
|
br
|
||||||
|
|
||||||
if view.state === 'error'
|
if view.state === 'error'
|
||||||
.alert.alert-danger= view.stateMessage
|
.alert.alert-danger= view.stateMessage
|
||||||
|
|
||||||
.form-horizontal
|
p.text-center
|
||||||
.form-group
|
strong How many enrollments do you need?
|
||||||
label.col-sm-3.control-label Students
|
br
|
||||||
.col-sm-6
|
|
||||||
input#students-input.form-control(
|
p.text-center
|
||||||
placeholder='<number of seats>'
|
input#students-input(
|
||||||
value=view.numberOfStudents
|
placeholder='<number of enrollments>'
|
||||||
type='number'
|
value=view.numberOfStudents
|
||||||
)
|
type='number'
|
||||||
.help-block Each student will have access to all courses.
|
)
|
||||||
|
br
|
||||||
#price-form-group.form-group
|
|
||||||
label.col-sm-3.control-label Price
|
.container-fluid
|
||||||
.col-sm-6
|
.row
|
||||||
.form-control-static
|
.col-md-offset-3.col-md-6 One enrollment per student is required to assign them to paid CodeCombat courses. A single student does not need multiple enrollments to access all paid courses.
|
||||||
| #{view.getPriceString()} ($#{view.pricePerStudent.toFixed(2)} per student)
|
br
|
||||||
|
|
||||||
.form-group
|
p.text-center#price-form-group
|
||||||
.col-sm-offset-3.col-sm-10
|
strong Total: #{view.numberOfStudents} enrollments x $#{view.pricePerStudent.toFixed(2)} = #{view.getPriceString()}
|
||||||
button#purchase-btn.btn.btn-primary Purchase
|
|
||||||
|
p.text-center
|
||||||
|
button#purchase-btn.btn.btn-lg.btn-success.uppercase Purchase Now
|
||||||
|
|
Reference in a new issue