mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 14:03:28 -04:00
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...
|
||||
.progress.progress-striped.active
|
||||
.progress-bar(style="width: 100%")
|
||||
|
||||
|
||||
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
|
||||
a(href="/courses/teachers") Return to course management.
|
||||
|
||||
else
|
||||
h3.text-center Purchase Courses for Students
|
||||
|
||||
|
||||
h2.text-center Purchase Student Enrollments
|
||||
br
|
||||
|
||||
if view.state === 'error'
|
||||
.alert.alert-danger= view.stateMessage
|
||||
|
||||
.form-horizontal
|
||||
.form-group
|
||||
label.col-sm-3.control-label Students
|
||||
.col-sm-6
|
||||
input#students-input.form-control(
|
||||
placeholder='<number of seats>'
|
||||
value=view.numberOfStudents
|
||||
type='number'
|
||||
)
|
||||
.help-block Each student will have access to all courses.
|
||||
|
||||
#price-form-group.form-group
|
||||
label.col-sm-3.control-label Price
|
||||
.col-sm-6
|
||||
.form-control-static
|
||||
| #{view.getPriceString()} ($#{view.pricePerStudent.toFixed(2)} per student)
|
||||
|
||||
.form-group
|
||||
.col-sm-offset-3.col-sm-10
|
||||
button#purchase-btn.btn.btn-primary Purchase
|
||||
|
||||
p.text-center
|
||||
strong How many enrollments do you need?
|
||||
br
|
||||
|
||||
p.text-center
|
||||
input#students-input(
|
||||
placeholder='<number of enrollments>'
|
||||
value=view.numberOfStudents
|
||||
type='number'
|
||||
)
|
||||
br
|
||||
|
||||
.container-fluid
|
||||
.row
|
||||
.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.
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue