401 | | return '<input type="checkbox" id="%s" class="v%s" name="%s"%s />' % \ |
402 | | (self.get_id(), self.__class__.__name__, |
403 | | self.field_name, checked_html) |
| 401 | html_values = { |
| 402 | 'id' : self.get_id(), |
| 403 | 'class_name' : self.__class__.__name__, |
| 404 | 'name' : self.field_name, |
| 405 | 'checked_html' : checked_html } |
| 406 | html_output = [] |
| 407 | html_output.append('<input type="checkbox" id="%(id)s" class="v%(class_name)s" name="%(name)s"%(checked_html)s />') |
| 408 | html_output.append('<input type="hidden" id="%(id)s_check" name="%(name)s_check" value="1"/>') |
| 409 | return ''.join(html_output) % html_values |