Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

add progress in normal admin #255

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

Closed
kakulukia opened this issue Apr 30, 2023 · 2 comments
Closed

add progress in normal admin #255

kakulukia opened this issue Apr 30, 2023 · 2 comments

Comments

@kakulukia
Copy link

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.

@kakulukia
Copy link
Author

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?

@codingjoe
Copy link
Owner

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!
Joe

Repository owner locked and limited conversation to collaborators May 24, 2023
@codingjoe codingjoe converted this issue into discussion #256 May 24, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants