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

94 lines
3 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 view.state === 'declined' || view.state === 'unknown_error'
p
2015-09-25 15:51:51 -04:00
.alert.alert-danger
span.spr(data-i18n="loading_error.error")
span #{view.stateMessage}
if view.state === 'creating'
p
2015-09-25 15:51:51 -04:00
.alert.alert-info(data-i18n="courses.creating_class")
else if view.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 view.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 view.courses.size() > 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 view.courses.models
option(value="#{course.id}")= course.get('name')
if view.courses.size() > 1
2015-09-25 15:51:51 -04:00
option(value="All Courses", data-i18n="courses.all_courses")
.form-group
label(data-i18n="choose_hero.programming_language")
select.form-control#programming-language-select
option(value="python", selected=view.selectedLanguage==='python') Python
option(value="javascript", selected=view.selectedLanguage==='javascript') JavaScript
if view.price > 0
h3
span 2.
span.spl(data-i18n="courses.number_students")
p(data-i18n="courses.enter_number_students")
input.input-seats(type='text', value="#{view.seats}")
2015-09-25 15:51:51 -04:00
h3
if view.price > 0
span 3.
else
span 2.
2015-09-25 15:51:51 -04:00
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="#{view.className ? view.className : ''}")
if view.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 3.
2015-09-25 15:51:51 -04:00
span.spl(data-i18n="courses.create_class")
p
if view.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 #{view.selectedCourseTitle}
if view.price > 0
span.spr(data-i18n="courses.for")
strong
span #{view.seats}
span.spl(data-i18n="courses.students1")
span #{'.'}
2015-09-25 15:51:51 -04:00
p(data-i18n="courses.receive_code")
p.center
if view.price > 0
button.btn.btn-success.btn-lg.btn-buy $#{(view.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.questions")
p
2015-10-13 11:05:47 -04:00
span.spr(data-i18n="teachers_survey.contact_1")
a(href='mailto:team@codecombat.com') team@codecombat.com