mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Closes #561: Make custom fields accessible from within export templates
This commit is contained in:
@@ -105,7 +105,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{% with provider.custom_fields as custom_fields %}
|
||||
{% with provider.get_custom_fields as custom_fields %}
|
||||
{% include 'inc/custom_fields_panel.html' %}
|
||||
{% endwith %}
|
||||
<div class="panel panel-default">
|
||||
|
@@ -144,7 +144,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{% with device.custom_fields as custom_fields %}
|
||||
{% with device.get_custom_fields as custom_fields %}
|
||||
{% include 'inc/custom_fields_panel.html' %}
|
||||
{% endwith %}
|
||||
{% if request.user.is_authenticated %}
|
||||
|
@@ -132,7 +132,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{% with rack.custom_fields as custom_fields %}
|
||||
{% with rack.get_custom_fields as custom_fields %}
|
||||
{% include 'inc/custom_fields_panel.html' %}
|
||||
{% endwith %}
|
||||
<div class="panel panel-default">
|
||||
|
@@ -111,7 +111,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{% with site.custom_fields as custom_fields %}
|
||||
{% with site.get_custom_fields as custom_fields %}
|
||||
{% include 'inc/custom_fields_panel.html' %}
|
||||
{% endwith %}
|
||||
<div class="panel panel-default">
|
||||
|
@@ -82,7 +82,7 @@
|
||||
{% include 'inc/created_updated.html' with obj=aggregate %}
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
{% with aggregate.custom_fields as custom_fields %}
|
||||
{% with aggregate.get_custom_fields as custom_fields %}
|
||||
{% include 'inc/custom_fields_panel.html' %}
|
||||
{% endwith %}
|
||||
</div>
|
||||
|
@@ -65,7 +65,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{% with tenant.custom_fields as custom_fields %}
|
||||
{% with tenant.get_custom_fields as custom_fields %}
|
||||
{% include 'inc/custom_fields_panel.html' %}
|
||||
{% endwith %}
|
||||
<div class="panel panel-default">
|
||||
|
Reference in New Issue
Block a user