diff --git a/awx/ui/client/features/templates/templates.strings.js b/awx/ui/client/features/templates/templates.strings.js index 68c97c57f7..80dc845a4f 100644 --- a/awx/ui/client/features/templates/templates.strings.js +++ b/awx/ui/client/features/templates/templates.strings.js @@ -13,6 +13,7 @@ function TemplatesStrings (BaseString) { ADD_DD_JT_LABEL: t.s('Job Template'), ADD_DD_WF_LABEL: t.s('Workflow Template'), OPEN_WORKFLOW_VISUALIZER: t.s('Click here to open the workflow visualizer'), + ROW_ITEM_LABEL_ORGANIZATION: t.s('Organization'), ROW_ITEM_LABEL_DESCRIPTION: t.s('Description'), ROW_ITEM_LABEL_ACTIVITY: t.s('Activity'), ROW_ITEM_LABEL_INVENTORY: t.s('Inventory'), diff --git a/awx/ui/client/features/templates/templatesList.view.html b/awx/ui/client/features/templates/templatesList.view.html index 8ed34895a7..a50b040316 100644 --- a/awx/ui/client/features/templates/templatesList.view.html +++ b/awx/ui/client/features/templates/templatesList.view.html @@ -91,6 +91,11 @@ label-value="{{:: vm.strings.get('list.ROW_ITEM_LABEL_DESCRIPTION') }}" value="{{ template.description | sanitize }}"> + + ' + i18n._('When this project is used by a Job Template, Organization cannot be changed.') + '

', dataContainer: 'body', dataPlacement: 'right', ngDisabled: '!(project_obj.summary_fields.user_capabilities.edit || canAdd) || !canEditOrg', diff --git a/awx/ui_next/src/screens/Template/JobTemplateDetail/JobTemplateDetail.jsx b/awx/ui_next/src/screens/Template/JobTemplateDetail/JobTemplateDetail.jsx index 0b8a118f4a..d5a14bce6f 100644 --- a/awx/ui_next/src/screens/Template/JobTemplateDetail/JobTemplateDetail.jsx +++ b/awx/ui_next/src/screens/Template/JobTemplateDetail/JobTemplateDetail.jsx @@ -168,6 +168,20 @@ function JobTemplateDetail({ i18n, template }) { + {summary_fields.organization ? ( + + {summary_fields.organization.name} + + } + /> + ) : ( + renderMissingDataDetail(i18n._(t`Project`)) + )} {summary_fields.inventory ? (