forked from shaba/openuds
updated admin interface && changed default end dato to "today"
This commit is contained in:
parent
663c8f762a
commit
aaa2ce825e
@ -443,12 +443,13 @@ class gui:
|
||||
def processValue(self, valueName: str, options: typing.Dict[str, typing.Any]) -> None:
|
||||
val = options.get(valueName, '')
|
||||
|
||||
if val == '' and valueName == 'defvalue':
|
||||
if not val and valueName == 'defvalue':
|
||||
val = datetime.date.today()
|
||||
elif val == datetime.date.min:
|
||||
val = datetime.date(2000, 1, 1)
|
||||
elif val == datetime.date.max:
|
||||
val = datetime.date(2099, 12, 31)
|
||||
# val = datetime.date(2099, 12, 31)
|
||||
val = datetime.date.today()
|
||||
|
||||
options[valueName] = val
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@ -92,6 +92,6 @@
|
||||
</svg>
|
||||
</div>
|
||||
</uds-root>
|
||||
<script src="/uds/res/admin/runtime.js?stamp=1582878562" defer></script><script src="/uds/res/admin/polyfills-es5.js?stamp=1582878562" nomodule defer></script><script src="/uds/res/admin/polyfills.js?stamp=1582878562" defer></script><script src="/uds/res/admin/main.js?stamp=1582878562" defer></script></body>
|
||||
<script src="/uds/res/admin/runtime.js?stamp=1583933516" defer></script><script src="/uds/res/admin/polyfills-es5.js?stamp=1583933516" nomodule defer></script><script src="/uds/res/admin/polyfills.js?stamp=1583933516" defer></script><script src="/uds/res/admin/main.js?stamp=1583933516" defer></script></body>
|
||||
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user