--- /dev/null
+Ext.define('Proxmox.panel.PruneInputPanel', {
+ extend: 'Proxmox.panel.InputPanel',
+ xtype: 'pmxPruneInputPanel',
+ mixins: ['Proxmox.Mixin.CBind'],
+
+ // set on use for now
+ //onlineHelp: 'maintenance_pruning',
+
+ cbindData: function() {
+ let me = this;
+ me.isCreate = !!me.isCreate;
+ return {};
+ },
+
+ column1: [
+ {
+ xtype: 'pmxPruneKeepInput',
+ name: 'keep-last',
+ fieldLabel: gettext('keep-last'),
+ cbind: {
+ deleteEmpty: '{!isCreate}',
+ },
+ },
+ {
+ xtype: 'pmxPruneKeepInput',
+ name: 'keep-daily',
+ fieldLabel: gettext('Keep Daily'),
+ cbind: {
+ deleteEmpty: '{!isCreate}',
+ },
+ },
+ {
+ xtype: 'pmxPruneKeepInput',
+ name: 'keep-monthly',
+ fieldLabel: gettext('Keep Monthly'),
+ cbind: {
+ deleteEmpty: '{!isCreate}',
+ },
+ },
+ ],
+ column2: [
+ {
+ xtype: 'pmxPruneKeepInput',
+ fieldLabel: gettext('Keep Hourly'),
+ name: 'keep-hourly',
+ cbind: {
+ deleteEmpty: '{!isCreate}',
+ },
+ },
+ {
+ xtype: 'pmxPruneKeepInput',
+ name: 'keep-weekly',
+ fieldLabel: gettext('Keep Weekly'),
+ cbind: {
+ deleteEmpty: '{!isCreate}',
+ },
+ },
+ {
+ xtype: 'pmxPruneKeepInput',
+ name: 'keep-yearly',
+ fieldLabel: gettext('Keep Yearly'),
+ cbind: {
+ deleteEmpty: '{!isCreate}',
+ },
+ },
+ ],
+});