Skip to content

Commit 5d448d2

Browse files
committed
feat(templates): Update source/destination field labels
Rename labels for source and destination fields in ACL templates to reflect the updated generic model structure. Improves clarity and consistency with recent data model changes.
1 parent 0a4fa6f commit 5d448d2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

netbox_acls/templates/netbox_acls/aclextendedrule.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,16 @@ <h2 class="card-header">Details</h2>
4545
<td>{{ object.get_protocol_display|placeholder }}</td>
4646
</tr>
4747
<tr>
48-
<th scope="row">Source Prefix</th>
49-
<td>{{ object.source_prefix|linkify|placeholder }}</td>
48+
<th scope="row">Source</th>
49+
<td>{{ object.source|linkify|placeholder }}</td>
5050
</tr>
5151
<tr>
5252
<th scope="row">Source Ports</th>
5353
<td>{{ object.source_ports|join:", "|placeholder }}</td>
5454
</tr>
5555
<tr>
56-
<th scope="row">Destination Prefix</th>
57-
<td>{{ object.destination_prefix|linkify|placeholder }}</td>
56+
<th scope="row">Destination</th>
57+
<td>{{ object.destination|linkify|placeholder }}</td>
5858
</tr>
5959
<tr>
6060
<th scope="row">Destination Ports</th>

netbox_acls/templates/netbox_acls/aclstandardrule.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ <h2 class="card-header">Details</h2>
4141
<td>{{ object.remark|placeholder }}</td>
4242
</tr>
4343
<tr>
44-
<th scope="row">Source Prefix</th>
45-
<td>{{ object.source_prefix|linkify|placeholder }}</td>
44+
<th scope="row">Source</th>
45+
<td>{{ object.source|linkify|placeholder }}</td>
4646
</tr>
4747
</table>
4848
</div>

0 commit comments

Comments
 (0)