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-04-09 22:07:44 -04:00
|
|
|
.changes-stub
|
|
|
|
form#save-level-form.form-inline
|
|
|
|
.form-group.commit-message
|
|
|
|
input.form-control#level-commit-message(name="commit-message", type="text", placeholder="Commit Message")
|
2014-01-03 13:32:13 -05:00
|
|
|
if level.isPublished()
|
2014-04-09 22:07:44 -04:00
|
|
|
.checkbox
|
|
|
|
label
|
|
|
|
input#level-version-is-major(name="version-is-major", type="checkbox")
|
|
|
|
| Major Changes
|
2014-01-03 13:32:13 -05:00
|
|
|
if !level.isPublished()
|
2014-04-09 22:07:44 -04:00
|
|
|
.checkbox
|
|
|
|
label
|
|
|
|
input#level-publish(name="publish", type="checkbox")
|
|
|
|
| Publish
|
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-04-09 22:07:44 -04:00
|
|
|
.changes-stub
|
|
|
|
form.form-inline.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-04-09 22:07:44 -04:00
|
|
|
.form-group.commit-message
|
|
|
|
input.form-control(id=id + "-commit-message", name="commit-message", type="text", placeholder="Commit Message")
|
2014-01-03 13:32:13 -05:00
|
|
|
if component.isPublished()
|
2014-04-09 22:07:44 -04:00
|
|
|
.checkbox
|
|
|
|
label
|
|
|
|
input(id=id + "-version-is-major", name="version-is-major", type="checkbox")
|
|
|
|
| Major Changes
|
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-04-09 22:07:44 -04:00
|
|
|
.changes-stub
|
|
|
|
form.form-inline.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-04-09 22:07:44 -04:00
|
|
|
.form-group.commit-message
|
|
|
|
input.form-control(id=id + "-commit-message", name="commit-message", type="text", placeholder="Commit Message")
|
2014-01-03 13:32:13 -05:00
|
|
|
if system.isPublished()
|
2014-04-09 22:07:44 -04:00
|
|
|
.checkbox
|
|
|
|
label
|
|
|
|
input(id=id + "-version-is-major", name="version-is-major", type="checkbox")
|
|
|
|
| Major changes
|