We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
someone endup implement it like this: http://stackoverflow.com/questions/5400397/python-pyramid-how-to-use-checkboxes-and-radio-buttons
from pyramid_simpleform.renderers import FormRenderer as OldFormRenderer from webhelpers.html import tags
class FormRenderer(OldFormRenderer): def checkbox(self, name, value="1", checked=False, label=None, id=None, *_attrs): """ Outputs checkbox input. """ id = id or name return tags.checkbox(name, value, checked, label, id, *_attrs)
The text was updated successfully, but these errors were encountered:
yes it should be: return tags.checkbox(name, value, checked, label, id, **attrs)
Sorry, something went wrong.
No branches or pull requests
someone endup implement it like this:
http://stackoverflow.com/questions/5400397/python-pyramid-how-to-use-checkboxes-and-radio-buttons
from pyramid_simpleform.renderers import FormRenderer as OldFormRenderer
from webhelpers.html import tags
class FormRenderer(OldFormRenderer):
def checkbox(self, name, value="1", checked=False, label=None, id=None,
*_attrs):
"""
Outputs checkbox input.
"""
id = id or name
return tags.checkbox(name, value, checked, label, id, *_attrs)
The text was updated successfully, but these errors were encountered: