#27246: Factor out input template in ClearableFileInput and document template
class
attributes
-----------------------------+--------------------
Reporter: mpauly | Owner: nobody
Type: New feature | Status: new
Component: Forms | Version: 1.10
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+--------------------
`ClearableFileInput` uses a template variable in its `render()`
implementation (see
https://github.com/django/django/blob/master/django/forms/widgets.py#L405)
that I would like to factor out as a class attribute.
This would allow to change the appearance of the 'Select file' button for
`ClearableFileInput`, by e.g. wrapping it in a div and adding a span. For
normal `FileInput` that is already possible by overwriting the render
method, however for `ClearableFileInput` this gets comparably ugly.
This would be in line with having the other template strings as class
attributes.
Also I believe it would be good to document the multiple `template_*`
class attributes.
--
Ticket URL: <https://code.djangoproject.com/ticket/27246>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/049.d11fcaa18dae9f898b5362ff7c06a170%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.