Message7140
Sometimes it is useful to hide the "- no selection -" option in <select> menus (rendered by the menu() methods of templating.py). When we want force the users *gently* to set a value in the web interface.
The patch is trivial, but I only did that for the class LinkHTMLProperty of templating.py: I've added a new "show_nosel=True" argument to menu(), and put
"l.append(self._('<option %svalue="-1">- no selection -</option>')%s)"
(and maybe the 2 or 3 preceding lines) behind an
"if show_nosel:" |
|
Date |
User |
Action |
Args |
2021-03-25 02:06:48 | ngaba | set | recipients:
+ ngaba |
2021-03-25 02:06:48 | ngaba | set | messageid: <1616638008.53.0.961387668725.issue2551121@roundup.psfhosted.org> |
2021-03-25 02:06:48 | ngaba | link | issue2551121 messages |
2021-03-25 02:06:48 | ngaba | create | |
|