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

Migrate DCIM views to use common object list template

This commit is contained in:
Jeremy Stretch
2020-02-13 14:07:15 -05:00
parent 4ef15e4dc8
commit fff657cd5a
26 changed files with 21 additions and 453 deletions

View File

@ -4,11 +4,15 @@
{% block content %}
<div class="pull-right noprint">
{% if permissions.add %}
{% if permissions.add and 'add' in action_buttons %}
{% add_button content_type.model_class|url_name:"add" %}
{% endif %}
{% if permissions.add and 'import' in action_buttons %}
{% import_button content_type.model_class|url_name:"import" %}
{% endif %}
{% export_button content_type %}
{% if 'export' in action_buttons %}
{% export_button content_type %}
{% endif %}
</div>
<h1>{% block title %}{{ content_type.model_class|model_name_plural|bettertitle }}{% endblock %}</h1>
<div class="row">