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

24 lines
843 B
Text
Raw Normal View History

extends /templates/modal/new_model
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
label.control-label(for="description") Description
input#description.form-control(name="description", type="text")
h4 Miscellaneous achievement keys
.radio
label
input(type="checkbox", name="queryOptions" id="misc-level-completion" value="misc-level-completion")
span.spl Level Completion
- var goals = level.get('goals');
if goals && goals.length
h4 Base achievement on goals?
each goal in goals
.radio
label
input(type="checkbox", name="queryOptions" id="#{goal.id}" value="#{goal.id}")
span.spl= goal.name