Skip to content
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

Merged
merged 11 commits into from
Aug 27, 2013
Merged

New HTML5 input types #25

merged 11 commits into from
Aug 27, 2013

Conversation

moschlar
Copy link
Member

Fixes #17

@@ -41,14 +105,14 @@ class PostlabeledInputField(InputField):
template = "tw2.forms.templates.postlabeled_input_field"


class TextField(InputField):
class TextField(HTML5KitchenSinkMixin, InputField):
Copy link
Member Author

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?

Copy link
Contributor

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.
@moschlar
Copy link
Member Author

I'm happy now!

moschlar added a commit that referenced this pull request Aug 27, 2013
@moschlar moschlar merged commit 0bcf254 into develop Aug 27, 2013
@moschlar moschlar deleted the feature/html5-validators branch August 27, 2013 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HTML5 goodness for forms
2 participants