]> git.proxmox.com Git - proxmox-widget-toolkit.git/blob - node/TimeEdit.js
613a2f589804654f1655d73f27b6656d5626e211
[proxmox-widget-toolkit.git] / node / TimeEdit.js
1 Ext.define('Proxmox.node.TimeEdit', {
2 extend: 'Proxmox.window.Edit',
3 alias: ['widget.proxmoxNodeTimeEdit'],
4
5 subject: gettext('Time zone'),
6
7 width: 400,
8
9 autoLoad: true,
10
11 fieldDefaults: {
12 labelWidth: 70,
13 },
14
15 items: {
16 xtype: 'combo',
17 fieldLabel: gettext('Time zone'),
18 name: 'timezone',
19 queryMode: 'local',
20 store: Ext.create('Proxmox.data.TimezoneStore'),
21 displayField: 'zone',
22 editable: true,
23 anyMatch: true,
24 forceSelection: true,
25 allowBlank: false,
26 },
27
28 initComponent: function() {
29 let me = this;
30
31 if (!me.nodename) {
32 throw "no node name specified";
33 }
34 me.url = "/api2/extjs/nodes/" + me.nodename + "/time";
35
36 me.callParent();
37 },
38 });