codecombat/app/templates/courses/classroom-settings-modal.jade
Matt Lott 171e4f888e Update /courses/teachers
Adding edit class settings modal
Adding create new class modal
Repurposing ClassroomSettingsModal for create new class too.
2015-11-30 16:20:24 -08:00

30 lines
1.3 KiB
Text

extends /templates/core/modal-base
block modal-header-content
if view.classroom
h3.modal-title(data-i18n="courses.edit_settings1")
else
h3.modal-title(data-i18n="courses.create_new_class")
block modal-body-content
.form
.form-group
label(data-i18n="courses.title")
- var name = view.classroom && view.classroom.get('name') ? view.classroom.get('name') : '';
input.form-control.settings-name-input(type='text', value="#{name}")
.form-group
label(data-i18n="courses.description")
- var description = view.classroom && view.classroom.get('description') ? view.classroom.get('description') : '';
textarea.form-control.settings-description-input(rows=2)= description
.form-group
label(data-i18n="choose_hero.programming_language")
select.form-control#programming-language-select
- var aceConfig = view.classroom ? view.classroom.get('aceConfig') || {} : {};
option(value="python", selected=aceConfig.language==='python') Python
option(value="javascript", selected=aceConfig.language==='javascript') JavaScript
block modal-footer-content
if view.classroom
button#save-settings-btn.btn(data-i18n="common.save_changes")
else
button#save-settings-btn.btn(data-i18n="courses.create_class")