-
Notifications
You must be signed in to change notification settings - Fork 4
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
Make a reusable range input template. #93
Comments
I don't think we necessarily need a separate form field for this. We could use the original |
But then we need to override the html type to "range". So either way it's extra work. |
No extra work if this issue depends on #87, where you already render maxlevel = forms.IntegerField(
widget=forms.NumberInput(attrs={
'type': 'range', 'step': '1', 'min': '1', 'max': MAX_INCIDENT_LEVEL
}),
... |
In order for any tick marks the widget must have a range to paint them in a for-loop. This is normally done via the context so we might have to sneak in something iterable into the form field that is automatically put in the context. Smells like a new FormField, frankly.
The text was updated successfully, but these errors were encountered: