Mercurial > p > roundup > code
comparison roundup/cgi/templating.py @ 3169:d8d1ebd80930
fallback for (list) popups if javascript disabled (patch [SF#1101626])
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 14 Feb 2005 05:50:31 +0000 |
| parents | 24476db8872f |
| children | 88dbe6b3d891 |
comparison
equal
deleted
inserted
replaced
| 3166:3204488d20b5 | 3169:d8d1ebd80930 |
|---|---|
| 649 properties = ','.join(properties) | 649 properties = ','.join(properties) |
| 650 if property: | 650 if property: |
| 651 property = '&property=%s'%property | 651 property = '&property=%s'%property |
| 652 if form: | 652 if form: |
| 653 form = '&form=%s'%form | 653 form = '&form=%s'%form |
| 654 return '<a class="classhelp" href="javascript:help_window(\'%s?'\ | 654 help_url = "%s?@startwith=0&@template=help&"\ |
| 655 '@startwith=0&@template=help&properties=%s%s%s\', \'%s\', \ | 655 "properties=%s%s%s" % \ |
| 656 \'%s\')">%s</a>'%(self.classname, properties, property, form, width, | 656 (self.classname, properties, property, form) |
| 657 height, self._(label)) | 657 onclick = "javascript:help_window('%s', '%s', '%s');return false;" % \ |
| 658 (help_url, width, height) | |
| 659 return '<a class="classhelp" href="%s" onclick="%s">%s</a>' % \ | |
| 660 (help_url, onclick, self._(label)) | |
| 658 | 661 |
| 659 def submit(self, label=''"Submit New Entry"): | 662 def submit(self, label=''"Submit New Entry"): |
| 660 ''' Generate a submit button (and action hidden element) | 663 ''' Generate a submit button (and action hidden element) |
| 661 | 664 |
| 662 Generate nothing if we're not editable. | 665 Generate nothing if we're not editable. |
