From 888b37429e2974ca4ac934005f23e334e400db36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markku=20Leini=C3=B6?= Date: Mon, 7 Feb 2022 17:44:17 +0200 Subject: [PATCH] Use forms.Textarea for the banner config fields --- netbox/netbox/config/parameters.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/netbox/netbox/config/parameters.py b/netbox/netbox/config/parameters.py index b4f16bf28..22dbac143 100644 --- a/netbox/netbox/config/parameters.py +++ b/netbox/netbox/config/parameters.py @@ -20,19 +20,28 @@ PARAMS = ( name='BANNER_LOGIN', label='Login banner', default='', - description="Additional content to display on the login page" + description="Additional content to display on the login page", + field_kwargs={ + 'widget': forms.Textarea(), + }, ), ConfigParam( name='BANNER_TOP', label='Top banner', default='', - description="Additional content to display at the top of every page" + description="Additional content to display at the top of every page", + field_kwargs={ + 'widget': forms.Textarea(), + }, ), ConfigParam( name='BANNER_BOTTOM', label='Bottom banner', default='', - description="Additional content to display at the bottom of every page" + description="Additional content to display at the bottom of every page", + field_kwargs={ + 'widget': forms.Textarea(), + }, ), # IPAM