Skip to content

Commit

Permalink
Set form label to be inline-block
Browse files Browse the repository at this point in the history
  • Loading branch information
bctiemann committed Sep 19, 2024
1 parent 89d69f2 commit 08a665e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netbox/utilities/templates/form_helpers/render_field.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

{# Render the field label (if any), except for checkboxes #}
{% if label and not field|widget_type == 'checkboxinput' %}
<div class="col-sm-3">
<label for="{{ field.id_for_label }}" class="col-form-label text-lg-end{% if field.field.required %} required{% endif %}">
<div class="col-sm-3 text-lg-end">
<label for="{{ field.id_for_label }}" class="col-form-label d-inline-block{% if field.field.required %} required{% endif %}">
{{ label }}
</label>
</div>
Expand Down

0 comments on commit 08a665e

Please sign in to comment.