diff --git a/www/manager5/form/Boolean.js b/www/manager5/form/Boolean.js new file mode 100644 index 00000000..1bcba956 --- /dev/null +++ b/www/manager5/form/Boolean.js @@ -0,0 +1,17 @@ +// boolean type including 'Default' (delete property from file) +Ext.define('PVE.form.Boolean', { + extend: 'PVE.form.KVComboBox', + alias: ['widget.booleanfield'], + + initComponent: function() { + var me = this; + + me.data = [ + ['', gettext('Default')], + [1, gettext('Yes')], + [0, gettext('No')] + ]; + + me.callParent(); + } +});