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