Roundup Tracker - Issues

Message7140

Author ngaba
Recipients ngaba
Date 2021-03-25.02:06:48
Message-id <1616638008.53.0.961387668725.issue2551121@roundup.psfhosted.org>
In-reply-to
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:"
History
Date User Action Args
2021-03-25 02:06:48ngabasetrecipients: + ngaba
2021-03-25 02:06:48ngabasetmessageid: <1616638008.53.0.961387668725.issue2551121@roundup.psfhosted.org>
2021-03-25 02:06:48ngabalinkissue2551121 messages
2021-03-25 02:06:48ngabacreate