diff --git a/awx/ui/client/src/projects/projects-templates.route.js b/awx/ui/client/src/projects/projects-templates.route.js index 45c3caa2ea..0015c9661e 100644 --- a/awx/ui/client/src/projects/projects-templates.route.js +++ b/awx/ui/client/src/projects/projects-templates.route.js @@ -33,6 +33,7 @@ export default { ListDefinition: ['TemplateList', '$transition$', (TemplateList, $transition$) => { let id = $transition$.params().project_id; TemplateList.actions.add.ngClick = `$state.go('templates.addJobTemplate', {project_id: ${id}})`; + TemplateList.basePath = 'job_templates'; return TemplateList; }], Dataset: ['ListDefinition', 'QuerySet', '$stateParams', 'GetBasePath', '$interpolate', '$rootScope', diff --git a/awx/ui/client/src/shared/form-generator.js b/awx/ui/client/src/shared/form-generator.js index d90cac087a..6444370b3b 100644 --- a/awx/ui/client/src/shared/form-generator.js +++ b/awx/ui/client/src/shared/form-generator.js @@ -1950,29 +1950,31 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat if (collection.fieldActions) { html += "
"; for (act in collection.fieldActions) { - fAction = collection.fieldActions[act]; - html += ""; } - // html += SelectIcon({ action: act }); - //html += (fAction.label) ? " " + fAction.label + "": ""; - html += ""; } html += "
"; html += "\n";