mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Updated custom fields inclusion tag to use 'with'
This commit is contained in:
@ -125,9 +125,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{% with circuit.get_custom_fields as custom_fields %}
|
||||
{% include 'inc/custom_fields_panel.html' %}
|
||||
{% endwith %}
|
||||
{% include 'inc/custom_fields_panel.html' with custom_fields=circuit.get_custom_fields %}
|
||||
{% include 'extras/inc/tags_panel.html' with tags=circuit.tags.all url='circuits:circuit_list' %}
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
|
@ -123,9 +123,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{% with provider.get_custom_fields as custom_fields %}
|
||||
{% include 'inc/custom_fields_panel.html' %}
|
||||
{% endwith %}
|
||||
{% include 'inc/custom_fields_panel.html' with custom_fields=provider.get_custom_fields %}
|
||||
{% include 'extras/inc/tags_panel.html' with tags=provider.tags.all url='circuits:provider_list' %}
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
|
@ -282,9 +282,7 @@
|
||||
{% endif %}
|
||||
</table>
|
||||
</div>
|
||||
{% with device.get_custom_fields as custom_fields %}
|
||||
{% include 'inc/custom_fields_panel.html' %}
|
||||
{% endwith %}
|
||||
{% include 'inc/custom_fields_panel.html' with custom_fields=device.get_custom_fields %}
|
||||
{% include 'extras/inc/tags_panel.html' with tags=device.tags.all url='dcim:device_list' %}
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
|
@ -158,9 +158,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{% with devicetype.get_custom_fields as custom_fields %}
|
||||
{% include 'inc/custom_fields_panel.html' %}
|
||||
{% endwith %}
|
||||
{% include 'inc/custom_fields_panel.html' with custom_fields=devicetype.get_custom_fields %}
|
||||
{% include 'extras/inc/tags_panel.html' with tags=devicetype.tags.all url='dcim:devicetype_list' %}
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
|
@ -158,9 +158,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{% with rack.get_custom_fields as custom_fields %}
|
||||
{% include 'inc/custom_fields_panel.html' %}
|
||||
{% endwith %}
|
||||
{% include 'inc/custom_fields_panel.html' with custom_fields=rack.get_custom_fields %}
|
||||
{% include 'extras/inc/tags_panel.html' with tags=rack.tags.all url='dcim:rack_list' %}
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
|
@ -219,9 +219,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{% with site.get_custom_fields as custom_fields %}
|
||||
{% include 'inc/custom_fields_panel.html' %}
|
||||
{% endwith %}
|
||||
{% include 'inc/custom_fields_panel.html' with custom_fields=site.get_custom_fields %}
|
||||
{% include 'extras/inc/tags_panel.html' with tags=site.tags.all url='dcim:site_list' %}
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
|
@ -97,9 +97,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
{% with aggregate.get_custom_fields as custom_fields %}
|
||||
{% include 'inc/custom_fields_panel.html' %}
|
||||
{% endwith %}
|
||||
{% include 'inc/custom_fields_panel.html' with custom_fields=aggregate.get_custom_fields %}
|
||||
{% include 'extras/inc/tags_panel.html' with tags=aggregate.tags.all url='ipam:aggregate_list' %}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -147,9 +147,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{% with ipaddress.get_custom_fields as custom_fields %}
|
||||
{% include 'inc/custom_fields_panel.html' %}
|
||||
{% endwith %}
|
||||
{% include 'inc/custom_fields_panel.html' with custom_fields=ipaddress.get_custom_fields %}
|
||||
{% include 'extras/inc/tags_panel.html' with tags=ipaddress.tags.all url='ipam:ipaddress_list' %}
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
|
@ -191,9 +191,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{% with prefix.get_custom_fields as custom_fields %}
|
||||
{% include 'inc/custom_fields_panel.html' %}
|
||||
{% endwith %}
|
||||
{% include 'inc/custom_fields_panel.html' with custom_fields=prefix.get_custom_fields %}
|
||||
{% include 'extras/inc/tags_panel.html' with tags=prefix.tags.all url='ipam:prefix_list' %}
|
||||
</div>
|
||||
<div class="col-md-7">
|
||||
|
@ -80,9 +80,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{% with service.get_custom_fields as custom_fields %}
|
||||
{% include 'inc/custom_fields_panel.html' %}
|
||||
{% endwith %}
|
||||
{% include 'inc/custom_fields_panel.html' with custom_fields=service.get_custom_fields %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
@ -139,9 +139,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{% with vlan.get_custom_fields as custom_fields %}
|
||||
{% include 'inc/custom_fields_panel.html' %}
|
||||
{% endwith %}
|
||||
{% include 'inc/custom_fields_panel.html' with custom_fields=vlan.get_custom_fields %}
|
||||
{% include 'extras/inc/tags_panel.html' with tags=vlan.tags.all url='ipam:vlan_list' %}
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
|
@ -92,9 +92,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{% with vrf.get_custom_fields as custom_fields %}
|
||||
{% include 'inc/custom_fields_panel.html' %}
|
||||
{% endwith %}
|
||||
{% include 'inc/custom_fields_panel.html' with custom_fields=vrf.get_custom_fields %}
|
||||
{% include 'extras/inc/tags_panel.html' with tags=vrf.tags.all url='ipam:vrf_list' %}
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
|
@ -81,9 +81,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{% with tenant.get_custom_fields as custom_fields %}
|
||||
{% include 'inc/custom_fields_panel.html' %}
|
||||
{% endwith %}
|
||||
{% include 'inc/custom_fields_panel.html' with custom_fields=tenant.get_custom_fields %}
|
||||
{% include 'extras/inc/tags_panel.html' with tags=tenant.tags.all url='tenancy:tenant_list' %}
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
|
Reference in New Issue
Block a user