[PR #3225] [CLOSED] Make obj_edit form buttons float on the side #12529

Closed
opened 2025-12-29 22:22:06 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/3225
Author: @hellerve
Created: 5/29/2019
Status: Closed

Base: developHead: fix-2237


📝 Commits (1)

  • 9bc54a8 css: make form buttons float on the side (references: #2237)

📊 Changes

2 files changed (+12 additions, -1 deletions)

View changed files

📝 netbox/project-static/css/base.css (+11 -0)
📝 netbox/templates/utilities/obj_edit.html (+1 -1)

📄 Description

Fixes: #2237

This PR fixes by #2237 in the simplest way possible: by some CSS trickery on the buttons block inside obj_edit.html. That means this currently only extends to object edit forms, but could be extended fairly easily to, says, bulk delete views (if any other views should be patched as well, hit me up)!

To mimic bootstrap behavior, this only applies if the page width is more than 992px, which is when bootstrap starts extending the form to the full page width.

Cheers


🔄 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/3225 **Author:** [@hellerve](https://github.com/hellerve) **Created:** 5/29/2019 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `fix-2237` --- ### 📝 Commits (1) - [`9bc54a8`](https://github.com/netbox-community/netbox/commit/9bc54a89b85263ae38618e8e32ff58e9b14f1be3) css: make form buttons float on the side (references: #2237) ### 📊 Changes **2 files changed** (+12 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/project-static/css/base.css` (+11 -0) 📝 `netbox/templates/utilities/obj_edit.html` (+1 -1) </details> ### 📄 Description ### Fixes: #2237 This PR fixes by #2237 in the simplest way possible: by some CSS trickery on the `buttons` block inside `obj_edit.html`. That means this currently only extends to object edit forms, but could be extended fairly easily to, says, bulk delete views (if any other views should be patched as well, hit me up)! To mimic bootstrap behavior, this only applies if the page width is more than `992px`, which is when bootstrap starts extending the form to the full page width. Cheers --- <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 22:22:06 +01:00
adam closed this issue 2025-12-29 22:22:06 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12529