[PR #11217] [CLOSED] Allow racking of existing devices from rack view #13755

Closed
opened 2025-12-29 23:20:36 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/11217
Author: @fabi125
Created: 12/16/2022
Status: Closed

Base: developHead: rack


📝 Commits (1)

  • b1f15de Allow racking of existing devices from rack view

📊 Changes

8 files changed (+158 additions, -8 deletions)

View changed files

📝 netbox/dcim/forms/model_forms.py (+14 -1)
📝 netbox/dcim/tables/devices.py (+16 -1)
📝 netbox/dcim/tables/template_code.py (+4 -0)
📝 netbox/dcim/urls.py (+1 -0)
📝 netbox/dcim/views.py (+43 -0)
netbox/templates/dcim/device_assign.html (+48 -0)
📝 netbox/templates/dcim/device_edit.html (+10 -6)
netbox/templates/dcim/inc/device_edit_header.html (+22 -0)

📄 Description

Fixes: #11216

When clicking on "Add Device" in the rack view, this now allows to select an already existing device.

Screenshots of the flow:

image

image

image

This brings up the device edit form with the new rack info filled in:

image

After saving the device is successfully racked:

image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/11217 **Author:** [@fabi125](https://github.com/fabi125) **Created:** 12/16/2022 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `rack` --- ### 📝 Commits (1) - [`b1f15de`](https://github.com/netbox-community/netbox/commit/b1f15de8f1015cbb1f2a68a2b197b139016bf567) Allow racking of existing devices from rack view ### 📊 Changes **8 files changed** (+158 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/forms/model_forms.py` (+14 -1) 📝 `netbox/dcim/tables/devices.py` (+16 -1) 📝 `netbox/dcim/tables/template_code.py` (+4 -0) 📝 `netbox/dcim/urls.py` (+1 -0) 📝 `netbox/dcim/views.py` (+43 -0) ➕ `netbox/templates/dcim/device_assign.html` (+48 -0) 📝 `netbox/templates/dcim/device_edit.html` (+10 -6) ➕ `netbox/templates/dcim/inc/device_edit_header.html` (+22 -0) </details> ### 📄 Description ### Fixes: #11216 <!-- Please include a summary of the proposed changes below. --> When clicking on "Add Device" in the rack view, this now allows to select an already existing device. Screenshots of the flow: ![image](https://user-images.githubusercontent.com/18670690/208171834-74939663-40fb-4da0-a444-f44463211df9.png) ![image](https://user-images.githubusercontent.com/18670690/208171864-4bc4a0a8-927a-4618-bba8-ad8fd4a79afa.png) ![image](https://user-images.githubusercontent.com/18670690/208171929-92381033-08e4-40f6-8030-d0a2c5816f9f.png) This brings up the device edit form with the new rack info filled in: ![image](https://user-images.githubusercontent.com/18670690/208172002-3a9db922-67ba-466c-afc0-e35782535b3e.png) After saving the device is successfully racked: ![image](https://user-images.githubusercontent.com/18670690/208172047-d39bb830-2fee-4ea8-a59e-3d897f3a4fca.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:20:36 +01:00
adam closed this issue 2025-12-29 23:20:36 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13755