Просмотр исходного кода

Added missing import buttons to cables list

Jeremy Stretch 7 лет назад
Родитель
Сommit
c29ae9b785
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      netbox/templates/dcim/cable_list.html

+ 3 - 0
netbox/templates/dcim/cable_list.html

@@ -3,6 +3,9 @@
 
 {% block content %}
 <div class="pull-right">
+    {% if perms.dcim.add_cable %}
+        {% import_button 'dcim:cable_import' %}
+    {% endif %}
     {% export_button content_type %}
 </div>
 <h1>{% block title %}Cables{% endblock %}</h1>