Index: roundup/cgi/templating.py =================================================================== RCS file: /cvsroot/roundup/roundup/roundup/cgi/templating.py,v retrieving revision 1.228 diff -u -r1.228 templating.py --- roundup/cgi/templating.py 13 Jan 2006 01:42:38 -0000 1.228 +++ roundup/cgi/templating.py 19 Jan 2006 22:50:49 -0000 @@ -625,7 +625,7 @@ def classhelp(self, properties=None, label=''"(list)", width='500', height='400', property='', form='itemSynopsis', - pagesize=50, sort=None, filter=None): + pagesize=50, inputtype="checkbox", sort=None, filter=None): '''Pop up a javascript window with class help This generates a link to a popup window which displays the @@ -648,6 +648,9 @@ If the "property" arg is given, it's passed through to the javascript help_window function. + + You can use inputtype="radio" to display a radio box instead + of the default checkbox (useful for entering Link-properties) If the "form" arg is given, it's passed through to the javascript help_window function. - it's the name of the form @@ -668,6 +671,8 @@ property = '&property=%s'%property if form: form = '&form=%s'%form + if inputtype: + type= '&type=%s'%inputtype if filter: filterprops = filter.split(';') filtervalues = [] @@ -680,8 +685,8 @@ else: filter = '' help_url = "%s?@startwith=0&@template=help&"\ - "properties=%s%s%s%s&@pagesize=%s%s" % \ - (self.classname, properties, property, form, sort, pagesize, filter) + "properties=%s%s%s%s%s&@pagesize=%s%s" % \ + (self.classname, properties, property, form, type, sort, pagesize, filter) onclick = "javascript:help_window('%s', '%s', '%s');return false;" % \ (help_url, width, height) return '%s' % \