summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-01-14 15:14:32 -0500
committerEndi Sukma Dewata <edewata@people01.fedoraproject.org>2011-01-15 04:42:49 +0000
commit285ee9db0ccdac92e0b2b7253483111a5152a465 (patch)
tree220cd269c969f08bf7569045e20b57a38ceaae6e /install
parentf92c831a323f0e32d8bb2c2c0623fcaa2f273bd7 (diff)
downloadfreeipa-285ee9db0ccdac92e0b2b7253483111a5152a465.tar.gz
freeipa-285ee9db0ccdac92e0b2b7253483111a5152a465.tar.xz
freeipa-285ee9db0ccdac92e0b2b7253483111a5152a465.zip
Details to Settings
Using I18N messages for most of the details
Diffstat (limited to 'install')
-rw-r--r--install/static/aci.js15
-rw-r--r--install/static/details.js1
-rw-r--r--install/static/entity.js3
-rw-r--r--install/static/group.js5
-rw-r--r--install/static/hbacrule.js3
-rw-r--r--install/static/hbacsvc.js5
-rw-r--r--install/static/hbacsvcgroup.js3
-rw-r--r--install/static/host.js7
-rw-r--r--install/static/hostgroup.js4
-rw-r--r--install/static/netgroup.js4
-rw-r--r--install/static/policy.js10
-rw-r--r--install/static/service.js7
-rw-r--r--install/static/sudocmd.js3
-rw-r--r--install/static/sudocmdgroup.js3
-rw-r--r--install/static/sudorule.js1
-rw-r--r--install/static/test/data/ipa_init.json24
-rw-r--r--install/static/user.js14
17 files changed, 53 insertions, 59 deletions
diff --git a/install/static/aci.js b/install/static/aci.js
index 77f147c16..85cfcaa85 100644
--- a/install/static/aci.js
+++ b/install/static/aci.js
@@ -644,8 +644,7 @@ IPA.permission_search_facet = function (spec) {
IPA.permission_details_facet = function () {
var spec = {
- name: 'details',
- label: 'Details'
+ name: 'details'
};
var that = IPA.details_facet(spec);
@@ -695,9 +694,9 @@ IPA.add_entity( function() {
that.add_facet(search_facet);
that.add_facet(function() {
- var that = IPA.details_facet({name:'details',label:'Details'});
+ var that = IPA.details_facet({name:'details'});
that.add_section(
- IPA.stanza({name:'identity', label:'Privilege Details'}).
+ IPA.stanza({name:'identity', label:'Privilege Settings'}).
input({name:'cn'}).
input({name: 'description'}));
return that;
@@ -737,9 +736,9 @@ IPA.add_entity( function() {
that.add_facet(search_facet);
that.add_facet(function() {
- var that = IPA.details_facet({name:'details',label:'Details'});
+ var that = IPA.details_facet({name:'details'});
that.add_section(
- IPA.stanza({name:'identity', label:'Role Details'}).
+ IPA.stanza({name:'identity', label:'Role Settings'}).
input({name:'cn'}).
input({name: 'description'}));
return that;
@@ -783,7 +782,7 @@ IPA.add_entity( function() {
that.add_facet(function(){
- var that = IPA.details_facet({'name':'details',label:'Details'});
+ var that = IPA.details_facet({'name':'details'});
that.init = function() {
that.add_section(
@@ -835,7 +834,7 @@ IPA.add_entity( function() {
return that;
}());
that.add_facet(function(){
- var that = IPA.details_facet({'name':'details',label:'Details'});
+ var that = IPA.details_facet({'name':'details'});
var section =
IPA.stanza({name:'general', label:'General'}).
input({name:'aciname'}).
diff --git a/install/static/details.js b/install/static/details.js
index 041947b8c..5c6bc83a2 100644
--- a/install/static/details.js
+++ b/install/static/details.js
@@ -488,6 +488,7 @@ IPA.details_facet = function (spec) {
var that = IPA.facet(spec);
+ that.label = ( IPA.messages && IPA.messages.facets && IPA.messages.facets.details) || spec.label;
that.is_dirty = spec.is_dirty || is_dirty;
that.create = spec.create || create;
that.setup = spec.setup || setup;
diff --git a/install/static/entity.js b/install/static/entity.js
index b980c9569..30c0ea46d 100644
--- a/install/static/entity.js
+++ b/install/static/entity.js
@@ -303,8 +303,7 @@ IPA.entity_get_details_facet = function (entity_name) {
if (facet) return facet;
facet = IPA.details_facet({
- 'name': 'details',
- 'label': 'Details'
+ 'name': 'details'
});
entity.add_facet(facet);
diff --git a/install/static/group.js b/install/static/group.js
index 30e29e3d6..13017ac5a 100644
--- a/install/static/group.js
+++ b/install/static/group.js
@@ -59,8 +59,7 @@ IPA.group = function () {
that.add_facet(facet);
facet = IPA.group_details_facet({
- 'name': 'details',
- 'label': 'Details'
+ 'name': 'details'
});
that.add_facet(facet);
@@ -128,7 +127,7 @@ IPA.group_details_facet = function (spec) {
var section = IPA.details_list_section({
name: 'details',
- label: 'Group Details'
+ label: 'Group Settings'
});
that.add_section(section);
diff --git a/install/static/hbacrule.js b/install/static/hbacrule.js
index 966d86b78..455ad4d38 100644
--- a/install/static/hbacrule.js
+++ b/install/static/hbacrule.js
@@ -44,8 +44,7 @@ IPA.hbacrule = function () {
that.add_facet(facet);
facet = IPA.hbacrule_details_facet({
- 'name': 'details',
- 'label': 'Details'
+ 'name': 'details'
});
that.add_facet(facet);
diff --git a/install/static/hbacsvc.js b/install/static/hbacsvc.js
index eacdf8683..dc0bc3230 100644
--- a/install/static/hbacsvc.js
+++ b/install/static/hbacsvc.js
@@ -44,8 +44,7 @@ IPA.hbacsvc = function () {
that.add_facet(facet);
facet = IPA.hbacsvc_details_facet({
- 'name': 'details',
- 'label': 'Details'
+ 'name': 'details'
});
that.add_facet(facet);
@@ -116,4 +115,4 @@ IPA.hbacsvc_details_facet = function (spec) {
};
return that;
-}; \ No newline at end of file
+};
diff --git a/install/static/hbacsvcgroup.js b/install/static/hbacsvcgroup.js
index c437768d7..2dd049cbe 100644
--- a/install/static/hbacsvcgroup.js
+++ b/install/static/hbacsvcgroup.js
@@ -50,8 +50,7 @@ IPA.hbacsvcgroup = function () {
that.add_facet(facet);
facet = IPA.hbacsvcgroup_details_facet({
- 'name': 'details',
- 'label': 'Details'
+ 'name': 'details'
});
that.add_facet(facet);
diff --git a/install/static/host.js b/install/static/host.js
index 6b84f87de..2e82936be 100644
--- a/install/static/host.js
+++ b/install/static/host.js
@@ -56,8 +56,7 @@ IPA.host = function () {
that.add_facet(facet);
facet = IPA.host_details_facet({
- 'name': 'details',
- 'label': 'Details'
+ 'name': 'details'
});
that.add_facet(facet);
@@ -132,7 +131,7 @@ IPA.host_details_facet = function (spec) {
var section = IPA.details_list_section({
'name': 'details',
- 'label': 'Host Details'
+ 'label': 'Host Settings'
});
that.add_section(section);
@@ -481,4 +480,4 @@ IPA.host_managedby_host_facet = function (spec) {
};
return that;
-}; \ No newline at end of file
+};
diff --git a/install/static/hostgroup.js b/install/static/hostgroup.js
index f8590cc37..0525c05f2 100644
--- a/install/static/hostgroup.js
+++ b/install/static/hostgroup.js
@@ -38,9 +38,9 @@ IPA.add_entity( function() {
that.add_facet(search_facet);
that.add_facet(function() {
- var that = IPA.details_facet({name:'details',label:'Details'});
+ var that = IPA.details_facet({name:'details'});
that.add_section(
- IPA.stanza({name:'identity', label:'Hostgroup Details'}).
+ IPA.stanza({name:'identity', label:'Hostgroup Settings'}).
input({name:'cn'}).
input({name: 'description'}));
return that;
diff --git a/install/static/netgroup.js b/install/static/netgroup.js
index cfc65b0f7..205673514 100644
--- a/install/static/netgroup.js
+++ b/install/static/netgroup.js
@@ -37,9 +37,9 @@ IPA.add_entity( function() {
that.add_facet(search_facet);
that.add_facet(function() {
- var that = IPA.details_facet({name:'details',label:'Details'});
+ var that = IPA.details_facet({name:'details'});
that.add_section(
- IPA.stanza({name:'identity', label:'Netgroup Details'}).
+ IPA.stanza({name:'identity', label:'Netgroup Settings'}).
input({name:'cn'}).
input({name: 'description'}).
input({name:'nisdomainname'}));
diff --git a/install/static/policy.js b/install/static/policy.js
index 7984a2e54..36222c6ab 100644
--- a/install/static/policy.js
+++ b/install/static/policy.js
@@ -40,9 +40,9 @@ IPA.add_entity(function (){
that.add_facet(search_facet);
that.add_facet(function() {
- var that = IPA.details_facet({name:'details',label:'Details'});
+ var that = IPA.details_facet({name:'details'});
that.add_section(
- IPA.stanza({name:'identity', label:'DNS Zone Details'}).
+ IPA.stanza({name:'identity', label:'DNS Zone Settings'}).
input({name:'idnsname'}).
input({name:'idnszoneactive'}).
input({name:'idnssoamname'}).
@@ -507,9 +507,9 @@ IPA.add_entity(function (){
that.add_facet(function() {
- var that = IPA.details_facet({name:'details',label:'Details'});
+ var that = IPA.details_facet({name:'details'});
that.add_section(
- IPA.stanza({name:'identity', label:'Automount Location Details'}).
+ IPA.stanza({name:'identity', label:'Automount Location Settings'}).
input({name:'cn'}));
return that;
}());
@@ -551,7 +551,7 @@ IPA.add_entity(function (){
that.add_facet(function() {
- var that = IPA.details_facet({name:'details',label:'Details'});
+ var that = IPA.details_facet({name:'details'});
that.add_section(
IPA.stanza({name:'identity', label:'Password Policy'}).
diff --git a/install/static/service.js b/install/static/service.js
index de583bde1..ad3a2fe67 100644
--- a/install/static/service.js
+++ b/install/static/service.js
@@ -51,8 +51,7 @@ IPA.service = function () {
that.add_facet(facet);
facet = IPA.service_details_facet({
- 'name': 'details',
- 'label': 'Details'
+ 'name': 'details'
});
that.add_facet(facet);
@@ -185,7 +184,7 @@ IPA.service_details_facet = function (spec) {
var section = IPA.details_list_section({
name: 'details',
- label: 'Service Details'
+ label: 'Service Settings'
});
that.add_section(section);
@@ -458,4 +457,4 @@ IPA.service_managedby_host_facet = function (spec) {
};
return that;
-}; \ No newline at end of file
+};
diff --git a/install/static/sudocmd.js b/install/static/sudocmd.js
index f9759ba3d..ecc71a75d 100644
--- a/install/static/sudocmd.js
+++ b/install/static/sudocmd.js
@@ -45,7 +45,6 @@ IPA.sudocmd = function () {
facet = IPA.sudocmd_details_facet({
'name': 'details',
- 'label': 'Details'
});
that.add_facet(facet);
@@ -276,4 +275,4 @@ IPA.sudocmd_member_sudocmdgroup_table_widget = function (spec) {
};
return that;
-}; \ No newline at end of file
+};
diff --git a/install/static/sudocmdgroup.js b/install/static/sudocmdgroup.js
index ef93de9b4..21a60d39b 100644
--- a/install/static/sudocmdgroup.js
+++ b/install/static/sudocmdgroup.js
@@ -51,7 +51,6 @@ IPA.sudocmdgroup = function () {
facet = IPA.sudocmdgroup_details_facet({
'name': 'details',
- 'label': 'Details'
});
that.add_facet(facet);
@@ -195,4 +194,4 @@ IPA.sudocmdgroup_member_sudocmd_table_widget = function (spec) {
};
return that;
-}; \ No newline at end of file
+};
diff --git a/install/static/sudorule.js b/install/static/sudorule.js
index 43ae267e8..a7774337d 100644
--- a/install/static/sudorule.js
+++ b/install/static/sudorule.js
@@ -45,7 +45,6 @@ IPA.sudorule = function () {
facet = IPA.sudorule_details_facet({
'name': 'details',
- 'label': 'Details'
});
that.add_facet(facet);
diff --git a/install/static/test/data/ipa_init.json b/install/static/test/data/ipa_init.json
index aad7b3325..fdd5dbcdd 100644
--- a/install/static/test/data/ipa_init.json
+++ b/install/static/test/data/ipa_init.json
@@ -7714,14 +7714,18 @@
"update": "Update"
},
"details": {
- "account": "Account Details",
- "contact": "Contact Details",
- "employee": " Employee Information",
- "identity": "Identity Details",
+ "account": "Account Settings",
+ "contact": "Contact Settings",
+ "employee": "Employee Information",
+ "identity": "Identity Settings",
"mailing": "Mailing Address",
"misc": "Misc. Information",
"to_top": "Back to Top"
},
+ "facets": {
+ "details": "Settings",
+ "search": "Search"
+ },
"login": {
"header": "Logged In As"
},
@@ -7746,22 +7750,22 @@
"Administrator"
],
"gidnumber": [
- "1333600000"
+ "590200000"
],
"homedirectory": [
"/home/admin"
],
"ipauniqueid": [
- "26f59232-1eb0-11e0-9271-52540029a798"
+ "3f1c60c6-2026-11e0-80c2-52540029a798"
],
"krblastpwdchange": [
- "20110113005936Z"
+ "20110114213748Z"
],
"krblastsuccessfulauth": [
- "20110113180851Z"
+ "20110114213845Z"
],
"krbpasswordexpiration": [
- "20110413005936Z"
+ "20110414213748Z"
],
"krbprincipalname": [
"admin@IPA14.AYOUNG.BOSTON.DEVEL.REDHAT.COM"
@@ -7795,7 +7799,7 @@
"admin"
],
"uidnumber": [
- "1333600000"
+ "590200000"
]
}
],
diff --git a/install/static/user.js b/install/static/user.js
index d8c493db4..1b499a824 100644
--- a/install/static/user.js
+++ b/install/static/user.js
@@ -54,7 +54,7 @@ IPA.user = function (){
search_facet.create_column({name:'telephonenumber'});
search_facet.create_column({name:'title'});
- that.add_facet(details_facet({name:'details',label:'Details'}));
+ that.add_facet(details_facet({name:'details'}));
var dialog = IPA.add_dialog({
'name': 'add',
@@ -81,14 +81,14 @@ IPA.user = function (){
var that = IPA.details_facet(spec);
var sections =[
- IPA.stanza({name:'identity', label:'Identity Details'}).
+ IPA.stanza({name:'identity', label:IPA.messages.details.identity}).
input({name:'title'}).
input({name:'givenname'}).
input({name:'sn'}).
input({name:'cn'}).
input({name:'displayname'}).
input({name:'initials'}),
- IPA.stanza({name:'account', label:'Account Details'}).
+ IPA.stanza({name:'account', label:IPA.messages.details.account}).
custom_input(user_status_widget({name:'nsaccountlock'})).
input({name:'uid'}).
input({name:'userpassword', load: user_password_load}).
@@ -96,21 +96,21 @@ IPA.user = function (){
input({name:'gidnumber'}).
input({name:'loginshell'}).
input({name:'homedirectory'}),
- IPA.stanza({name:'contact', label:'Contact Details'}).
+ IPA.stanza({name:'contact', label:IPA.messages.details.contact}).
input({name:'mail'}).
input({name:'telephonenumber'}).
input({name:'pager'}).
input({name:'mobile'}).
input({name:'facsimiletelephonenumber'}),
- IPA.stanza({name:'address', label:'Mailing Address'}).
+ IPA.stanza({name:'address', label: IPA.messages.details.mailing}).
input({name:'street'}).
input({name:'location'}).
input({name:'state', load:user_state_load}).
input({name:'postalcode'}),
- IPA.stanza({name:'employee', label:'Employee Information'}).
+ IPA.stanza({name:'employee', label:IPA.messages.details.employee}).
input({name:'ou', label:'Org. Unit'}).
input({name:'manager'}),
- IPA.stanza({name:'misc', label:'Misc. Information'}).
+ IPA.stanza({name:'misc', label:IPA.messages.details.misc}).
input({name:'carlicense'})
];
for (var i = 0; i < sections.length; i += 1){