mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-17 12:42:52 -06:00
Fix rendering of form textareas
This commit is contained in:
parent
9219397208
commit
13d604d44e
@ -27,7 +27,6 @@ class DataSourceBulkEditForm(NetBoxModelBulkEditForm):
|
|||||||
required=False
|
required=False
|
||||||
)
|
)
|
||||||
comments = CommentField(
|
comments = CommentField(
|
||||||
widget=forms.Textarea,
|
|
||||||
label=_('Comments')
|
label=_('Comments')
|
||||||
)
|
)
|
||||||
parameters = forms.JSONField(
|
parameters = forms.JSONField(
|
||||||
|
@ -6,8 +6,7 @@
|
|||||||
{# Render the field label, except for: #}
|
{# Render the field label, except for: #}
|
||||||
{# 1. Checkboxes (label appears to the right of the field #}
|
{# 1. Checkboxes (label appears to the right of the field #}
|
||||||
{# 2. Textareas with no label set (will expand across entire row) #}
|
{# 2. Textareas with no label set (will expand across entire row) #}
|
||||||
{% if field|widget_type == 'checkboxinput' or field|widget_type == 'textarea' or field|widget_type == 'markdownwidget' and not label %}
|
{% if label and not field|widget_type == 'checkboxinput' %}
|
||||||
{% else %}
|
|
||||||
<label for="{{ field.id_for_label }}" class="col-sm-3 col-form-label text-lg-end{% if field.field.required %} required{% endif %}">
|
<label for="{{ field.id_for_label }}" class="col-sm-3 col-form-label text-lg-end{% if field.field.required %} required{% endif %}">
|
||||||
{{ label }}
|
{{ label }}
|
||||||
</label>
|
</label>
|
||||||
|
Loading…
Reference in New Issue
Block a user