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:
@ -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">
|
||||
|
Reference in New Issue
Block a user