]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
form: add Proxmox.form.field.ExpireDate
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 31 Mar 2020 12:50:34 +0000 (14:50 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 31 Mar 2020 16:13:20 +0000 (18:13 +0200)
commit4645c3d4138005443509d3ead14da5420f21ff3b
treecfe272636ed6a05866aabbf2651468280190e1c5
parent7d16f8b34c73bf8cb953a21e058d0205748d9ff4
form: add Proxmox.form.field.ExpireDate

Behaves like a 'datefield' but treats the 0/empty value as "never",
and sets all defaults for behaving like one would expect from a date
expire field.

This allows to replaces hacks (e.g. [0]) from our various expire date
fields, mostly in PVE/PMG user accounts, and also for the soon to be
applied API token gui.

[0]: https://git.proxmox.com/?p=pve-manager.git;a=blob;f=www/manager6/dc/UserEdit.js;h=40c4044fd9364c9bcb8787507068378ed9936f67;hb=806edfe19f049f07db2628c68e4e5702bbedd9d7#l159

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile
form/ExpireDate.js [new file with mode: 0644]