mirror of
https://github.com/ansible/awx.git
synced 2026-05-23 00:37:37 -02:30
Callback URL Label
Callback URL is now Provisioning Callback URL. Fixed missing popover footers on job template page as well.
This commit is contained in:
@@ -231,7 +231,7 @@ angular.module('JobTemplateFormDefinition', ['SchedulesListDefinition', 'Complet
|
||||
dataContainer: "body"
|
||||
},
|
||||
allow_callbacks: {
|
||||
label: 'Allow Callbacks',
|
||||
label: 'Allow Provisioning Callbacks',
|
||||
type: 'checkbox',
|
||||
addRequired: false,
|
||||
editRequird: false,
|
||||
@@ -239,14 +239,14 @@ angular.module('JobTemplateFormDefinition', ['SchedulesListDefinition', 'Complet
|
||||
falseValue: 'false',
|
||||
ngChange: "toggleCallback('host_config_key')",
|
||||
column: 2,
|
||||
awPopOver: "<p>Enable creation of a callback URL. With a callback URL a host can contact Tower and request a configuration update " +
|
||||
awPopOver: "<p>Enables creation of a provisioning callback URL. Using the URL a host can contact Tower and request a configuration update " +
|
||||
"using this job template.</p>",
|
||||
dataPlacement: 'right',
|
||||
dataTitle: 'Allow Callbacks',
|
||||
dataTitle: 'Allow Provisioning Callbacks',
|
||||
dataContainer: "body"
|
||||
},
|
||||
callback_url: {
|
||||
label: 'Callback URL',
|
||||
label: 'Provisioning Callback URL',
|
||||
type: 'text',
|
||||
addRequired: false,
|
||||
editRequired: false,
|
||||
@@ -256,7 +256,7 @@ angular.module('JobTemplateFormDefinition', ['SchedulesListDefinition', 'Complet
|
||||
awPopOver: "callback_help",
|
||||
awPopOverWatch: "callback_help",
|
||||
dataPlacement: 'right',
|
||||
dataTitle: 'Callback URL',
|
||||
dataTitle: 'Provisioning Callback URL',
|
||||
dataContainer: "body"
|
||||
},
|
||||
host_config_key: {
|
||||
|
||||
@@ -23,13 +23,14 @@ angular.module('JobTemplatesHelper', ['Utilities'])
|
||||
// The form uses awPopOverWatch directive to 'watch' scope.callback_help for changes. Each time the
|
||||
// popover is activated, a function checks the value of scope.callback_help before constructing the content.
|
||||
scope.setCallbackHelp = function() {
|
||||
scope.callback_help = "<p>With a callback URL and a host config key a host can contact Tower and request a configuration update using this job " +
|
||||
scope.callback_help = "<p>With a provisioning callback URL and a host config key a host can contact Tower and request a configuration update using this job " +
|
||||
"template. The request from the host must be a POST. Here is an example using curl:</p>\n" +
|
||||
"<pre>curl --data \"host_config_key=\"" + scope.example_config_key + "\" " +
|
||||
scope.callback_server_path + GetBasePath('job_templates') + scope.example_template_id + "/callback/</pre>\n" +
|
||||
"<p>Note the requesting host must be defined in the inventory associated with the job template. If Tower fails to " +
|
||||
"locate the host, the request will be denied.</p>" +
|
||||
"<p>Successful requests create an entry on the Jobs page, where results and history can be viewed.</p>";
|
||||
"<p>Successful requests create an entry on the Jobs page, where results and history can be viewed.</p>" +
|
||||
"<div class=\"popover-footer\"><span class=\"key\">esc</span> or click to close</div>";
|
||||
};
|
||||
|
||||
// The md5 helper emits NewMD5Generated whenever a new key is available
|
||||
|
||||
Reference in New Issue
Block a user