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

#6372: Device import: Racked/child device tabs are not tabs

checktheroads 4 лет назад
Родитель
Сommit
7bb7747c67
1 измененных файлов с 7 добавлено и 3 удалено
  1. 7 3
      netbox/templates/dcim/inc/device_import_header.html

+ 7 - 3
netbox/templates/dcim/inc/device_import_header.html

@@ -1,4 +1,8 @@
-<ul class="nav nav-tabs" style="margin-bottom: 20px">
-    <li role="presentation"{% if not active_tab %} class="active"{% endif %}><a href="{% url 'dcim:device_import' %}">Racked Devices</a></li>
-    <li role="presentation"{% if active_tab == 'child_import' %} class="active"{% endif %}><a href="{% url 'dcim:device_import_child' %}">Child Devices</a></li>
+<ul class="nav nav-tabs justify-content-center" style="margin-bottom: 20px">
+    <li class="nav-item" role="presentation">
+        <a class ="nav-link{% if not active_tab %} active{% endif %}" href="{% url 'dcim:device_import' %}">Racked Devices</a>
+    </li>
+    <li class="nav-item" role="presentation">
+        <a class="nav-link{% if active_tab == 'child_import' %} active{% endif %}" href="{% url 'dcim:device_import_child' %}">Child Devices</a>
+    </li>
 </ul>