codecombat/app/templates/courses/course-enroll.jade

90 lines
2.7 KiB
Text
Raw Normal View History

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}
if state === 'creating'
p
2015-09-25 15:51:51 -04:00
.alert.alert-info(data-i18n="courses.creating_class")
else if state === 'purchasing'
p
2015-09-25 15:51:51 -04:00
.alert.alert-info(data-i18n="courses.purchasing_course")
else
.well.well-lg.enroll-container
if price > 0
2015-09-25 15:51:51 -04:00
h1.center(data-i18n="courses.buy_course")
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")
if courses.length > 2
2015-09-25 15:51:51 -04:00
p(data-i18n="courses.select_all_courses")
.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-25 15:51:51 -04:00
h3
span 2.
span.spl(data-i18n="courses.number_students")
p(data-i18n="courses.enter_number_students")
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")
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
else
2015-09-25 15:51:51 -04:00
h3
span 4.
span.spl(data-i18n="courses.create_class")
p
if price > 0
2015-09-25 15:51:51 -04:00
span.spr(data-i18n="courses.purchasing_for")
else
2015-09-25 15:51:51 -04:00
span.spr(data-i18n="courses.creating_for")
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")
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")
+trial-and-questions
mixin trial-and-questions
2015-09-25 15:51:51 -04:00
h3(data-i18n="courses.free_trial")
p
2015-09-25 15:51:51 -04:00
span.spr(data-i18n="teachers.teacher_subs_1")
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-25 15:51:51 -04:00
h3(data-i18n="courses.questions")
p
2015-09-25 15:51:51 -04:00
span(data-i18n="teachers_survey.contact_1")
a.spl(href='mailto:team@codecombat.com') team@codecombat.com