Replies: 2 comments
-
I found a hint on how to actually overwrite the widget template (https://stackoverflow.com/questions/34615801/customize-clearablefileinput-in-django-template), but to actually get this to work, the widget name is missing in the event to decide which bar to update. :/ What am i missing? |
Beta Was this translation helpful? Give feedback.
-
Hi @kakulukia, Interesting idea. Honestly, I don't handle files too large and have a pretty good bandwidth (mostly). Therefore, I didn't consider this yet. I believe this should be possible, since I co-authored a patch in Django, converting form rendering to templates. So, in theory, we'd just need to alter a template. The setup can be tricky. Maybe injecting a little shadow DOM is a better choice. If you have a great design idea, I'd be happy to contribute my knowledge. For the moment, I will move this to discussion until this becomes more tensile. Cheers! |
Beta Was this translation helpful? Give feedback.
-
Hi,
what would be the easiest way to add the progress bar to the normal admin?
I tried overwriting the admin/widgets/clearable_file_input.html, but somehow Django refuses to load my version of that file.
Beta Was this translation helpful? Give feedback.
All reactions