2015-06-29 15:15:07 -04:00
|
|
|
extends /templates/base
|
|
|
|
|
|
|
|
block content
|
|
|
|
|
|
|
|
//- DO NOT localize / i18n
|
2015-08-04 14:21:02 -04:00
|
|
|
|
|
|
|
div TODO: Add already enrolled view checkbox
|
|
|
|
div TODO: Add sales copy at beginning
|
2015-06-29 15:15:07 -04:00
|
|
|
div(style='border-bottom: 1px solid black')
|
|
|
|
span *UNDER CONSTRUCTION, send feedback to
|
|
|
|
a.spl(href='mailto:team@codecombat.com') team@codecombat.com
|
|
|
|
|
2015-08-04 14:21:02 -04:00
|
|
|
.modal#continueModal
|
2015-07-29 17:47:10 -04:00
|
|
|
.modal-dialog
|
|
|
|
.modal-header
|
|
|
|
button.close(data-dismiss='modal')
|
|
|
|
span ×
|
|
|
|
h3.modal-title Loading...
|
|
|
|
.modal-body
|
2015-08-04 14:21:02 -04:00
|
|
|
.container-fluid
|
|
|
|
.row.button-row.row-pick-class
|
|
|
|
.col-md-12
|
|
|
|
.well.well-sm
|
|
|
|
p
|
|
|
|
div.instruction-label Pick your class
|
|
|
|
.container-fluid
|
|
|
|
.row
|
|
|
|
.col-md-8
|
|
|
|
select.form-control.select-session
|
|
|
|
each inst in instances
|
|
|
|
option= inst.name
|
|
|
|
.col-md-4
|
|
|
|
button.btn.btn-success.btn-enter(data-course-id="#{courseID}") Enter
|
|
|
|
.row.button-row.center.row-pick-class
|
|
|
|
.col-md-12
|
|
|
|
div.or Or
|
|
|
|
.row.button-row
|
|
|
|
.col-md-12
|
|
|
|
.well.well-sm
|
|
|
|
p
|
|
|
|
div.instruction-label Enter an unlock code
|
|
|
|
.container-fluid
|
|
|
|
.row
|
|
|
|
.col-md-8
|
|
|
|
input.code-input(type='text', placeholder="Enter unlock code")
|
|
|
|
.col-md-4
|
|
|
|
button.btn.btn-success.btn-enroll(data-course-id="#{courseID}") Enroll
|
|
|
|
.row.button-row.center
|
|
|
|
.col-md-12
|
|
|
|
div.or Or
|
|
|
|
.row.button-row.center
|
|
|
|
.col-md-12
|
|
|
|
button.btn.btn-success.btn-lg.btn-buy(data-course-id="#{courseID}") Buy this course
|
2015-07-29 17:47:10 -04:00
|
|
|
|
2015-06-29 15:15:07 -04:00
|
|
|
h1.center Courses
|
|
|
|
.container-fluid
|
|
|
|
- var i = 0
|
|
|
|
while i < courses.length
|
|
|
|
.row
|
|
|
|
+course-block(courses[i], i)
|
|
|
|
- i++
|
|
|
|
if i < courses.length
|
|
|
|
+course-block(courses[i], i)
|
|
|
|
- i++
|
|
|
|
|
|
|
|
mixin course-block(course, courseID)
|
|
|
|
.col-md-6
|
|
|
|
.well.panel.course-panel(class=course.unlocked ? 'panel-success' : 'panel-info')
|
|
|
|
.panel-heading
|
|
|
|
.panel-title #{course.title} #{course.unlocked ? '(enrolled)' : ''}
|
|
|
|
.panel-body
|
|
|
|
strong Topics
|
|
|
|
ul
|
|
|
|
each topic in course.topics
|
|
|
|
li= topic
|
2015-07-29 12:51:01 -04:00
|
|
|
strong Hours of content: #{course.duration}
|
2015-06-29 15:15:07 -04:00
|
|
|
.container-fluid
|
2015-08-04 14:21:02 -04:00
|
|
|
.row.button-row.center
|
|
|
|
.col-md-12
|
|
|
|
br
|
|
|
|
button.btn.btn-success.btn-continue(data-toggle='modal', data-target="#continueModal", data-course-title="#{course.title}", data-course-id="#{courseID}") Continue
|