]> git.proxmox.com Git - pmg-gui.git/blob - js/LDAPProfileSelector.js
quarantines: add support for a theme toggle
[pmg-gui.git] / js / LDAPProfileSelector.js
1 Ext.define('PMG.LDAPProfileSelector', {
2 extend: 'Proxmox.form.ComboGrid',
3 alias: 'widget.pmgLDAPProfileSelector',
4
5 store: {
6 fields: ['profile', 'disable', 'comment'],
7 proxy: {
8 type: 'proxmox',
9 url: '/api2/json/config/ldap',
10 },
11 filterOnLoad: true,
12 sorters: [
13 {
14 property: 'profile',
15 direction: 'ASC',
16 },
17 ],
18 },
19
20 valueField: 'profile',
21 displayField: 'profile',
22
23 allowBlank: false,
24
25 listConfig: {
26 columns: [
27 {
28 header: gettext('Profile'),
29 dataIndex: 'profile',
30 hideable: false,
31 width: 100,
32 },
33 {
34 header: gettext('Enabled'),
35 width: 80,
36 sortable: true,
37 dataIndex: 'disable',
38 renderer: Proxmox.Utils.format_neg_boolean,
39 },
40 {
41 header: gettext('Comment'),
42 sortable: false,
43 renderer: Ext.String.htmlEncode,
44 dataIndex: 'comment',
45 flex: 1,
46 },
47 ],
48 },
49
50 initComponent: function() {
51 var me = this;
52
53 me.callParent();
54
55 me.store.load();
56 },
57 });