Device Type images can not be deleted via UI #5303

Closed
opened 2025-12-29 19:26:26 +01:00 by adam · 2 comments
Owner

Originally created by @m2martin on GitHub (Sep 2, 2021).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.0.1

Python version

3.9

Steps to Reproduce

  1. Create a Device Type or edit an existing one and add a front and/or rear image
  2. Device Type is created or edited successfully
  3. Edit Device Type in order to delete/remove the front/rear image

Expected Behavior

I expect a link or any other control element to delete the image or to mark the image to get deleted on save.

Observed Behavior

No control element to delete an image is visible.
Currently, the only way to remove/delete images seems to be nbshell.

Originally created by @m2martin on GitHub (Sep 2, 2021). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.0.1 ### Python version 3.9 ### Steps to Reproduce 1. Create a Device Type or edit an existing one and add a front and/or rear image 2. Device Type is created or edited successfully 3. Edit Device Type in order to delete/remove the front/rear image ### Expected Behavior I expect a link or any other control element to delete the image or to mark the image to get deleted on save. ### Observed Behavior No control element to delete an image is visible. Currently, the only way to remove/delete images seems to be nbshell.
adam added the type: bugstatus: accepted labels 2025-12-29 19:26:26 +01:00
adam closed this issue 2025-12-29 19:26:26 +01:00
Author
Owner

@jeremystretch commented on GitHub (Sep 2, 2021):

I just want to call out that we've had a similar issue in the past (#5595), although this seems to be unrelated.

It looks like we lost the display and deletion functionality when the form widget was updated for Bootstrap 5.

@jeremystretch commented on GitHub (Sep 2, 2021): I just want to call out that we've had a similar issue in the past (#5595), although this seems to be unrelated. It looks like we lost the display and deletion functionality when the form widget was updated for [Bootstrap 5](https://getbootstrap.com/docs/5.0/forms/form-control/#file-input).
Author
Owner

@m2martin commented on GitHub (Sep 2, 2021):

It looks like we lost the display and deletion functionality when the form widget was updated for Bootstrap 5.

I guess, too.

@m2martin commented on GitHub (Sep 2, 2021): > It looks like we lost the display and deletion functionality when the form widget was updated for [Bootstrap 5](https://getbootstrap.com/docs/5.0/forms/form-control/#file-input). I guess, too.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5303