[PR #8073] [MERGED] Closes #8057: Dynamic object tables using HTMX #13315

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/8073
Author: @jeremystretch
Created: 12/14/2021
Status: Merged
Merged: 12/15/2021
Merged by: @jeremystretch

Base: developHead: 8057-htmx-tables


📝 Commits (10+)

  • 91f33d3 #8057: Enable dynamic tables for object list views
  • 5c34a75 Enable HTMX for quick table search
  • 6dd6094 Push HTMX URL to browser location
  • 414d33e Refactor HTMX table template
  • 491eac1 Enable HTMX for connections lists
  • 402136d Merge branch '8069-generic-children-view' into 8057-htmx-tables
  • 4ffa823 Enable HTMX for all ObjectChildrenViews
  • c981b5c Add prep_table_data() method to ObjectChildrenView
  • 9a53c22 Serve HTMX JS locally
  • 85b10b5 Introduce child prefixes view for aggregates

📊 Changes

50 files changed (+666 additions, -474 deletions)

View changed files

📝 netbox/dcim/views.py (+17 -0)
📝 netbox/ipam/models/ip.py (+6 -0)
📝 netbox/ipam/urls.py (+1 -0)
📝 netbox/ipam/views.py (+32 -32)
📝 netbox/netbox/views/generic.py (+30 -2)
📝 netbox/project-static/dist/netbox-dark.css (+1 -1)
📝 netbox/project-static/dist/netbox-light.css (+1 -1)
📝 netbox/project-static/dist/netbox-print.css (+1 -1)
📝 netbox/project-static/dist/netbox.js (+12 -12)
📝 netbox/project-static/dist/netbox.js.map (+2 -2)
📝 netbox/project-static/package.json (+1 -0)
📝 netbox/project-static/src/buttons/index.ts (+0 -2)
netbox/project-static/src/buttons/pagination.ts (+0 -14)
📝 netbox/project-static/src/index.ts (+1 -0)
📝 netbox/project-static/src/search.ts (+2 -104)
📝 netbox/project-static/styles/netbox.scss (+0 -12)
📝 netbox/project-static/yarn.lock (+5 -0)
📝 netbox/templates/dcim/connections_list.html (+4 -9)
📝 netbox/templates/dcim/device/consoleports.html (+7 -4)
📝 netbox/templates/dcim/device/consoleserverports.html (+7 -3)

...and 30 more files

📄 Description

Closes: #8057

  • Introduce the HTMX library as a Javascript dependency
  • Enable HTMX processing for the ObjectChildrenView and ObjectListView generic views
  • Add a new table template to employ HTMX for column ordering, pagination, and quick search

🔄 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/8073 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 12/14/2021 **Status:** ✅ Merged **Merged:** 12/15/2021 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `8057-htmx-tables` --- ### 📝 Commits (10+) - [`91f33d3`](https://github.com/netbox-community/netbox/commit/91f33d328936f85569e796ca0a1ba95f51ffe355) #8057: Enable dynamic tables for object list views - [`5c34a75`](https://github.com/netbox-community/netbox/commit/5c34a7503216dffe86c8072142384cf182cb4a6b) Enable HTMX for quick table search - [`6dd6094`](https://github.com/netbox-community/netbox/commit/6dd6094088bc483508a776e84a809c688f29449c) Push HTMX URL to browser location - [`414d33e`](https://github.com/netbox-community/netbox/commit/414d33eb2635d8fa18c0938d0ea11e080f2f2b36) Refactor HTMX table template - [`491eac1`](https://github.com/netbox-community/netbox/commit/491eac184ec2f9183b61c97578ea30ce068a0cd3) Enable HTMX for connections lists - [`402136d`](https://github.com/netbox-community/netbox/commit/402136dc8f7e804f8a7730685b6dec99185eaf61) Merge branch '8069-generic-children-view' into 8057-htmx-tables - [`4ffa823`](https://github.com/netbox-community/netbox/commit/4ffa823ab80d82e675b1d3dca9753d60c944e95b) Enable HTMX for all ObjectChildrenViews - [`c981b5c`](https://github.com/netbox-community/netbox/commit/c981b5cba0940bc826f434224ba23a2af718792f) Add prep_table_data() method to ObjectChildrenView - [`9a53c22`](https://github.com/netbox-community/netbox/commit/9a53c228334975cac7f68d495584a87075e776db) Serve HTMX JS locally - [`85b10b5`](https://github.com/netbox-community/netbox/commit/85b10b59e4366de319e531c951be91b614717ae7) Introduce child prefixes view for aggregates ### 📊 Changes **50 files changed** (+666 additions, -474 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/views.py` (+17 -0) 📝 `netbox/ipam/models/ip.py` (+6 -0) 📝 `netbox/ipam/urls.py` (+1 -0) 📝 `netbox/ipam/views.py` (+32 -32) 📝 `netbox/netbox/views/generic.py` (+30 -2) 📝 `netbox/project-static/dist/netbox-dark.css` (+1 -1) 📝 `netbox/project-static/dist/netbox-light.css` (+1 -1) 📝 `netbox/project-static/dist/netbox-print.css` (+1 -1) 📝 `netbox/project-static/dist/netbox.js` (+12 -12) 📝 `netbox/project-static/dist/netbox.js.map` (+2 -2) 📝 `netbox/project-static/package.json` (+1 -0) 📝 `netbox/project-static/src/buttons/index.ts` (+0 -2) ➖ `netbox/project-static/src/buttons/pagination.ts` (+0 -14) 📝 `netbox/project-static/src/index.ts` (+1 -0) 📝 `netbox/project-static/src/search.ts` (+2 -104) 📝 `netbox/project-static/styles/netbox.scss` (+0 -12) 📝 `netbox/project-static/yarn.lock` (+5 -0) 📝 `netbox/templates/dcim/connections_list.html` (+4 -9) 📝 `netbox/templates/dcim/device/consoleports.html` (+7 -4) 📝 `netbox/templates/dcim/device/consoleserverports.html` (+7 -3) _...and 30 more files_ </details> ### 📄 Description ### Closes: #8057 - Introduce the HTMX library as a Javascript dependency - Enable HTMX processing for the ObjectChildrenView and ObjectListView generic views - Add a new table template to employ HTMX for column ordering, pagination, and quick search --- <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:26:42 +01:00
adam closed this issue 2025-12-29 22:26:42 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13315