1
0
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:
Matt
2021-08-04 10:57:01 -07:00
parent 0cf9be2a8d
commit 582b69de74
5 changed files with 12 additions and 8 deletions

View File

@@ -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 %}