mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 18:15:52 -05:00
54 lines
2.6 KiB
Text
54 lines
2.6 KiB
Text
extends /templates/modal/save_version
|
|
|
|
block modal-body-content
|
|
h3= "Level: " + level.get('name') + " - " + (levelNeedsSave ? "Modified" : "Not Modified")
|
|
if levelNeedsSave
|
|
form#save-level-form.form
|
|
.form-group
|
|
label.control-label(for="level-commit-message") Commit Message
|
|
textarea.form-control#level-commit-message(name="commit-message", type="text")
|
|
if level.isPublished()
|
|
.form-group.checkbox
|
|
label.control-label(for="level-version-is-major") Major Changes?
|
|
input#level-version-is-major(name="version-is-major", type="checkbox")
|
|
span.help-block (Could this update break old solutions of the level?)
|
|
if !level.isPublished()
|
|
.form-group.checkbox
|
|
label.control-label(for="level-publish") Publish This Level (irreversible)?
|
|
input#level-publish(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(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)
|
|
.form-group
|
|
label.control-label(for=id + "-commit-message") Commit Message
|
|
textarea.form-control(id=id + "-commit-message", name="commit-message", type="text")
|
|
if component.isPublished()
|
|
.form-group.checkbox
|
|
label.control-label(for=id + "-version-is-major") Major Changes?
|
|
input(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(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)
|
|
.form-group
|
|
label.control-label(for=id + "-commit-message") Commit Message
|
|
textarea.form-control(id=id + "-commit-message", name="commit-message", type="text")
|
|
if system.isPublished()
|
|
.form-group.checkbox
|
|
label.control-label(for=id + "-version-is-major") Major Changes?
|
|
input(id=id + "-version-is-major", name="version-is-major", type="checkbox")
|
|
span.help-block (Could this update break anything depending on this System?)
|