summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Houseknecht <chouse@ansibleworks.com>2013-11-06 16:30:37 +0100
committerChris Houseknecht <chouse@ansibleworks.com>2013-11-06 16:30:37 +0100
commitfa9ccf1d0a51c81e6d500ab60c360d0a3fc4360a (patch)
tree5f2d785ac3694b74513ad650168ecb7d2180f877
parentAC-570 Added host enabled flag on Hosts page, allowing one-click editing for ... (diff)
downloadawx-fa9ccf1d0a51c81e6d500ab60c360d0a3fc4360a.tar.xz
awx-fa9ccf1d0a51c81e6d500ab60c360d0a3fc4360a.zip
AC-595 for form/list definitions using \{\{ \}\} replacement variables in the title, include the capitalize filter.
-rw-r--r--awx/ui/static/js/forms/Inventories.js2
-rw-r--r--awx/ui/static/js/lists/InventorySummary.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/awx/ui/static/js/forms/Inventories.js b/awx/ui/static/js/forms/Inventories.js
index 61408a21e1..dacf6a9b14 100644
--- a/awx/ui/static/js/forms/Inventories.js
+++ b/awx/ui/static/js/forms/Inventories.js
@@ -11,7 +11,7 @@ angular.module('InventoryFormDefinition', [])
'InventoryForm', {
addTitle: 'Create Inventory',
- editTitle: '{{ inventory_name }}',
+ editTitle: '{{ inventory_name | capitalize }}',
name: 'inventory',
parseTypeName: 'inventoryParseType',
well: true,
diff --git a/awx/ui/static/js/lists/InventorySummary.js b/awx/ui/static/js/lists/InventorySummary.js
index 6e3cd7f2e1..046b1dcad4 100644
--- a/awx/ui/static/js/lists/InventorySummary.js
+++ b/awx/ui/static/js/lists/InventorySummary.js
@@ -12,7 +12,7 @@ angular.module('InventorySummaryDefinition', [])
name: 'groups',
iterator: 'group',
- editTitle: '{{ inventory_name }}',
+ editTitle: '{{ inventory_name | capitalize }}',
showTitle: true,
well: true,
index: false,