From b9ef6ab0c412913234f05f788b3fcd3c3277eb69 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Mon, 26 Nov 2012 14:28:32 +0100 Subject: Move of core Web UI files to AMD directory SSIA https://fedorahosted.org/freeipa/ticket/112 --- install/ui/aci.js | 897 -------- install/ui/add.js | 207 -- install/ui/association.js | 1389 ------------- install/ui/automember.js | 679 ------ install/ui/automount.js | 354 ---- install/ui/certificate.js | 924 --------- install/ui/details.js | 1239 ----------- install/ui/develop.js | 0 install/ui/dialog.js | 849 -------- install/ui/dns.js | 2552 ----------------------- install/ui/entitle.js | 745 ------- install/ui/entity.js | 731 ------- install/ui/facet.js | 2044 ------------------ install/ui/field.js | 951 --------- install/ui/group.js | 259 --- install/ui/hbac.js | 553 ----- install/ui/hbactest.js | 842 -------- install/ui/host.js | 947 --------- install/ui/hostgroup.js | 90 - install/ui/idrange.js | 162 -- install/ui/ipa.js | 2122 ------------------- install/ui/navigation.js | 455 ---- install/ui/net.js | 394 ---- install/ui/netgroup.js | 306 --- install/ui/policy.js | 122 -- install/ui/rule.js | 254 --- install/ui/search.js | 491 ----- install/ui/selinux.js | 315 --- install/ui/serverconfig.js | 118 -- install/ui/service.js | 467 ----- install/ui/src/freeipa/aci.js | 897 ++++++++ install/ui/src/freeipa/add.js | 207 ++ install/ui/src/freeipa/association.js | 1389 +++++++++++++ install/ui/src/freeipa/automember.js | 679 ++++++ install/ui/src/freeipa/automount.js | 354 ++++ install/ui/src/freeipa/certificate.js | 924 +++++++++ install/ui/src/freeipa/details.js | 1239 +++++++++++ install/ui/src/freeipa/develop.js | 0 install/ui/src/freeipa/dialog.js | 849 ++++++++ install/ui/src/freeipa/dns.js | 2552 +++++++++++++++++++++++ install/ui/src/freeipa/entitle.js | 745 +++++++ install/ui/src/freeipa/entity.js | 731 +++++++ install/ui/src/freeipa/facet.js | 2044 ++++++++++++++++++ install/ui/src/freeipa/field.js | 951 +++++++++ install/ui/src/freeipa/group.js | 259 +++ install/ui/src/freeipa/hbac.js | 553 +++++ install/ui/src/freeipa/hbactest.js | 842 ++++++++ install/ui/src/freeipa/host.js | 947 +++++++++ install/ui/src/freeipa/hostgroup.js | 90 + install/ui/src/freeipa/idrange.js | 162 ++ install/ui/src/freeipa/ipa.js | 2122 +++++++++++++++++++ install/ui/src/freeipa/navigation.js | 455 ++++ install/ui/src/freeipa/net.js | 394 ++++ install/ui/src/freeipa/netgroup.js | 306 +++ install/ui/src/freeipa/policy.js | 122 ++ install/ui/src/freeipa/rule.js | 254 +++ install/ui/src/freeipa/search.js | 491 +++++ install/ui/src/freeipa/selinux.js | 315 +++ install/ui/src/freeipa/serverconfig.js | 118 ++ install/ui/src/freeipa/service.js | 467 +++++ install/ui/src/freeipa/sudo.js | 930 +++++++++ install/ui/src/freeipa/trust.js | 183 ++ install/ui/src/freeipa/user.js | 663 ++++++ install/ui/src/freeipa/webui.js | 204 ++ install/ui/src/freeipa/widget.js | 3559 ++++++++++++++++++++++++++++++++ install/ui/sudo.js | 930 --------- install/ui/trust.js | 183 -- install/ui/user.js | 663 ------ install/ui/webui.js | 204 -- install/ui/widget.js | 3559 -------------------------------- 70 files changed, 26997 insertions(+), 26997 deletions(-) delete mode 100644 install/ui/aci.js delete mode 100644 install/ui/add.js delete mode 100644 install/ui/association.js delete mode 100644 install/ui/automember.js delete mode 100644 install/ui/automount.js delete mode 100755 install/ui/certificate.js delete mode 100644 install/ui/details.js delete mode 100644 install/ui/develop.js delete mode 100644 install/ui/dialog.js delete mode 100644 install/ui/dns.js delete mode 100644 install/ui/entitle.js delete mode 100644 install/ui/entity.js delete mode 100644 install/ui/facet.js delete mode 100644 install/ui/field.js delete mode 100644 install/ui/group.js delete mode 100644 install/ui/hbac.js delete mode 100644 install/ui/hbactest.js delete mode 100644 install/ui/host.js delete mode 100644 install/ui/hostgroup.js delete mode 100644 install/ui/idrange.js delete mode 100644 install/ui/ipa.js delete mode 100644 install/ui/navigation.js delete mode 100644 install/ui/net.js delete mode 100644 install/ui/netgroup.js delete mode 100644 install/ui/policy.js delete mode 100644 install/ui/rule.js delete mode 100644 install/ui/search.js delete mode 100644 install/ui/selinux.js delete mode 100644 install/ui/serverconfig.js delete mode 100644 install/ui/service.js create mode 100644 install/ui/src/freeipa/aci.js create mode 100644 install/ui/src/freeipa/add.js create mode 100644 install/ui/src/freeipa/association.js create mode 100644 install/ui/src/freeipa/automember.js create mode 100644 install/ui/src/freeipa/automount.js create mode 100755 install/ui/src/freeipa/certificate.js create mode 100644 install/ui/src/freeipa/details.js create mode 100644 install/ui/src/freeipa/develop.js create mode 100644 install/ui/src/freeipa/dialog.js create mode 100644 install/ui/src/freeipa/dns.js create mode 100644 install/ui/src/freeipa/entitle.js create mode 100644 install/ui/src/freeipa/entity.js create mode 100644 install/ui/src/freeipa/facet.js create mode 100644 install/ui/src/freeipa/field.js create mode 100644 install/ui/src/freeipa/group.js create mode 100644 install/ui/src/freeipa/hbac.js create mode 100644 install/ui/src/freeipa/hbactest.js create mode 100644 install/ui/src/freeipa/host.js create mode 100644 install/ui/src/freeipa/hostgroup.js create mode 100644 install/ui/src/freeipa/idrange.js create mode 100644 install/ui/src/freeipa/ipa.js create mode 100644 install/ui/src/freeipa/navigation.js create mode 100644 install/ui/src/freeipa/net.js create mode 100644 install/ui/src/freeipa/netgroup.js create mode 100644 install/ui/src/freeipa/policy.js create mode 100644 install/ui/src/freeipa/rule.js create mode 100644 install/ui/src/freeipa/search.js create mode 100644 install/ui/src/freeipa/selinux.js create mode 100644 install/ui/src/freeipa/serverconfig.js create mode 100644 install/ui/src/freeipa/service.js create mode 100644 install/ui/src/freeipa/sudo.js create mode 100644 install/ui/src/freeipa/trust.js create mode 100644 install/ui/src/freeipa/user.js create mode 100644 install/ui/src/freeipa/webui.js create mode 100644 install/ui/src/freeipa/widget.js delete mode 100644 install/ui/sudo.js delete mode 100644 install/ui/trust.js delete mode 100644 install/ui/user.js delete mode 100644 install/ui/webui.js delete mode 100644 install/ui/widget.js (limited to 'install') diff --git a/install/ui/aci.js b/install/ui/aci.js deleted file mode 100644 index bd7de19ab..000000000 --- a/install/ui/aci.js +++ /dev/null @@ -1,897 +0,0 @@ -/*jsl:import ipa.js */ - -/* Authors: - * Adam Young - * Endi S. Dewata - * - * Copyright (C) 2010 Red Hat - * see file 'COPYING' for use and warranty information - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; version 2 only - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -/* REQUIRES: ipa.js, details.js, search.js, add.js, facet.js, entity.js */ - -IPA.aci = {}; - -IPA.aci.permission_entity = function(spec) { - - var that = IPA.entity(spec); - - that.init = function() { - that.entity_init(); - - that.builder.facet_groups(['settings', 'privilege']). - search_facet({ - columns: [ 'cn' ] - }). - details_facet({ - factory: IPA.aci.permission_details_facet, - fields: [ - { - name:'cn', - widget: 'identity.cn' - }, - { - type: 'rights', - name: 'permissions', - widget: 'rights.permissions' - }, - { - type: 'select', - name: 'target', - widget: 'target.target', - enabled: false - }, - { - name: 'filter', - widget: 'target.filter', - enabled: false - }, - { - type: 'entity_select', - name: 'memberof', - widget: 'target.memberof', - enabled: false - }, - { - name: 'subtree', - widget: 'target.subtree', - enabled: false - }, - { - type: 'entity_select', - name: 'targetgroup', - widget: 'target.targetgroup', - enabled: false - }, - { - type: 'select', - name: 'type', - widget: 'target.type', - enabled: false - }, - { - name: 'attrs', - widget: 'target.attrs', - enabled: false - }, - { - name: 'attrs_multi', - param: 'attrs', - type: 'multivalued', - widget: 'target.attrs_multi', - enabled: false - } - ], - widgets: [ - { - type: 'details_table_section', - name: 'identity', - label: IPA.messages.objects.permission.identity, - widgets: [ - 'cn' - ] - }, - { - type: 'details_table_section', - name: 'rights', - label: IPA.messages.objects.permission.rights, - widgets: [ - { - type: 'rights', - name: 'permissions' - } - ] - }, - { - type: 'permission_target', - container_factory: IPA.details_table_section, - label: IPA.messages.objects.permission.target, - name: 'target', - show_target: false - } - ], - policies: [ - IPA.permission_target_policy('target') - ] - }). - association_facet({ - name: 'member_privilege', - facet_group: 'privilege' - }). - adder_dialog({ - height: 450, - fields: [ - { - name:'cn', - widget: 'general.cn' - }, - { - type: 'rights', - name: 'permissions', - widget: 'general.permissions' - }, - { - type: 'select', - name: 'target', - widget: 'target.target', - enabled: false - }, - { - name: 'filter', - widget: 'target.filter', - enabled: false - }, - { - type: 'entity_select', - name: 'memberof', - widget: 'target.memberof', - enabled: false - }, - { - name: 'subtree', - widget: 'target.subtree', - enabled: false - }, - { - type: 'entity_select', - name: 'targetgroup', - widget: 'target.targetgroup', - enabled: false - }, - { - type: 'select', - name: 'type', - widget: 'target.type', - enabled: false - }, - { - name: 'attrs', - widget: 'target.attrs', - enabled: false - }, - { - name: 'attrs_multi', - type: 'multivalued', - param: 'attrs', - widget: 'target.attrs_multi', - enabled: false - } - ], - widgets: [ - { - type: 'details_table_section_nc', - name: 'general', - widgets: [ - 'cn', - { - type: 'rights', - name: 'permissions' - } - ] - }, - { - type: 'permission_target', - name:'target', - show_target: true - } - ], - policies: [ - IPA.permission_target_policy('target') - ] - }); - }; - - return that; -}; - -IPA.aci.permission_details_facet = function(spec) { - - var that = IPA.details_facet(spec); - - that.get_refresh_command_name = function() { - return that.entity.name+'_show_'+that.pkey; - }; - - return that; -}; - -IPA.aci.privilege_entity = function(spec) { - - var that = IPA.entity(spec); - - that.init = function() { - that.entity_init(); - - that.builder.facet_groups(['permission', 'settings', 'role']). - search_facet({ - columns: [ - 'cn', - 'description' - ] - }). - details_facet({ - sections: [ - { - name: 'identity', - label: IPA.messages.details.identity, - fields: [ - 'cn', - { - type: 'textarea', - name: 'description' - } - ] - } - ] - }). - association_facet({ - name: 'member_role', - facet_group: 'role', - add_method: 'add_privilege', - remove_method: 'remove_privilege', - associator: IPA.serial_associator - }). - association_facet({ - name: 'memberof_permission', - facet_group: 'permission', - add_method: 'add_permission', - remove_method: 'remove_permission' - }). - standard_association_facets(). - adder_dialog({ - fields: [ - 'cn', - { - type: 'textarea', - name: 'description' - } - ] - }); - }; - - return that; -}; - -IPA.aci.role_entity = function(spec) { - - var that = IPA.entity(spec); - - that.init = function() { - that.entity_init(); - - that.builder.facet_groups(['member', 'privilege', 'settings']). - search_facet({ - columns: [ - 'cn', - 'description' - ] - }). - details_facet({ - sections: [ - { - name: 'identity', - label: IPA.messages.objects.role.identity, - fields: [ - 'cn', - { - type: 'textarea', - name: 'description' - } - ] - } - ] - }). - association_facet({ - name: 'memberof_privilege', - facet_group: 'privilege', - add_method: 'add_privilege', - remove_method: 'remove_privilege' - }). - standard_association_facets(). - adder_dialog({ - fields: [ - 'cn', - { - type: 'textarea', - name: 'description' - } - ] - }); - }; - - return that; -}; - -IPA.aci.selfservice_entity = function(spec) { - - var that = IPA.entity(spec); - - that.init = function() { - that.entity_init(); - - that.builder.search_facet({ - columns: [ 'aciname' ], - pagination: false - }). - details_facet({ - check_rights: false, - sections: [ - { - name: 'general', - label: IPA.messages.details.general, - fields: [ - 'aciname', - { - type: 'attributes', - object_type: 'user', - name: 'attrs' - } - ] - } - ] - }). - adder_dialog({ - fields: [ - 'aciname', - { - type: 'attributes', - object_type: 'user', - name: 'attrs' - } - ] - }); - }; - - return that; -}; - -IPA.aci.delegation_entity = function(spec) { - - var that = IPA.entity(spec); - - that.group_entity = IPA.get_entity(spec.group_entity || 'group'); - - that.init = function() { - that.entity_init(); - - that.builder.search_facet({ - columns: [ 'aciname' ], - pagination: false - }). - details_facet({ - check_rights: false, - sections: [ - { - name: 'general', - label: IPA.messages.details.general, - fields: [ - 'aciname', - { - type: 'checkboxes', - name: 'permissions', - required: true, - options: IPA.create_options(['read', 'write']) - }, - { - type: 'entity_select', - name: 'group', - other_entity: that.group_entity, - other_field: 'cn' - }, - { - type: 'entity_select', - name: 'memberof', - other_entity: that.group_entity, - other_field: 'cn' - }, - { - type: 'attributes', - name: 'attrs', - object_type: 'user' - } - ] - } - ] - }). - standard_association_facets(). - adder_dialog({ - fields: [ - 'aciname', - { - type: 'checkboxes', - name: 'permissions', - options: IPA.create_options(['read', 'write']) - }, - { - type: 'entity_select', - name: 'group', - other_entity: that.group_entity, - other_field: 'cn' - }, - { - type: 'entity_select', - name: 'memberof', - other_entity: that.group_entity, - other_field: 'cn' - }, - { - type: 'attributes', - name: 'attrs', - object_type: 'user' - } - ] - }); - }; - - return that; -}; - - -IPA.attributes_widget = function(spec) { - - spec = spec || {}; - - var that = IPA.checkboxes_widget(spec); - - that.object_type = spec.object_type; - that.skip_unmatched = spec.skip_unmatched === undefined ? false : spec.skip_unmatched; - - var id = spec.name; - - that.create = function(container) { - that.container = container; - - var attr_container = $('
', { - 'class': 'aci-attribute-table-container' - }).appendTo(container); - - that.table = $('', { - id:id, - 'class':'search-table aci-attribute-table scrollable' - }). - append(''). - append(''). - appendTo(attr_container); - - var tr = $('').appendTo($('thead', that.table)); - - tr.append($('
', { - html: $('', { - type: "checkbox", - click: function() { - $('.aci-attribute', that.table). - prop('checked', $(this).prop('checked')); - that.value_changed.notify([], that); - } - }) - })).append($('', { - 'class': 'aci-attribute-column', - html: IPA.messages.objects.aci.attribute - })); - - if (that.undo) { - that.create_undo(container); - } - - if (that.object_type) { - that.populate(that.object_type); - } - - that.create_error_link(container); - }; - - that.create_options = function(options) { - var tbody = $('tbody', that.table); - - for (var i=0; i').appendTo(tbody); - - var td = $('').appendTo(tr); - td.append($('',{ - type: 'checkbox', - name: that.name, - value: value, - 'class': 'aci-attribute', - change: function() { - that.value_changed.notify([], that); - } - })); - td = $('').appendTo(tr); - td.append($('