mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #253: Added ability to search by prefix to IP address filters
This commit is contained in:
@ -231,7 +231,8 @@ class BootstrapMixin(forms.BaseForm):
|
||||
field.widget.attrs['class'] = 'form-control'
|
||||
if field.required:
|
||||
field.widget.attrs['required'] = 'required'
|
||||
field.widget.attrs['placeholder'] = field.label
|
||||
if 'placeholder' not in field.widget.attrs:
|
||||
field.widget.attrs['placeholder'] = field.label
|
||||
|
||||
|
||||
class ConfirmationForm(forms.Form, BootstrapMixin):
|
||||
|
Reference in New Issue
Block a user