2015-06-05 09:48:09 -04:00
|
|
|
extends /templates/base
|
|
|
|
|
|
|
|
block content
|
|
|
|
|
2015-06-08 09:16:24 -04:00
|
|
|
h2(data-i18n="teachers_survey.title")
|
2015-06-05 09:48:09 -04:00
|
|
|
|
2015-10-22 18:23:04 -04:00
|
|
|
- var existingRequest = view.existingRequests.at(0)
|
2015-06-05 09:48:09 -04:00
|
|
|
if me.isAnonymous()
|
2015-09-09 16:20:18 -04:00
|
|
|
p.logged-out-blurb(data-i18n="teachers_survey.must_be_logged")
|
2015-10-22 18:23:04 -04:00
|
|
|
else if view.fetchingData
|
2015-06-08 09:16:24 -04:00
|
|
|
h4(data-i18n="teachers_survey.retrieving")
|
2015-10-22 18:23:04 -04:00
|
|
|
else if existingRequest
|
|
|
|
if existingRequest.get('status') === 'submitted'
|
2015-06-05 15:49:03 -04:00
|
|
|
p
|
2015-06-08 09:16:24 -04:00
|
|
|
span.spr(data-i18n="teachers_survey.being_reviewed_1")
|
|
|
|
strong(data-i18n="teachers_survey.being_reviewed_2")
|
2015-10-22 18:23:04 -04:00
|
|
|
else if existingRequest.get('status') === 'approved'
|
2015-06-05 15:49:03 -04:00
|
|
|
p
|
2015-11-24 13:32:15 -05:00
|
|
|
span.spr(data-i18n="teachers_survey.approved_1")
|
|
|
|
strong.spr(data-i18n="teachers_survey.approved_2")
|
|
|
|
span.spr(data-i18n="teachers_survey.approved_4")
|
2015-12-04 17:03:25 -05:00
|
|
|
a(href='/courses/teachers', data-i18n="teachers_survey.approved_5")
|
2015-11-24 13:32:15 -05:00
|
|
|
span.spl(data-i18n="teachers_survey.approved_6")
|
2015-06-05 09:48:09 -04:00
|
|
|
else
|
2015-06-05 15:49:03 -04:00
|
|
|
p
|
2015-06-08 09:16:24 -04:00
|
|
|
span.spr(data-i18n="teachers_survey.denied_1")
|
|
|
|
strong(data-i18n="teachers_survey.denied_2")
|
2015-06-05 09:48:09 -04:00
|
|
|
p
|
2015-06-08 09:16:24 -04:00
|
|
|
span.spr(data-i18n="teachers_survey.contact_1")
|
2015-06-05 15:49:03 -04:00
|
|
|
a(href='mailto:team@codecombat.com') team@codecombat.com
|
2015-06-08 09:16:24 -04:00
|
|
|
span.spl(data-i18n="teachers_survey.contact_2")
|
2015-06-05 09:48:09 -04:00
|
|
|
else
|
2015-11-24 13:32:15 -05:00
|
|
|
p(data-i18n="teachers_survey.description_1")
|
2015-06-05 15:49:03 -04:00
|
|
|
p
|
2015-11-24 13:32:15 -05:00
|
|
|
span.spr(data-i18n="teachers_survey.description_1b")
|
2015-06-08 09:16:24 -04:00
|
|
|
a(href='/teachers', data-i18n="teachers_survey.description_2")
|
|
|
|
span.spl(data-i18n="teachers_survey.description_3")
|
|
|
|
p(data-i18n="teachers_survey.description_4")
|
2015-06-05 09:48:09 -04:00
|
|
|
p.container-email-address
|
2015-06-08 09:16:24 -04:00
|
|
|
label.control-label(data-i18n="teachers_survey.email")
|
2015-06-05 09:48:09 -04:00
|
|
|
br
|
2015-11-24 13:32:15 -05:00
|
|
|
span.email-address= view.email
|
|
|
|
a(href='/account/settings') Change
|
2015-06-08 09:39:26 -04:00
|
|
|
p.container-school
|
|
|
|
label.control-label(data-i18n="teachers_survey.school")
|
|
|
|
br
|
|
|
|
input.control-label.input-school(type='text')
|
2015-06-05 09:48:09 -04:00
|
|
|
p.container-location
|
2015-06-08 09:39:26 -04:00
|
|
|
label.control-label(data-i18n="teachers_survey.location")
|
2015-06-05 09:48:09 -04:00
|
|
|
br
|
|
|
|
input.control-label.input-location(type='text')
|
|
|
|
p.container-age
|
2015-06-08 09:16:24 -04:00
|
|
|
label.control-label(data-i18n="teachers_survey.age_students")
|
2015-06-05 09:48:09 -04:00
|
|
|
div
|
|
|
|
input(type="radio", name="age", value="Under 14")
|
2015-06-08 09:16:24 -04:00
|
|
|
span.spl(data-i18n="teachers_survey.under")
|
2015-06-05 15:49:03 -04:00
|
|
|
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
|
2015-06-25 10:58:12 -04:00
|
|
|
input.radio-other(type="radio", name="age", value='other')
|
2015-06-08 09:16:24 -04:00
|
|
|
span.spl.spr(data-i18n="teachers_survey.other")
|
2015-06-05 09:48:09 -04:00
|
|
|
input.spr.input-age-other(type='text')
|
|
|
|
p.container-num-students
|
2015-06-08 09:16:24 -04:00
|
|
|
label.control-label(data-i18n="teachers_survey.amount_students")
|
2015-06-05 09:48:09 -04:00
|
|
|
br
|
|
|
|
input.control-label.input-num-students(type='text')
|
|
|
|
p.container-heard-about
|
2015-06-08 09:16:24 -04:00
|
|
|
label.control-label(data-i18n="teachers_survey.hear_about")
|
2015-06-05 09:48:09 -04:00
|
|
|
br
|
|
|
|
textarea.control-label.input-heard-about(rows=4)
|
2015-06-08 09:16:24 -04:00
|
|
|
p.error-message(data-i18n="teachers_survey.fill_fields")
|
2015-06-05 09:48:09 -04:00
|
|
|
p
|
2015-06-08 09:16:24 -04:00
|
|
|
button.btn.btn-default.submit-button(data-i18n="play_level.tome_submit_button")
|
|
|
|
p.thanks-submit(data-i18n="teachers_survey.thanks")
|