Skip to content

Commit 3fa8cb1

Browse files
authored
Closes: #67 - Linkify Vendor and SKU on SupportContract Info detailed view (#75)
2 parents 20b3539 + 383feb2 commit 3fa8cb1

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

netbox_lifecycle/templates/netbox_lifecycle/inc/support_contract_info.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@
77
<h5 class="card-header">Support Contract</h5>
88
{% if support_contract %}
99
<table class="table table-hover attr-table">
10+
<tr>
11+
<th scope="row">Vendor</th>
12+
<td>{{ support_contract.contract.vendor|linkify|placeholder }}</td>
13+
</tr>
1014
<tr>
1115
<th scope="row"><span title="Contract Number">Contract Number</span></th>
12-
<td>{{ support_contract.contract.contract_id|linkify|placeholder }}</td>
16+
<td>{{ support_contract.contract|linkify:"contract_id"|placeholder }}</td>
1317
</tr>
1418
<tr>
1519
<th scope="row">Support SKU</th>
16-
<td>{{ support_contract.sku }}</td>
20+
<td>{{ support_contract.sku|linkify|placeholder }}</td>
1721
</tr>
1822
<tr>
1923
<th scope="row">Start Date</th>

netbox_lifecycle/templates/netbox_lifecycle/supportcontract.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ <h5 class="card-header">Contract</h5>
2424
<table class="table table-hover attr-table">
2525
<tr>
2626
<th>Manufacturer</th>
27-
<td>{{ object.manufacturer|linkify }}</td>
27+
<td>{{ object.manufacturer|linkify|placeholder }}</td>
2828
</tr>
2929
<tr>
3030
<th>Vendor</th>
31-
<td>{{ object.vendor|linkify }}</td>
31+
<td>{{ object.vendor|linkify|placeholder }}</td>
3232
</tr>
3333
<tr>
3434
<th>Contract ID</th>

0 commit comments

Comments
 (0)