The markup for ClearableFileInput's link should be a widget template string
|Reported by:||rubyruy||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
ClearableFileInput already makes great use of class attribute to let us customize various templates and wording details, except, notably (and sadly) the markup for the actual link.
This could easily be made to fall in line with the other templates, and covers the fairly common use case of wanting a more appropriate inline preview (e.g. img tags for ImageField widgets).
Change History (7)
Changed 4 years ago by rubyruy
comment:1 Changed 4 years ago by rubyruy
- Has patch set
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:2 Changed 4 years ago by claudep
- Triage Stage changed from Unreviewed to Accepted
- Type changed from Uncategorized to New feature