codecombat/app/templates/editor/modal/save-version-modal.jade

47 lines
1.6 KiB
Text
Raw Normal View History

extends /templates/core/modal-base
2014-01-10 20:32:29 -05:00
block modal-header-content
if isPatch
2015-01-16 15:52:47 -05:00
h3(data-i18n="common.submit_patch") Submit Patch
else
h3(data-i18n="versions.save_version_title") Save New Version
2014-01-10 20:32:29 -05:00
block modal-body-content
if hasChanges
.changes-stub
form.form-inline
.form-group.commit-message
input.form-control#commit-message(name="commitMessage", type="text")
if !isPatch
.checkbox
label
input#major-version(name="version-is-major", type="checkbox")
span(data-i18n="versions.new_major_version") New Major Version
else
.alert.alert-danger No changes
2014-01-10 20:32:29 -05:00
block modal-body-wait-content
if hasChanges
if isPatch
h3(data-i18n="versions.submitting_patch") Submitting Patch...
else
h3(data-i18n="common.saving") Saving...
2014-01-10 20:32:29 -05:00
block modal-footer-content
if hasChanges
#accept-cla-wrapper.alert.alert-info
span(data-i18n="versions.cla_prefix") To save changes, first you must agree to our
|
strong#cla-link(data-i18n="versions.cla_url") CLA
span(data-i18n="versions.cla_suffix") .
button.btn.btn-sm#agreement-button(data-i18n="versions.cla_agree") I AGREE
if isPatch
.alert.alert-info An owner will need to approve it before your changes will become visible.
2015-01-16 15:52:47 -05:00
.buttons
button.btn(data-dismiss="modal", data-i18n="common.cancel") Cancel
if hasChanges && !isPatch
button.btn.btn-primary#save-version-button(data-i18n="common.save") Save
if hasChanges && isPatch
2015-01-16 15:52:47 -05:00
button.btn.btn-primary#submit-patch-button(data-i18n="common.submit_patch") Submit Patch