2015-06-05 09:48:09 -04:00
extends /templates/base
block content
2015-06-05 15:49:03 -04:00
h2(data-i18n="teachers_survey.title") Teacher Survey
2015-06-05 09:48:09 -04:00
if me.isAnonymous()
2015-06-05 15:49:03 -04:00
p(data-i18n="teachers_survey.must_be_logged") You must be logged in to apply. Please create an account or log in from the menu above.
2015-06-05 09:48:09 -04:00
else if fetchingData
2015-06-05 15:49:03 -04:00
h4(data-i18n="teachers_survey.retrieving") Retrieving information...
2015-06-05 09:48:09 -04:00
else if existingRequests.length > 0
if existingRequests[0].get('status') === 'submitted'
2015-06-05 15:49:03 -04:00
p
span.spr(data-i18n="teachers_survey.being_reviewed_1") Your application for a free trial subscription is being
strong(data-i18n="teachers_survey.being_reviewed_2") reviewed
2015-06-05 09:48:09 -04:00
else if existingRequests[0].get('status') === 'approved'
2015-06-05 15:49:03 -04:00
p
span.spr(data-i18n="teachers_survey.approved_1") Your application for a free trial subscription was
strong.spr(data-i18n="teachers_survey.approved_2") approved.
span.spr(data-i18n="teachers_survey.approved_3") Further instructions have been sent to
2015-06-05 09:48:09 -04:00
strong= existingRequests[0].get('properties').email
else
2015-06-05 15:49:03 -04:00
p
span.spr(data-i18n="teachers_survey.denied_1") Your application for a free trial subscription has been
strong(data-i18n="teachers_survey.denied_2") denied
2015-06-05 09:48:09 -04:00
p
2015-06-05 15:49:03 -04:00
span.spr(data-i18n="teachers_survey.contact_1") Please contact
a(href='mailto:team@codecombat.com') team@codecombat.com
span.spl(data-i18n="teachers_survey.contact_2") if you have further questions.
2015-06-05 09:48:09 -04:00
else
2015-06-05 15:49:03 -04:00
p
span.spr(data-i18n="teachers_survey.description_1") We offer free subscriptions to teachers for evaluation purposes. You can find more information on our
a(href='/teachers', data-i18n="teachers_survey.description_2") teachers
span.spl(data-i18n="teachers_survey.description_3") page.
p(data-i18n="teachers_survey.description_4") Please fill out this quick survey and we’ ll email you setup instructions.
2015-06-05 09:48:09 -04:00
p.container-email-address
2015-06-05 15:49:03 -04:00
label.control-label(data-i18n="teachers_survey.email") Email Address
2015-06-05 09:48:09 -04:00
br
input.control-label.input-email-address(type='text', value=email)
p.container-location
2015-06-05 15:49:03 -04:00
label.control-label(data-i18n="teachers_survey.school_city") Name of School, City
2015-06-05 09:48:09 -04:00
br
input.control-label.input-location(type='text')
p.container-age
2015-06-05 15:49:03 -04:00
label.control-label(data-i18n="teachers_survey.age_students") How old are your students?
2015-06-05 09:48:09 -04:00
div
input(type="radio", name="age", value="Under 14")
2015-06-05 15:49:03 -04:00
span.spl(data-i18n="teachers_survey.under") Under
span.spl 14
2015-06-05 09:48:09 -04:00
div
input(type="radio", name="age", value="14-17")
span.spl 14-17
div
input(type="radio", name="age", value="18+")
span.spl 18+
div
input(type="radio", name="age", value='other')
2015-06-05 15:49:03 -04:00
span.spl.spr(data-i18n="teachers_survey.other") Other:
2015-06-05 09:48:09 -04:00
input.spr.input-age-other(type='text')
p.container-num-students
2015-06-05 15:49:03 -04:00
label.control-label(data-i18n="teachers_survey.amount_students") How many students do you teach?
2015-06-05 09:48:09 -04:00
br
input.control-label.input-num-students(type='text')
p.container-heard-about
2015-06-05 15:49:03 -04:00
label.control-label(data-i18n="teachers_survey.hear_about") How did you hear about CodeCombat?
2015-06-05 09:48:09 -04:00
br
textarea.control-label.input-heard-about(rows=4)
2015-06-05 15:49:03 -04:00
p.error-message(data-i18n="teachers_survey.fill_fields") Please fill out all fields.
2015-06-05 09:48:09 -04:00
p
2015-06-05 15:49:03 -04:00
button.btn.btn-default.submit-button(data-i18n="play_level.tome_submit_button") Submit
p.thanks-submit(data-i18n="teachers_survey.thanks") Thanks! We'll send you setup instructions shortly.