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