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

#1033: Convert SelectWithDisabled to a templatized widget

This commit is contained in:
Jeremy Stretch
2017-04-04 14:19:48 -04:00
parent 99a3e0c399
commit c09473f41e
2 changed files with 2 additions and 26 deletions

View File

@@ -0,0 +1 @@
<option value="{{ widget.value }}"{% include "django/forms/widgets/attrs.html" %}{% if widget.label.disabled %} disabled="disabled"{% endif %}>{{ widget.label.label }}</option>