]> git.proxmox.com Git - proxmox-backup.git/commit
ui: add GroupFilter form field(container)
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 29 Nov 2021 14:39:41 +0000 (15:39 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 1 Dec 2021 05:42:31 +0000 (06:42 +0100)
commit65bd918ac3aab57d3dca69d0726ab1c8945ec6e9
tree77f26c694b91ef29d517d0820b0744cf535c19a3
parent7d4d8f47c95810e51fad46ee9818d0e758113f32
ui: add GroupFilter form field(container)

this contains a grid + button + hidden field which lets the user
add group filters one by one. the first column is the type selector
(type, group, regex) and the second column shows the relevant
input field (groupselector, kvcombobox for type, and textfield for regex)

i had to hack a little to get access to the widgets of the
fieldcontainer, since we cannot simply access the widget of a column
from another column (which we need to show the correct one when changing
the type), also we cannot traverse the widget hirachy in the usual way,
since extjs seems to build it differently for widgetcolumns.

to solve this, i added references of the widgets to the record, and a
reference of the record to the widgets. since this is now a cyclic
reference, i solve that in 'removeFilter' and in 'beforedestroy' of the grid
by removing the references again

also contains a small css style to remove the padding in the rows

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/Makefile
www/css/ext6-pbs.css
www/form/GroupFilter.js [new file with mode: 0644]