[PR #8565] [MERGED] Fixes #8398: Add ConfigParam.size to enlarge specific config fields #13367

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/8565
Author: @markkuleinio
Created: 2/5/2022
Status: Merged
Merged: 2/10/2022
Merged by: @jeremystretch

Base: developHead: 8398-field-sizes


📝 Commits (3)

  • 05e8fff Fixes #8398: Add ConfigParam.size to enlarge specific config fields
  • 4f2a829 Revert "Fixes #8398: Add ConfigParam.size to enlarge specific config fields"
  • 888b374 Use forms.Textarea for the banner config fields

📊 Changes

1 file changed (+12 additions, -3 deletions)

View changed files

📝 netbox/netbox/config/parameters.py (+12 -3)

📄 Description

Fixes: #8398

Adds ConfigParam.size attribute that can be used for enlarging the text input field for specific configuration parameters.

Also adds size="80" for those parameters that seems to benefit from longer input field.

Unfortunately my Django skills did not allow for using textareas for the banner fields, it was not a simple field=forms.Textarea change as it resulted as TypeError: __init__() got an unexpected keyword argument 'required' in aff55881df/netbox/extras/forms/config.py (L27)
🤔


🔄 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/8565 **Author:** [@markkuleinio](https://github.com/markkuleinio) **Created:** 2/5/2022 **Status:** ✅ Merged **Merged:** 2/10/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `8398-field-sizes` --- ### 📝 Commits (3) - [`05e8fff`](https://github.com/netbox-community/netbox/commit/05e8fff458ad22fc6287f54cefd80d7c6d5d278b) Fixes #8398: Add ConfigParam.size to enlarge specific config fields - [`4f2a829`](https://github.com/netbox-community/netbox/commit/4f2a82916a530f81a9622be37f08c796f222c7a9) Revert "Fixes #8398: Add ConfigParam.size to enlarge specific config fields" - [`888b374`](https://github.com/netbox-community/netbox/commit/888b37429e2974ca4ac934005f23e334e400db36) Use forms.Textarea for the banner config fields ### 📊 Changes **1 file changed** (+12 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `netbox/netbox/config/parameters.py` (+12 -3) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be opened for approval prior to filing a pull request. This helps avoid wasting time and effort on something that we might not be able to accept. Please indicate the relevant feature request or bug report below. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ACCEPTED BUG REPORT OR FEATURE REQUEST, IT WILL BE MARKED AS INVALID AND CLOSED. --> ### Fixes: #8398 <!-- Please include a summary of the proposed changes below. --> Adds `ConfigParam.size` attribute that can be used for enlarging the text input field for specific configuration parameters. Also adds `size="80"` for those parameters that seems to benefit from longer input field. Unfortunately my Django skills did not allow for using textareas for the banner fields, it was not a simple `field=forms.Textarea` change as it resulted as `TypeError: __init__() got an unexpected keyword argument 'required'` in https://github.com/netbox-community/netbox/blob/aff55881df21e0edeef589dbaf4204c1be6a0d42/netbox/extras/forms/config.py#L27 🤔 --- <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:27:01 +01:00
adam closed this issue 2025-12-29 22:27:01 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13367