1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Simplify add/import/export button invocation

This commit is contained in:
jeremystretch
2022-03-10 15:56:09 -05:00
parent ffc29d14a8
commit 5a3e99626d
5 changed files with 28 additions and 22 deletions

View File

@@ -26,13 +26,13 @@ Context:
<div class="control-group">
{% block extra_controls %}{% endblock %}
{% if 'add' in actions %}
{% add_button model|validated_viewname:"add" %}
{% add_button model %}
{% endif %}
{% if 'import' in actions %}
{% import_button model|validated_viewname:"import" %}
{% import_button model %}
{% endif %}
{% if 'export' in actions %}
{% export_button model|content_type %}
{% export_button model %}
{% endif %}
</div>
</div>