codecombat/app/templates/editor/level/save.jade

62 lines
2.8 KiB
Text
Raw Normal View History

2014-01-03 13:32:13 -05:00
extends /templates/modal/save_version
block content
h3= "Level: " + level.get('name') + " - " + (levelNeedsSave ? "Modified" : "Not Modified")
if levelNeedsSave
form#save-level-form.form-horizontal
.control-group
label.control-label(for="level-commit-message") Commit Message
.controls
textarea#level-commit-message.input-large(name="commit-message", type="text")
if level.isPublished()
.control-group
label.control-label(for="level-version-is-major") Major Changes?
.controls
input#level-version-is-major.input-large(name="version-is-major", type="checkbox")
span.help-block (Could this update break old solutions of the level?)
if !level.isPublished()
.control-group
label.control-label(for="level-publish") Publish This Level (irreversible)?
.controls
input#level-publish.input-large(name="publish", type="checkbox")
if modifiedComponents.length
hr
each component in modifiedComponents
- var id = component.get('_id')
h4= "Component: " + component.get('system') + '.' + component.get('name')
form.component-form.form-horizontal(id="save-component-" + id + "-form")
input(name="component-original", type="hidden", value=component.get('original'))
input(name="component-parent-major-version", type="hidden", value=component.get('version').major)
.control-group
label.control-label(for=id + "-commit-message") Commit Message
.controls
textarea.input-large(id=id + "-commit-message", name="commit-message", type="text")
if component.isPublished()
.control-group
label.control-label(for=id + "-version-is-major") Major Changes?
.controls
input.input-large(id=id + "-version-is-major", name="version-is-major", type="checkbox")
span.help-block (Could this update break anything depending on this Component?)
if modifiedSystems.length
hr
each system in modifiedSystems
- var id = system.get('_id')
h4= "System: " + system.get('name')
form.system-form.form-horizontal(id="save-system-" + id + "-form")
input(name="system-original", type="hidden", value=system.get('original'))
input(name="system-parent-major-version", type="hidden", value=system.get('version').major)
.control-group
label.control-label(for=id + "-commit-message") Commit Message
.controls
textarea.input-large(id=id + "-commit-message", name="commit-message", type="text")
if system.isPublished()
.control-group
label.control-label(for=id + "-version-is-major") Major Changes?
.controls
input.input-large(id=id + "-version-is-major", name="version-is-major", type="checkbox")
span.help-block (Could this update break anything depending on this System?)