mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
#6797: Improve object edit form field layout
This commit is contained in:
@@ -25,6 +25,12 @@
|
||||
|
||||
{% elif field|widget_type == 'textarea' and not field.label %}
|
||||
<div class="row mb-3">
|
||||
{% if label %}
|
||||
<label class="col-sm-3 col-form-label text-end{% if field.field.required %} required{% endif %}" for="{{ field.id_for_label }}">
|
||||
{{ label }}
|
||||
</label>
|
||||
{% else %}
|
||||
{% endif %}
|
||||
<div class="col">
|
||||
{{ field }}
|
||||
{% if field.help_text %}
|
||||
|
||||
Reference in New Issue
Block a user