summaryrefslogtreecommitdiffstats
path: root/install/ui/entity.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2012-08-02 17:37:12 +0200
committerMartin Kosek <mkosek@redhat.com>2012-08-14 08:09:43 +0200
commit5d2b0fecd57b18b647ff9f243196cf98ead2d9fd (patch)
tree3a990bedba331edbd7869e34c63213710fbb7df6 /install/ui/entity.js
parent7c99e2d6617a397e4f8f1185032e17b779245181 (diff)
downloadfreeipa-5d2b0fecd57b18b647ff9f243196cf98ead2d9fd.tar.gz
freeipa-5d2b0fecd57b18b647ff9f243196cf98ead2d9fd.tar.xz
freeipa-5d2b0fecd57b18b647ff9f243196cf98ead2d9fd.zip
Attribute facet
Created new type of facet: attribute facet. This facet is similar to association facet but it serves for displaying object's multivalued attributes which behaves like association attributes. It will serve as a basis for displaying group's externalmember attribute. https://fedorahosted.org/freeipa/ticket/2895
Diffstat (limited to 'install/ui/entity.js')
-rw-r--r--install/ui/entity.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/install/ui/entity.js b/install/ui/entity.js
index 49f30b0b2..d474ad95b 100644
--- a/install/ui/entity.js
+++ b/install/ui/entity.js
@@ -420,6 +420,15 @@ IPA.entity_builder = function() {
return that;
};
+ that.attribute_facet = function(spec) {
+
+ spec.type = spec.type || 'attribute';
+
+ that.facet(spec);
+
+ return that;
+ };
+
that.standard_association_facets = function(spec) {
spec = spec || {};