codecombat/app/templates/play/level/modal/editor_config.jade

56 lines
3.3 KiB
Text
Raw Normal View History

2014-03-16 13:34:29 -04:00
extends /templates/modal/modal_base
2014-03-16 13:34:29 -04:00
block modal-header-content
h3(data-i18n="play_level.editor_config_title") Editor Configuration
block modal-body-content
.form
.form-group.select-group
label.control-label(for="tome-session-language" data-i18n="play_level.editor_config_level_language_label") Language for This Level
select#tome-session-language(name="language")
for option in languages
option(value=option.id selected=(sessionLanguage === option.id))= option.name
span.help-block(data-i18n="play_level.editor_config_level_language_description") Define the programming language for this particular level.
.form-group.select-group
label.control-label(for="tome-language" data-i18n="play_level.editor_config_default_language_label") Default Programming Language
select#tome-language(name="language")
for option in languages
option(value=option.id selected=(language === option.id))= option.name
span.help-block(data-i18n="play_level.editor_config_default_language_description") Define the programming language you want to code in when starting new levels.
2014-03-16 13:34:29 -04:00
.form-group.select-group
label.control-label(for="tome-key-bindings" data-i18n="play_level.editor_config_keybindings_label") Key Bindings
2014-03-31 16:00:40 -04:00
select#tome-key-bindings(name="keyBindings")
2014-03-16 13:34:29 -04:00
option(value="default" selected=(keyBindings === "default") data-i18n="play_level.editor_config_keybindings_default") Default (Ace)
option(value="vim" selected=(keyBindings === "vim")) Vim
option(value="emacs" selected=(keyBindings === "emacs")) Emacs
span.help-block(data-i18n="play_level.editor_config_keybindings_description") Adds additional shortcuts known from the common editors.
2014-06-18 11:57:42 -04:00
.form-group.checkbox
label(for="tome-live-completion")
input#tome-live-completion(name="liveCompletion", type="checkbox", checked=liveCompletion)
span(data-i18n="play_level.editor_config_livecompletion_label") Live Autocompletion
span.help-block(data-i18n="play_level.editor_config_livecompletion_description") Displays autocomplete suggestions while typing.
2014-03-16 13:34:29 -04:00
.form-group.checkbox
label(for="tome-invisibles")
input#tome-invisibles(name="invisibles", type="checkbox", checked=invisibles)
span(data-i18n="play_level.editor_config_invisibles_label") Show Invisibles
span.help-block(data-i18n="play_level.editor_config_invisibles_description") Displays invisibles such as spaces or tabs.
2014-03-16 13:34:29 -04:00
.form-group.checkbox
label(for="tome-indent-guides")
input#tome-indent-guides(name="indentGuides", type="checkbox", checked=indentGuides)
span(data-i18n="play_level.editor_config_indentguides_label") Show Indent Guides
span.help-block(data-i18n="play_level.editor_config_indentguides_description") Displays vertical lines to see indentation better.
2014-03-16 13:34:29 -04:00
.form-group.checkbox
label(for="tome-behaviors")
input#tome-behaviors(name="behaviors", type="checkbox", checked=behaviors)
span(data-i18n="play_level.editor_config_behaviors_label") Smart Behaviors
span.help-block(data-i18n="play_level.editor_config_behaviors_description") Autocompletes brackets, braces, and quotes.
2014-03-16 13:34:29 -04:00
block modal-footer-content
a(href='#', data-dismiss="modal", aria-hidden="true", data-i18n="modal.close").btn.btn-primary Close