comparison doc/tracker_config.txt @ 8300:b99e76e76496

Make native date and number elements configurable Now for Number() and Integer() properties the browser-native number format can be configured with the use_browser_number_input config item in seciont [web]. The default is 'yes'. For Date() properties the config item is use_browser_date_input (also in section [web]) but the default is 'no'. In addition when defining Date() properties, these now have a parameter 'display_time' which defaults to 'yes' and a 'format' parameter which defaults to None. These set defaults for the field() method of the DateHTMLProperty which have the same parameters (but the display_time parameter of field() takes a boolean, not 'yes'/'no').
author Ralf Schlatterbeck <rsc@runtux.com>
date Wed, 19 Feb 2025 12:38:06 +0100
parents c3bf229d3d4b
children 6e44b3b20df2
comparison
equal deleted inserted replaced
8299:43899d99fc4d 8300:b99e76e76496
622 # line, so a newline can be put in the file. 622 # line, so a newline can be put in the file.
623 # 623 #
624 # Default: disabled 624 # Default: disabled
625 jwt_secret = disabled 625 jwt_secret = disabled
626 626
627 # HTML input elements for Date properties: This determines
628 # if we use the input type 'datetime-local' (or 'date') for
629 # date input fields. If the option is turned off (the default),
630 # the type is set to 'text'. Since the widgets generated by
631 # browsers determine the date format from the language
632 # setting (it is currently not possible to force the
633 # international date format server-side) and some browsers
634 # ignore the date format set by the operating system, the
635 # default is 'no'.
636 # Allowed values: yes, no
637 # Default: no
638 use_browser_date_input = no
639
640 # HTML input elements for Number properties: This determines
641 # if we use the input type 'number' for Number (and Integer)
642 # properties. If set to 'no' we use input type 'text'.
643 # Allowed values: yes, no
644 # Default: yes
645 use_browser_number_input = no
646
627 .. index:: config.ini; sections rdbms 647 .. index:: config.ini; sections rdbms
628 .. _`config-ini-section-rdbms`: 648 .. _`config-ini-section-rdbms`:
629 .. code:: ini 649 .. code:: ini
630 650
631 651

Roundup Issue Tracker: http://roundup-tracker.org/