File tree Expand file tree Collapse file tree
netbox_lifecycle/templates/netbox_lifecycle Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,14 +21,25 @@ <h5 class="card-header">Contract</h5>
2121 < th > Vendor</ th >
2222 < td > {{ object.vendor|linkify }}</ td >
2323 </ tr >
24+ {% if object.device %}
2425 < tr >
2526 < th > Device</ th >
2627 < td > {{ object.device|linkify }}</ td >
2728 </ tr >
29+ {% elif object.virtual_machine %}
30+ < tr >
31+ < th > Virtual Machine</ th >
32+ < td > {{ object.virtual_machine|linkify }}</ td >
33+ </ tr >
34+ {% endif %}
2835 < tr >
2936 < th > Quantity</ th >
3037 < td > {{ object.quantity }}</ td >
3138 </ tr >
39+ < tr >
40+ < th > Description</ th >
41+ < td > {{ object.description }}</ td >
42+ </ tr >
3243 </ table >
3344 </ div >
3445 </ div >
Original file line number Diff line number Diff line change @@ -21,18 +21,38 @@ <h5 class="card-header">Contract</h5>
2121 < th > SKU</ th >
2222 < td > {{ object.sku|linkify }}</ td >
2323 </ tr >
24+ {% if object.device %}
2425 < tr >
2526 < th > Device</ th >
2627 < td > {{ object.device|linkify }}</ td >
2728 </ tr >
29+ {% endif %}
30+ {% if object.module %}
31+ < tr >
32+ < th > Module</ th >
33+ < td > {{ object.module|linkify }}</ td >
34+ </ tr >
35+ {% endif %}
36+ {% if object.virtual_machine %}
37+ < tr >
38+ < th > Virtual Machine</ th >
39+ < td > {{ object.virtual_machine|linkify }}</ td >
40+ </ tr >
41+ {% endif %}
42+ {% if object.license %}
2843 < tr >
2944 < th > License</ th >
3045 < td > {{ object.license|linkify }}</ td >
3146 </ tr >
47+ {% endif %}
3248 < tr >
3349 < th > End Date</ th >
3450 < td > {{ object.end }}</ td >
3551 </ tr >
52+ < tr >
53+ < th > Description</ th >
54+ < td > {{ object.description }}</ td >
55+ </ tr >
3656 </ table >
3757 </ div >
3858 </ div >
You can’t perform that action at this time.
0 commit comments