updated admin interface && changed default end dato to "today"

This commit is contained in:
Adolfo Gómez García 2020-03-11 14:51:20 +01:00
parent 663c8f762a
commit aaa2ce825e
3 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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>