1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

#9416: cleanup & widget improvements

This commit is contained in:
jeremystretch
2023-03-22 15:44:01 -04:00
parent a098c3b0c1
commit e176c7d906
10 changed files with 104 additions and 20 deletions

View File

@ -1,5 +1,6 @@
from django import forms
from django.urls import reverse_lazy
from django.utils.translation import gettext as _
from netbox.registry import registry
from utilities.forms import BootstrapMixin, add_blank_choice
@ -33,6 +34,7 @@ class DashboardWidgetAddForm(DashboardWidgetForm):
'hx-get': reverse_lazy('extras:dashboardwidget_add'),
'hx-target': '#widget_add_form',
}
)
),
label=_('Widget type')
)
field_order = ('widget_class', 'title', 'color')