mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-08-16 08:35:33 +00:00
add matchfield and contenttype rules
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
a32c09e62d
commit
3a9b95a74a
@ -91,6 +91,6 @@ Ext.define('PMG.WhatConfiguration', {
|
|||||||
xtype: 'pmgWhatConfiguration',
|
xtype: 'pmgWhatConfiguration',
|
||||||
|
|
||||||
ogclass: 'what',
|
ogclass: 'what',
|
||||||
otype_list: []
|
otype_list: [3002, 3003]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
58
js/Utils.js
58
js/Utils.js
@ -208,6 +208,64 @@ Ext.define('PMG.Utils', {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
3002: {
|
||||||
|
xtype: 'proxmoxWindowEdit',
|
||||||
|
subdir: 'matchfield',
|
||||||
|
subject: gettext('Match Field'),
|
||||||
|
items: [
|
||||||
|
{
|
||||||
|
xtype: 'textfield',
|
||||||
|
name: 'field',
|
||||||
|
allowBlank: false,
|
||||||
|
fieldLabel: gettext('Field')
|
||||||
|
},
|
||||||
|
{
|
||||||
|
xtype: 'textfield',
|
||||||
|
name: 'value',
|
||||||
|
allowBlank: false,
|
||||||
|
fieldLabel: gettext('Value')
|
||||||
|
},
|
||||||
|
]
|
||||||
|
},
|
||||||
|
3003: {
|
||||||
|
xtype: 'proxmoxWindowEdit',
|
||||||
|
subdir: 'contenttype',
|
||||||
|
width: 400,
|
||||||
|
subject: gettext('Content Type'),
|
||||||
|
items: [
|
||||||
|
{
|
||||||
|
xtype: 'combobox',
|
||||||
|
displayField: 'text',
|
||||||
|
labelWidth: 150,
|
||||||
|
valueField: 'mimetype',
|
||||||
|
name: 'contenttype',
|
||||||
|
editable: true,
|
||||||
|
queryMode: 'local',
|
||||||
|
store: {
|
||||||
|
autoLoad: true,
|
||||||
|
proxy: {
|
||||||
|
type: 'proxmox',
|
||||||
|
url: '/api2/json/config/mimetypes'
|
||||||
|
},
|
||||||
|
},
|
||||||
|
fieldLabel: gettext('Content Type'),
|
||||||
|
anyMatch: true,
|
||||||
|
matchFieldWidth: false,
|
||||||
|
listeners: {
|
||||||
|
change: function(cb, value) {
|
||||||
|
var me = this;
|
||||||
|
me.up().down('displayfield').setValue(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
xtype: 'displayfield',
|
||||||
|
fieldLabel: gettext('Value'),
|
||||||
|
labelWidth: 150,
|
||||||
|
allowBlank: false,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
},
|
||||||
4005: {
|
4005: {
|
||||||
xtype: 'proxmoxWindowEdit',
|
xtype: 'proxmoxWindowEdit',
|
||||||
subdir: 'bcc',
|
subdir: 'bcc',
|
||||||
|
Loading…
Reference in New Issue
Block a user