From 1c79d214162c0f4a79137778967290645c76eda5 Mon Sep 17 00:00:00 2001 From: Keith Grant Date: Thu, 1 Aug 2019 12:31:01 -0700 Subject: [PATCH] add custom notification message help text --- .../notificationTemplates.form.js | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/awx/ui/client/src/notifications/notificationTemplates.form.js b/awx/ui/client/src/notifications/notificationTemplates.form.js index 49a7062d2c..2c253b0f8a 100644 --- a/awx/ui/client/src/notifications/notificationTemplates.form.js +++ b/awx/ui/client/src/notifications/notificationTemplates.form.js @@ -589,6 +589,19 @@ export default ['i18n', function(i18n) { default: false, ngDisabled: '!(notification_template.summary_fields.user_capabilities.edit || canAdd)', }, + custom_message_description: { + type: 'alertblock', + ngShow: "customize_messages", + alertTxt: i18n._('Use custom messages to change the content of notifications ' + + 'sent when a job starts, succeeds, or fails. Use curly braces to access ' + + 'information about the job: {{ job_friendly_name }}, ' + + '{{ url }}, or attributes of the job such as ' + + '{{ job.status }}. You may apply a number of possible ' + + 'variables in the message. Refer to the ' + + 'Ansible ' + + 'Tower documentation for more details.'), + closeable: false + }, started_message: { label: i18n._('Start Message'), class: 'Form-formGroup--fullWidth', @@ -600,7 +613,7 @@ export default ['i18n', function(i18n) { ngDisabled: '!(notification_template.summary_fields.user_capabilities.edit || canAdd)', }, started_body: { - label: i18n._('Start Expanded Message'), + label: i18n._('Start Message Body'), class: 'Form-formGroup--fullWidth', type: 'syntax_highlight', mode: 'jinja2', @@ -619,7 +632,7 @@ export default ['i18n', function(i18n) { ngDisabled: '!(notification_template.summary_fields.user_capabilities.edit || canAdd)', }, success_body: { - label: i18n._('Success Expanded Message'), + label: i18n._('Success Message Body'), class: 'Form-formGroup--fullWidth', type: 'syntax_highlight', mode: 'jinja2', @@ -638,7 +651,7 @@ export default ['i18n', function(i18n) { ngDisabled: '!(notification_template.summary_fields.user_capabilities.edit || canAdd)', }, error_body: { - label: i18n._('Error Expanded Message'), + label: i18n._('Error Message Body'), class: 'Form-formGroup--fullWidth', type: 'syntax_highlight', mode: 'jinja2',