codecombat/app/templates/editor/level/modal/new-achievement.jade

29 lines
1.2 KiB
Text
Raw Normal View History

extends /templates/editor/modal/new-model-modal
block modal-body-content
form.form
.form-group
label.control-label(for="name", data-i18n="general.name") Name
input#name.form-control(name="name", type="text")
.form-group
2014-08-12 07:41:14 -04:00
label.control-label(for="description" data-i18n="general.description") Description
input#description.form-control(name="description", type="text")
2014-08-12 07:41:14 -04:00
h4(data-i18n="editor.achievement_query_misc") Key achievement off of miscellanea
.radio
label
input(type="checkbox", name="queryOptions" id="misc-level-completion" value="misc-level-completion")
2014-08-12 07:41:14 -04:00
span.spl(data-i18n="editor.level_completion") Level Completion
2015-12-21 10:51:46 -05:00
- var goals = view.level.get('goals');
if goals && goals.length
2014-08-12 07:41:14 -04:00
h4(data-i18n="editor.achievement_query_goals") Key achievement off of level goals
each goal in goals
.radio
label
input(type="checkbox", name="queryOptions" id="#{goal.id}" value="#{goal.id}")
span.spl= goal.name
block modal-footer
.modal-footer
button.btn(data-dismiss="modal", data-i18n="common.cancel") Cancel
button#save-new-achievement-link.btn.btn-primary.new-model-submit(data-i18n="common.create") Create