]>
Commit | Line | Data |
---|---|---|
5f3ec152 DM |
1 | Ext.define('PMG.LDAPProfileSelector', { |
2 | extend: 'Proxmox.form.ComboGrid', | |
3 | alias: 'widget.pmgLDAPProfileSelector', | |
4 | ||
5 | store: { | |
c87d46fb | 6 | fields: ['profile', 'disable', 'comment'], |
5f3ec152 DM |
7 | proxy: { |
8 | type: 'proxmox', | |
c87d46fb | 9 | url: '/api2/json/config/ldap', |
5f3ec152 DM |
10 | }, |
11 | filterOnLoad: true, | |
12 | sorters: [ | |
13 | { | |
c87d46fb TL |
14 | property: 'profile', |
15 | direction: 'ASC', | |
16 | }, | |
17 | ], | |
5f3ec152 DM |
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, | |
c87d46fb | 31 | width: 100, |
5f3ec152 DM |
32 | }, |
33 | { | |
34 | header: gettext('Enabled'), | |
35 | width: 80, | |
36 | sortable: true, | |
37 | dataIndex: 'disable', | |
c87d46fb | 38 | renderer: Proxmox.Utils.format_neg_boolean, |
5f3ec152 DM |
39 | }, |
40 | { | |
41 | header: gettext('Comment'), | |
42 | sortable: false, | |
43 | renderer: Ext.String.htmlEncode, | |
44 | dataIndex: 'comment', | |
c87d46fb TL |
45 | flex: 1, |
46 | }, | |
47 | ], | |
5f3ec152 DM |
48 | }, |
49 | ||
50 | initComponent: function() { | |
51 | var me = this; | |
52 | ||
53 | me.callParent(); | |
54 | ||
55 | me.store.load(); | |
c87d46fb | 56 | }, |
5f3ec152 | 57 | }); |