implement model-based copy for job templates and workflow templates

This commit is contained in:
Jake McDermott
2017-12-05 00:11:59 -05:00
parent 8679651d4c
commit e5fd483d06
7 changed files with 344 additions and 499 deletions
@@ -55,8 +55,37 @@ function TemplatesStrings (BaseString) {
VALID_DECIMAL: t.s('Please enter an answer that is a decimal number.'),
PLAYBOOK_RUN: t.s('Playbook Run'),
CHECK: t.s('Check'),
NO_CREDS_MATCHING_TYPE: t.s('No Credentials Matching This Type Have Been Created')
NO_CREDS_MATCHING_TYPE: t.s('No Credentials Matching This Type Have Been Created'),
};
ns.alert = {
MISSING_PARAMETER: t.s('Template parameter is missing.'),
NO_PERMISSION: t.s('You do not have permission to perform this action.'),
UNKNOWN_COPY: t.s('Unable to determine this template\'s type while copying.'),
UNKNOWN_DELETE: t.s('Unable to determine this template\'s type while deleting.'),
UNKNOWN_EDIT: t.s('Unable to determine this template\'s type while editing.'),
UNKNOWN_LAUNCH: t.s('Unable to determine this template\'s type while launching.'),
UNKNOWN_SCHEDULE: t.s('Unable to determine this template\'s type while scheduling.'),
};
ns.actions = {
COPY_WORKFLOW: t.s('Copy Workflow')
};
ns.error = {
HEADER: this.error.HEADER,
CALL: this.error.CALL,
EDIT: t.s('Unable to edit template.'),
DELETE: t.s('Unable to delete template.'),
LAUNCH: t.s('Unable to launch template.'),
UNKNOWN: t.s('Unable to determine template type.'),
SCHEDULE: t.s('Unable to schedule job.'),
COPY: t.s('Unable to copy template.'),
};
ns.warnings = {
WORKFLOW_RESTRICTED_COPY: t.s('You do not have access to all resources used by this workflow. Resources that you don\'t have access to will not be copied and will result in an incomplete workflow.')
}
}
TemplatesStrings.$inject = ['BaseStringService'];