]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
DateTimeField: implement set{Max, Min}Value
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 24 Apr 2020 13:57:52 +0000 (15:57 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 24 Apr 2020 15:02:31 +0000 (17:02 +0200)
commit731df80da00536bd4af3012bedd08c1a14dfc913
treefdb759cdc9ebd36bcc8df782a59f1e8dd9ab9bbd
parentdca21e597e9e87e80bbda3bf9fff68df481a9140
DateTimeField: implement set{Max, Min}Value

this sets the max/min value for the underlying date and time fields,
and allowing to only change the value respecting both current date
and time fields
e.g.
if the new maxValue is 2020-10-10 12:00
and the current value is 2020-10-09 15:00
do not allow to set the date to 2020-10-10
and vice versa (if the new limit is on the same day, limit the time range)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
form/DateTimeField.js