mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 23:07:42 -02:30
popover content for notification templates form
This commit is contained in:
@@ -97,8 +97,7 @@ export default ['i18n', function(i18n) {
|
|||||||
label: i18n._('Recipient List'),
|
label: i18n._('Recipient List'),
|
||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
rows: 3,
|
rows: 3,
|
||||||
awPopOver: '<p>' + i18n._('Type an option on each line.') + '</p>'+
|
awPopOver: i18n._('Enter one email address per line to create a recipient list for this type of notification.'),
|
||||||
'<p>' + i18n._('For example:') + '<br>alias1@email.com<br>\n alias2@email.com<br>\n',
|
|
||||||
dataTitle: i18n._('Recipient List'),
|
dataTitle: i18n._('Recipient List'),
|
||||||
dataPlacement: 'right',
|
dataPlacement: 'right',
|
||||||
dataContainer: "body",
|
dataContainer: "body",
|
||||||
@@ -140,8 +139,7 @@ export default ['i18n', function(i18n) {
|
|||||||
label: i18n._('Destination Channels'),
|
label: i18n._('Destination Channels'),
|
||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
rows: 3,
|
rows: 3,
|
||||||
awPopOver: '<p>' + i18n._('Type an option on each line. The pound symbol (#) is not required.') + '</p>'+
|
awPopOver: i18n._('Enter one Slack channel per line. The pound symbol (#) is not required.'),
|
||||||
'<p>' + i18n._('For example:') + '<br>engineering<br>\n #support<br>\n',
|
|
||||||
dataTitle: i18n._('Destination Channels'),
|
dataTitle: i18n._('Destination Channels'),
|
||||||
dataPlacement: 'right',
|
dataPlacement: 'right',
|
||||||
dataContainer: "body",
|
dataContainer: "body",
|
||||||
@@ -157,8 +155,7 @@ export default ['i18n', function(i18n) {
|
|||||||
label: i18n._('Destination Channels'),
|
label: i18n._('Destination Channels'),
|
||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
rows: 3,
|
rows: 3,
|
||||||
awPopOver: '<p>' + i18n._('Type an option on each line. The pound symbol (#) is not required.') + '</p>'+
|
awPopOver: i18n._('Enter one HipChat channel per line. The pound symbol (#) is not required.'),
|
||||||
'<p>' + i18n._('For example:') + '<br>engineering<br>\n #support<br>\n',
|
|
||||||
dataTitle: i18n._('Destination Channels'),
|
dataTitle: i18n._('Destination Channels'),
|
||||||
dataPlacement: 'right',
|
dataPlacement: 'right',
|
||||||
dataContainer: "body",
|
dataContainer: "body",
|
||||||
@@ -198,8 +195,7 @@ export default ['i18n', function(i18n) {
|
|||||||
label: i18n._('Source Phone Number'),
|
label: i18n._('Source Phone Number'),
|
||||||
dataTitle: i18n._('Source Phone Number'),
|
dataTitle: i18n._('Source Phone Number'),
|
||||||
type: 'text',
|
type: 'text',
|
||||||
awPopOver: '<p>' + i18n._('Number associated with the "Messaging Service" in Twilio.') + '</p>'+
|
awPopOver: i18n._('Enter the number associated with the "Messaging Service" in Twilio in the format +18005550199.'),
|
||||||
'<p>' + i18n.sprintf(i18n._('This must be of the form %s.'), '<code>+18005550199</code>') + '</p>',
|
|
||||||
awRequiredWhen: {
|
awRequiredWhen: {
|
||||||
reqExpression: "twilio_required",
|
reqExpression: "twilio_required",
|
||||||
init: "false"
|
init: "false"
|
||||||
@@ -213,8 +209,7 @@ export default ['i18n', function(i18n) {
|
|||||||
dataTitle: i18n._('Destination SMS Number'),
|
dataTitle: i18n._('Destination SMS Number'),
|
||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
rows: 3,
|
rows: 3,
|
||||||
awPopOver: '<p>' + i18n._('Type an option on each line.') + '</p>'+
|
awPopOver: i18n._('Enter one phone number per line to specify where to route SMS messages.'),
|
||||||
'<p>' + i18n._('For example:') + '<br><code>+12125552368</code><br>\n<code>+19105556162</code><br>\n',
|
|
||||||
dataPlacement: 'right',
|
dataPlacement: 'right',
|
||||||
dataContainer: "body",
|
dataContainer: "body",
|
||||||
awRequiredWhen: {
|
awRequiredWhen: {
|
||||||
@@ -297,8 +292,7 @@ export default ['i18n', function(i18n) {
|
|||||||
dataTitle: i18n._('Notification Color'),
|
dataTitle: i18n._('Notification Color'),
|
||||||
type: 'select',
|
type: 'select',
|
||||||
ngOptions: 'color for color in hipchatColors track by color',
|
ngOptions: 'color for color in hipchatColors track by color',
|
||||||
awPopOver: '<p>' + i18n.sprintf(i18n._('Color can be one of %s.'), '<code>yellow</code>, <code>green</code>, <code>red</code>, ' +
|
awPopOver: i18n._('Specify a notification color. Acceptable colors are: yellow, green, red purple, gray or random.'),
|
||||||
'<code>purple</code>, <code>gray</code>, <code>random</code>') + '\n',
|
|
||||||
awRequiredWhen: {
|
awRequiredWhen: {
|
||||||
reqExpression: "hipchat_required",
|
reqExpression: "hipchat_required",
|
||||||
init: "false"
|
init: "false"
|
||||||
@@ -336,13 +330,7 @@ export default ['i18n', function(i18n) {
|
|||||||
reqExpression: "webhook_required",
|
reqExpression: "webhook_required",
|
||||||
init: "false"
|
init: "false"
|
||||||
},
|
},
|
||||||
awPopOver: '<p>' + i18n._('Specify HTTP Headers in JSON format') + '</p>' +
|
awPopOver: i18n._('Specify HTTP Headers in JSON format. Refer to the Ansible Tower documentation for example syntax.'),
|
||||||
'<p>' + i18n._('For example:') + '<br><pre>\n' +
|
|
||||||
'{\n' +
|
|
||||||
' "X-Auth-Token": "828jf0",\n' +
|
|
||||||
' "X-Ansible": "Is great!"\n' +
|
|
||||||
'}\n' +
|
|
||||||
'</pre></p>',
|
|
||||||
dataPlacement: 'right',
|
dataPlacement: 'right',
|
||||||
ngShow: "notification_type.value == 'webhook' ",
|
ngShow: "notification_type.value == 'webhook' ",
|
||||||
subForm: 'typeSubForm',
|
subForm: 'typeSubForm',
|
||||||
@@ -374,9 +362,8 @@ export default ['i18n', function(i18n) {
|
|||||||
label: i18n._('Destination Channels or Users'),
|
label: i18n._('Destination Channels or Users'),
|
||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
rows: 3,
|
rows: 3,
|
||||||
awPopOver: '<p>' + i18n._('Type an option on each line. The pound symbol (#) is not required.') + '</p>'+
|
awPopOver: i18n._('Enter one IRC channel or username per line. The pound symbol (#) for channels, and the at (@) symbol for users, are not required.'),
|
||||||
'<p>' + i18n._('For example:') + '<br>' + i18n.sprintf(i18n._('%s or %s'), '#support', 'support') + '<br>\n ' + i18n.sprintf(i18n._('%s or %s'), '@username', 'username') + '<br>\n',
|
dataTitle: i18n._('Destination Channels or Users'),
|
||||||
dataTitle: i18n._('Destination Channels'),
|
|
||||||
dataPlacement: 'right',
|
dataPlacement: 'right',
|
||||||
dataContainer: "body",
|
dataContainer: "body",
|
||||||
awRequiredWhen: {
|
awRequiredWhen: {
|
||||||
|
|||||||
Reference in New Issue
Block a user