Lines 49-54
define([
|
Link Here
|
---|
|
49 |
"umc/widgets/ComboBox", |
49 |
"umc/widgets/ComboBox", |
50 |
"umc/widgets/Form", |
50 |
"umc/widgets/Form", |
51 |
"umc/widgets/Page", |
51 |
"umc/widgets/Page", |
|
|
52 |
"umc/widgets/LinkList", |
52 |
"umc/widgets/StandbyMixin", |
53 |
"umc/widgets/StandbyMixin", |
53 |
"umc/widgets/TabController", |
54 |
"umc/widgets/TabController", |
54 |
"dijit/layout/StackContainer", |
55 |
"dijit/layout/StackContainer", |
Lines 62-68
define([
|
Link Here
|
---|
|
62 |
"umc/i18n!umc/modules/udm", |
63 |
"umc/i18n!umc/modules/udm", |
63 |
"dijit/registry", |
64 |
"dijit/registry", |
64 |
"umc/widgets" |
65 |
"umc/widgets" |
65 |
], function(declare, lang, array, on, Deferred, all, when, construct, domClass, topic, json, TitlePane, render, tools, dialog, ContainerWidget, MultiInput, ComboBox, Form, Page, StandbyMixin, TabController, StackContainer, Text, Button, LabelPane, Template, OverwriteLabel, UMCPBundle, cache, _ ) { |
66 |
], function(declare, lang, array, on, Deferred, all, when, construct, domClass, topic, json, TitlePane, render, tools, dialog, ContainerWidget, MultiInput, ComboBox, Form, Page, LinkList, StandbyMixin, TabController, StackContainer, Text, Button, LabelPane, Template, OverwriteLabel, UMCPBundle, cache, _ ) { |
66 |
|
67 |
|
67 |
var _StandbyPage = declare([Page, StandbyMixin], {}); |
68 |
var _StandbyPage = declare([Page, StandbyMixin], {}); |
68 |
|
69 |
|
Lines 443-448
define([
|
Link Here
|
---|
|
443 |
})); |
444 |
})); |
444 |
}, |
445 |
}, |
445 |
|
446 |
|
|
|
447 |
_renderReferencingObjectsTab: function(loadedDeferred) { |
448 |
when(this.ldapName, lang.hitch(this, function() { |
449 |
this._referencingObjectsTab = new Page({ |
450 |
title: _('Referencing objects'), |
451 |
noFooter: true, |
452 |
headerText: _('Objects referencing this %s', this.objectNameSingular) |
453 |
}); |
454 |
loadedDeferred.then(lang.hitch(this, '_createReferencingObjects')); |
455 |
})); |
456 |
}, |
457 |
|
458 |
_createReferencingObjects: function() { |
459 |
if (!this.ldapName || !this._receivedObjOrigData.$references$ || !this._receivedObjOrigData.$references$.length) { |
460 |
return; |
461 |
} |
462 |
this._addSubTab(this._referencingObjectsTab, 1); |
463 |
var referencingObjects = new LinkList({ |
464 |
staticValues: this._receivedObjOrigData.$references$ |
465 |
}); |
466 |
this._referencingObjectsTab.addChild(referencingObjects); |
467 |
}, |
468 |
|
446 |
_renderPolicyTab: function(policies) { |
469 |
_renderPolicyTab: function(policies) { |
447 |
this._policyWidgets = {}; |
470 |
this._policyWidgets = {}; |
448 |
if (policies && policies.length) { |
471 |
if (policies && policies.length) { |
Lines 1022-1028
define([
|
Link Here
|
---|
|
1022 |
})); |
1045 |
})); |
1023 |
}, |
1046 |
}, |
1024 |
|
1047 |
|
1025 |
_addSubTab: function(page) { |
1048 |
_addSubTab: function(page, index) { |
|
|
1049 |
index = index || this._tabs.getChildren().length; |
1026 |
var tabController = new TabController({ |
1050 |
var tabController = new TabController({ |
1027 |
region: 'nav', |
1051 |
region: 'nav', |
1028 |
containerId: this._tabs.id, |
1052 |
containerId: this._tabs.id, |
Lines 1037-1043
define([
|
Link Here
|
---|
|
1037 |
page.addChild(page.position_text); |
1061 |
page.addChild(page.position_text); |
1038 |
page.own(page.position_text); |
1062 |
page.own(page.position_text); |
1039 |
|
1063 |
|
1040 |
this._tabs.addChild(page); |
1064 |
this._tabs.addChild(page, index); |
1041 |
this.own(page); |
1065 |
this.own(page); |
1042 |
}, |
1066 |
}, |
1043 |
|
1067 |
|
Lines 1118-1123
define([
|
Link Here
|
---|
|
1118 |
this._autoUpdateTabTitle(widgets); |
1142 |
this._autoUpdateTabTitle(widgets); |
1119 |
this._renderSubTabs(widgets, layout, metaInfo).then(lang.hitch(this, function() { |
1143 |
this._renderSubTabs(widgets, layout, metaInfo).then(lang.hitch(this, function() { |
1120 |
this._renderPolicyTab(policies); |
1144 |
this._renderPolicyTab(policies); |
|
|
1145 |
this._renderReferencingObjectsTab(loadedDeferred); |
1121 |
this._renderForm(widgets); |
1146 |
this._renderForm(widgets); |
1122 |
this._renderMultiEditCheckBoxes(widgets); |
1147 |
this._renderMultiEditCheckBoxes(widgets); |
1123 |
this._registerOptionWatchHandler(); |
1148 |
this._registerOptionWatchHandler(); |