Explorar o código

Added help_text to checkbox render

Jeremy Stretch %!s(int64=10) %!d(string=hai) anos
pai
achega
0b1df1e60d
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      netbox/templates/utilities/render_field.html

+ 3 - 0
netbox/templates/utilities/render_field.html

@@ -8,6 +8,9 @@
                     {{ field }}
                     {{ field.label }}
                 </label>
+                {% if field.help_text %}
+                    <span class="help-block">{{ field.help_text|safe }}</span>
+                {% endif %}
             </div>
         </div>
     {% elif field|widget_type == 'radioselect' %}