proxmox-backup/www/tape/form/RetentionSelector.js
Dominik Csapak c72fdb53ae ui: tape: add form fields
this includes selectors for
* Allocation Policy
* Retention Policy
* Drives
* Changers
* Tape Device Paths
* Pools

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-01-28 15:07:09 +01:00

27 lines
924 B
JavaScript

Ext.define('PBS.TapeManagement.RetentionStore', {
extend: 'Ext.data.Store',
alias: 'store.retentionCalendarEventStore',
field: ['value', 'text'],
data: [
{ value: 'overwrite', text: gettext('Overwrite') },
{ value: 'keep', text: gettext('Keep') },
{ value: '120 minutes', text: Ext.String.format(gettext("{0} minutes"), 120) },
{ value: '12 hours', text: Ext.String.format(gettext("{0} hours"), 12) },
{ value: '7 days', text: Ext.String.format(gettext("{0} days"), 7) },
{ value: '4 weeks', text: Ext.String.format(gettext("{0} weeks"), 4) },
{ value: '6 months', text: Ext.String.format(gettext("{0} months"), 6) },
{ value: '2 years', text: Ext.String.format(gettext("{0} years"), 2) },
],
});
Ext.define('PBS.TapeManagement.RetentionSelector', {
extend: 'PBS.form.CalendarEvent',
alias: 'widget.pbsRetentionSelector',
store: {
type: 'retentionCalendarEventStore',
},
});