mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-21 11:37:21 -06:00
#16136: Remove obsolete accommodation for Django admin UI
This commit is contained in:
parent
02cbdc10f2
commit
dd29c0ede5
@ -1,7 +1,6 @@
|
||||
{% comment %}
|
||||
Include a hidden field of the same name to ensure that unchecked checkboxes
|
||||
are always included in the submitted form data. Omit fields names
|
||||
_selected_action to avoid breaking the admin UI.
|
||||
are always included in the submitted form data.
|
||||
{% endcomment %}
|
||||
{% if widget.name != '_selected_action' %}<input type="hidden" name="{{ widget.name }}" value="">{% endif %}
|
||||
<input type="hidden" name="{{ widget.name }}" value="">
|
||||
<input type="checkbox" name="{{ widget.name }}"{% if widget.value != None %} value="{{ widget.value|stringformat:'s' }}"{% endif %} {% include "django/forms/widgets/attrs.html" %} class="form-check-input{% if 'class' in widget.attrs %} {{ widget.attrs.class }}{% endif %}">
|
||||
|
Loading…
Reference in New Issue
Block a user