This is similar to how we did in panel/LogView but adds disabling
also to the label, not only the picker field, which is a bit nicer.
And no, it really does not seems like this can be done easier...
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
}
]
},
+ {
+ xtype: 'box',
+ bind: { disabled: '{livemode}' },
+ autoEl: { cn: gettext('Since') + ':' }
+ },
{
xtype: 'datefield',
- fieldLabel: gettext('Since'),
name: 'since_date',
reference: 'since',
format: 'Y-m-d',
maxValue: '{until}'
}
},
+ {
+ xtype: 'box',
+ bind: { disabled: '{livemode}' },
+ autoEl: { cn: gettext('Until') + ':' }
+ },
{
xtype: 'datefield',
- fieldLabel: gettext('Until'),
name: 'until_date',
reference: 'until',
format: 'Y-m-d',