2015-09-03 14:04:40 -04:00
|
|
|
extends /templates/base
|
|
|
|
|
|
|
|
block content
|
|
|
|
|
|
|
|
div
|
|
|
|
span *UNDER CONSTRUCTION, send feedback to
|
|
|
|
a.spl(href='mailto:team@codecombat.com') team@codecombat.com
|
|
|
|
div(style='border-bottom: 1px solid black')
|
|
|
|
|
|
|
|
if state === 'declined' || state === 'unknown_error'
|
|
|
|
p
|
2015-09-25 15:51:51 -04:00
|
|
|
.alert.alert-danger
|
|
|
|
span.spr(data-i18n="loading_error.error")
|
|
|
|
span #{stateMessage}
|
2015-09-03 14:04:40 -04:00
|
|
|
|
|
|
|
if state === 'creating'
|
|
|
|
p
|
2015-09-25 15:51:51 -04:00
|
|
|
.alert.alert-info(data-i18n="courses.creating_class")
|
2015-09-03 14:04:40 -04:00
|
|
|
else if state === 'purchasing'
|
|
|
|
p
|
2015-09-25 15:51:51 -04:00
|
|
|
.alert.alert-info(data-i18n="courses.purchasing_course")
|
2015-09-03 14:04:40 -04:00
|
|
|
else
|
|
|
|
.well.well-lg.enroll-container
|
|
|
|
if price > 0
|
2015-09-25 15:51:51 -04:00
|
|
|
h1.center(data-i18n="courses.buy_course")
|
2015-09-03 14:04:40 -04:00
|
|
|
else
|
2015-09-25 15:51:51 -04:00
|
|
|
h1.center(data-i18n="courses.create_class")
|
|
|
|
h3
|
|
|
|
span 1.
|
|
|
|
span.spl(data-i18n="courses.course")
|
2015-09-03 14:04:40 -04:00
|
|
|
if courses.length > 2
|
2015-09-25 15:51:51 -04:00
|
|
|
p(data-i18n="courses.select_all_courses")
|
2015-09-03 14:04:40 -04:00
|
|
|
.form-group
|
|
|
|
select.form-control.course-select
|
|
|
|
each course in courses
|
|
|
|
option(value="#{course.id}")= course.get('name')
|
|
|
|
if courses.length > 1
|
2015-09-25 15:51:51 -04:00
|
|
|
option(value="All Courses", data-i18n="courses.all_courses")
|
2015-09-03 14:04:40 -04:00
|
|
|
|
2015-09-25 15:51:51 -04:00
|
|
|
h3
|
|
|
|
span 2.
|
|
|
|
span.spl(data-i18n="courses.number_students")
|
|
|
|
p(data-i18n="courses.enter_number_students")
|
2015-09-03 14:04:40 -04:00
|
|
|
input.input-seats(type='text', value="#{seats}")
|
|
|
|
|
2015-09-25 15:51:51 -04:00
|
|
|
h3
|
|
|
|
span 3.
|
|
|
|
span.spl(data-i18n="courses.name_class")
|
|
|
|
p(data-i18n="courses.displayed_course_page")
|
2015-09-03 14:04:40 -04:00
|
|
|
input.class-name(type='text', placeholder="Mrs. Smith's 4th Period", value="#{className ? className : ''}")
|
|
|
|
|
|
|
|
if price > 0
|
2015-09-25 15:51:51 -04:00
|
|
|
h3
|
|
|
|
span 4.
|
|
|
|
span.spl(data-i18n="courses.buy") Buy
|
2015-09-03 14:04:40 -04:00
|
|
|
else
|
2015-09-25 15:51:51 -04:00
|
|
|
h3
|
|
|
|
span 4.
|
|
|
|
span.spl(data-i18n="courses.create_class")
|
2015-09-03 14:04:40 -04:00
|
|
|
p
|
|
|
|
if price > 0
|
2015-09-25 15:51:51 -04:00
|
|
|
span.spr(data-i18n="courses.purchasing_for")
|
2015-09-03 14:04:40 -04:00
|
|
|
else
|
2015-09-25 15:51:51 -04:00
|
|
|
span.spr(data-i18n="courses.creating_for")
|
2015-09-03 14:04:40 -04:00
|
|
|
strong.spr #{selectedCourseTitle}
|
2015-09-25 15:51:51 -04:00
|
|
|
span.spr(data-i18n="courses.for")
|
|
|
|
strong
|
|
|
|
span #{seats}
|
|
|
|
span.spl(data-i18n="courses.students1")
|
|
|
|
span .
|
|
|
|
p(data-i18n="courses.receive_code")
|
2015-09-03 14:04:40 -04:00
|
|
|
p.center
|
|
|
|
if price > 0
|
|
|
|
button.btn.btn-success.btn-lg.btn-buy $#{(price / 100.0).toFixed(2)}
|
|
|
|
else
|
2015-09-25 15:51:51 -04:00
|
|
|
button.btn.btn-success.btn-lg.btn-buy(data-i18n="courses.create_class")
|
2015-09-03 14:04:40 -04:00
|
|
|
+trial-and-questions
|
|
|
|
|
|
|
|
mixin trial-and-questions
|
2015-09-25 15:51:51 -04:00
|
|
|
h3(data-i18n="courses.free_trial")
|
2015-09-03 14:04:40 -04:00
|
|
|
p
|
2015-09-25 15:51:51 -04:00
|
|
|
span.spr(data-i18n="teachers.teacher_subs_1")
|
2015-09-03 14:04:40 -04:00
|
|
|
a(href='/teachers/freetrial', data-i18n="teachers.teacher_subs_2")
|
2015-09-25 15:51:51 -04:00
|
|
|
span.spl(data-i18n="courses.get_access")
|
2015-09-03 14:04:40 -04:00
|
|
|
|
2015-09-25 15:51:51 -04:00
|
|
|
h3(data-i18n="courses.questions")
|
2015-09-03 14:04:40 -04:00
|
|
|
p
|
2015-09-25 15:51:51 -04:00
|
|
|
span(data-i18n="teachers_survey.contact_1")
|
2015-09-03 14:04:40 -04:00
|
|
|
a.spl(href='mailto:team@codecombat.com') team@codecombat.com
|