2014-11-29 14:39:37 -05:00
|
|
|
extends /templates/core/modal-base
|
2014-01-10 20:32:29 -05:00
|
|
|
|
|
|
|
block modal-header-content
|
2015-12-21 10:51:46 -05:00
|
|
|
if view.isPatch
|
2015-01-16 15:52:47 -05:00
|
|
|
h3(data-i18n="common.submit_patch") Submit Patch
|
2014-04-10 16:09:44 -04:00
|
|
|
else
|
|
|
|
h3(data-i18n="versions.save_version_title") Save New Version
|
2014-01-10 20:32:29 -05:00
|
|
|
|
|
|
|
block modal-body-content
|
2015-12-24 14:21:12 -05:00
|
|
|
if view.hasChanges
|
2014-04-10 16:09:44 -04:00
|
|
|
.changes-stub
|
|
|
|
form.form-inline
|
|
|
|
.form-group.commit-message
|
2014-04-12 01:52:05 -04:00
|
|
|
input.form-control#commit-message(name="commitMessage", type="text")
|
2016-02-18 19:41:06 -05:00
|
|
|
if !view.isPatch && !view.options.noNewMajorVersions
|
2014-04-10 16:09:44 -04:00
|
|
|
.checkbox
|
|
|
|
label
|
|
|
|
input#major-version(name="version-is-major", type="checkbox")
|
2014-04-12 01:52:05 -04:00
|
|
|
span(data-i18n="versions.new_major_version") New Major Version
|
2014-04-10 16:09:44 -04:00
|
|
|
else
|
2015-06-27 07:40:41 -04:00
|
|
|
.alert.alert-danger(data-i18n="delta.no_changes") No changes
|
2014-01-10 20:32:29 -05:00
|
|
|
|
|
|
|
block modal-body-wait-content
|
2015-12-24 14:21:12 -05:00
|
|
|
if view.hasChanges
|
2015-12-21 10:51:46 -05:00
|
|
|
if view.isPatch
|
2014-04-10 16:09:44 -04:00
|
|
|
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
|
2015-12-24 14:21:12 -05:00
|
|
|
if view.hasChanges
|
2014-03-02 19:06:22 -05:00
|
|
|
#accept-cla-wrapper.alert.alert-info
|
2015-06-27 07:40:41 -04:00
|
|
|
span.spr(data-i18n="versions.cla_prefix") To save changes, first you must agree to our
|
2014-03-02 19:06:22 -05:00
|
|
|
strong#cla-link(data-i18n="versions.cla_url") CLA
|
|
|
|
span(data-i18n="versions.cla_suffix") .
|
2014-04-10 16:09:44 -04:00
|
|
|
button.btn.btn-sm#agreement-button(data-i18n="versions.cla_agree") I AGREE
|
2015-12-21 10:51:46 -05:00
|
|
|
if view.isPatch
|
2015-06-27 07:40:41 -04:00
|
|
|
.alert.alert-info(data-i18n="versions.owner_approve") An owner will need to approve it before your changes will become visible.
|
2016-07-07 19:34:15 -04:00
|
|
|
.save-error-area
|
|
|
|
if view.savingPatchError
|
|
|
|
.alert.alert-danger Unable to save patch: #{view.savingPatchError}
|
2015-01-16 15:52:47 -05:00
|
|
|
|
2014-04-10 16:09:44 -04:00
|
|
|
.buttons
|
|
|
|
button.btn(data-dismiss="modal", data-i18n="common.cancel") Cancel
|
2015-12-24 14:21:12 -05:00
|
|
|
if view.hasChanges && !view.isPatch
|
2014-04-10 16:09:44 -04:00
|
|
|
button.btn.btn-primary#save-version-button(data-i18n="common.save") Save
|
2015-12-24 14:21:12 -05:00
|
|
|
if view.hasChanges && view.isPatch
|
2015-01-16 15:52:47 -05:00
|
|
|
button.btn.btn-primary#submit-patch-button(data-i18n="common.submit_patch") Submit Patch
|