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