Skip to content

Commit b9576ed

Browse files
committed
Misc cleanup
1 parent c42e382 commit b9576ed

File tree

5 files changed

+31
-3
lines changed

5 files changed

+31
-3
lines changed

netbox/templates/dcim/device_edit.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,13 @@ <h2 class="col-9 offset-3">{% trans "Virtual Chassis" %}</h2>
9999
{% render_field form.vc_priority %}
100100
</div>
101101

102+
<div class="field-group mb-5">
103+
<div class="row">
104+
<h2 class="col-9 offset-3">{% trans "Owner" %}</h2>
105+
</div>
106+
{% render_field form.owner %}
107+
</div>
108+
102109
{% if form.custom_fields %}
103110
<div class="field-group my-5">
104111
<div class="row">

netbox/templates/dcim/htmx/cable_edit.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,13 @@ <h2 class="col-9 offset-3">{% trans "Tenancy" %}</h2>
7777
{% render_field form.tenant %}
7878
</div>
7979

80+
<div class="field-group mb-5">
81+
<div class="row">
82+
<h2 class="col-9 offset-3">{% trans "Owner" %}</h2>
83+
</div>
84+
{% render_field form.owner %}
85+
</div>
86+
8087
{% if form.custom_fields %}
8188
<div class="field-group mb-5">
8289
<div class="row">

netbox/templates/dcim/virtualchassis_edit.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,11 @@ <h2 class="col-9 offset-3">{% trans "Virtual Chassis" %}</h2>
3434
{% render_field vc_form.tags %}
3535
</div>
3636

37-
<div class="field-group my-5">
38-
{% render_field vc_form.comments %}
37+
<div class="field-group mb-5">
38+
<div class="row">
39+
<h2 class="col-9 offset-3">{% trans "Owner" %}</h2>
40+
</div>
41+
{% render_field vc_form.owner %}
3942
</div>
4043

4144
{% if vc_form.custom_fields %}
@@ -47,6 +50,10 @@ <h2 class="col-9 offset-3">{% trans "Custom Fields" %}</h2>
4750
</div>
4851
{% endif %}
4952

53+
<div class="field-group my-5">
54+
{% render_field vc_form.comments %}
55+
</div>
56+
5057
<div class="field-group mb-5">
5158
<h2 class="text-center">{% trans "Members" %}</h2>
5259
<table class="table">

netbox/templates/ipam/vlan_edit.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@ <h2 class="col-9 offset-3">{% trans "Assignment" %}</h2>
6565
{% endwith %}
6666
</div>
6767

68+
<div class="field-group mb-5">
69+
<div class="row">
70+
<h2 class="col-9 offset-3">{% trans "Owner" %}</h2>
71+
</div>
72+
{% render_field form.owner %}
73+
</div>
74+
6875
{% if form.custom_fields %}
6976
<div class="field-group my-5">
7077
<div class="row">

netbox/templates/users/ownergroup.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ <h2 class="card-header">{% trans "Group" %}</h2>
3535
<h2 class="card-header">{% trans "Members" %}</h2>
3636
<div class="list-group list-group-flush">
3737
{% for owner in object.members.all %}
38-
<a href="{% url 'users:owner' pk=user.pk %}" class="list-group-item list-group-item-action">{{ owner }}</a>
38+
<a href="{% url 'users:owner' pk=owner.pk %}" class="list-group-item list-group-item-action">{{ owner }}</a>
3939
{% empty %}
4040
<div class="list-group-item text-muted">{% trans "None" %}</div>
4141
{% endfor %}

0 commit comments

Comments
 (0)