2016-03-30 16:57:19 -04:00
|
|
|
extends /templates/core/modal-base-flat
|
2015-11-17 19:09:29 -05:00
|
|
|
|
|
|
|
block modal-header-content
|
2016-03-30 16:57:19 -04:00
|
|
|
if view.classroom.isNew()
|
2015-11-30 19:20:24 -05:00
|
|
|
h3.modal-title(data-i18n="courses.create_new_class")
|
2016-03-30 16:57:19 -04:00
|
|
|
else
|
|
|
|
h3.modal-title(data-i18n="courses.edit_settings1")
|
2015-11-17 19:09:29 -05:00
|
|
|
|
|
|
|
block modal-body-content
|
2016-03-30 16:57:19 -04:00
|
|
|
form
|
2015-11-17 19:09:29 -05:00
|
|
|
.form-group
|
2016-03-30 19:20:37 -04:00
|
|
|
label(data-i18n="courses.class_name")
|
2016-03-30 16:57:19 -04:00
|
|
|
input#name-input.form-control(name="name" type='text' value=view.classroom.get('name'))
|
|
|
|
|
2015-11-17 19:09:29 -05:00
|
|
|
.form-group
|
2016-03-30 16:57:19 -04:00
|
|
|
label
|
|
|
|
span(data-i18n="courses.description")
|
|
|
|
i.spl.text-muted(data-i18n="signup.optional")
|
|
|
|
textarea.form-control(name="description" rows=2)= view.classroom.get('description')
|
|
|
|
|
2015-11-17 19:09:29 -05:00
|
|
|
.form-group
|
|
|
|
label(data-i18n="choose_hero.programming_language")
|
2016-03-30 16:57:19 -04:00
|
|
|
- var aceConfig = view.classroom.get('aceConfig') || {};
|
|
|
|
- var languageDisabled = !!_.size(view.classroom.get('members'));
|
|
|
|
.help-block.small.text-navy(data-i18n="courses.language_cannot_change")
|
|
|
|
select#programming-language-select.form-control(name="language" value=aceConfig.language disabled=languageDisabled)
|
|
|
|
- var aceConfig = view.classroom.get('aceConfig') || {};
|
|
|
|
option(value="" data-i18n="courses.language_select")
|
2016-03-30 19:20:37 -04:00
|
|
|
option(value="python") Python
|
|
|
|
option(value="javascript") JavaScript
|
2016-03-30 16:57:19 -04:00
|
|
|
|
|
|
|
.form-group
|
|
|
|
label
|
|
|
|
span(data-i18n="courses.avg_student_exp_label")
|
2016-03-30 19:20:37 -04:00
|
|
|
i.spl.text-muted(data-i18n="signup.optional")
|
2016-03-30 16:57:19 -04:00
|
|
|
.help-block.small.text-navy(data-i18n="courses.avg_student_exp_desc")
|
|
|
|
select.form-control(name="averageStudentExp", value=view.classroom.get('averageStudentExp'))
|
|
|
|
option(value="" data-i18n="courses.avg_student_exp_select")
|
|
|
|
option(value="none" data-i18n="courses.avg_student_exp_none")
|
|
|
|
option(value="beginner" data-i18n="courses.avg_student_exp_beginner")
|
|
|
|
option(value="intermediate" data-i18n="courses.avg_student_exp_intermediate")
|
|
|
|
option(value="advanced" data-i18n="courses.avg_student_exp_advanced")
|
|
|
|
option(value="varied" data-i18n="courses.avg_student_exp_varied")
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
label
|
|
|
|
span(data-i18n="courses.student_age_range_label")
|
|
|
|
i.spl.text-muted(data-i18n="signup.optional")
|
|
|
|
div
|
|
|
|
+ageRange("ageRangeMin")
|
|
|
|
span.spl.spr(data-i18n="courses.student_age_range_to")
|
|
|
|
+ageRange("ageRangeMax")
|
|
|
|
|
|
|
|
mixin ageRange(name)
|
|
|
|
select.age-range-select.form-control(name=name value=view.classroom.get(name))
|
|
|
|
option(value="") -
|
|
|
|
option(value="<6" data-i18n="courses.student_age_range_younger")
|
|
|
|
for i in _.range(6,18)
|
|
|
|
option(value=i)= i
|
|
|
|
option(value="18" data-i18n="courses.student_age_range_older")
|
2015-11-17 19:09:29 -05:00
|
|
|
|
|
|
|
block modal-footer-content
|
2016-03-30 16:57:19 -04:00
|
|
|
.text-center
|
|
|
|
if view.classroom.isNew()
|
|
|
|
button#save-settings-btn.btn.btn-primary.btn-lg(data-i18n="courses.create_class")
|
|
|
|
else
|
|
|
|
button#save-settings-btn.btn.btn-primary.btn-lg(data-i18n="common.save_changes")
|