-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
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
New HTML5 input types #25
Conversation
…2.forms into feature/html5-validators Conflicts: tests/test_widgets.py tw2/forms/widgets.py
@@ -41,14 +105,14 @@ class PostlabeledInputField(InputField): | |||
template = "tw2.forms.templates.postlabeled_input_field" | |||
|
|||
|
|||
class TextField(InputField): | |||
class TextField(HTML5KitchenSinkMixin, InputField): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although I like that this approach is very universal usable, I don't like having all of the additional HTML5 attributes in a simple TextField. They might have a meaning on some of the types, but not on all of them. And automatically configuring validators would be quite impossible this way.
I'd rather just inherit the specific mixins in the specific field classes below for clarity.
Any opinions on that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed. better to not flood them.
Also clean up the class definitions and re-order them.
I'm happy now! |
Fixes #17