Parcourir la source

Cleaned up attribute tables

Jeremy Stretch il y a 8 ans
Parent
commit
6a9f26a68d

+ 4 - 1
netbox/project-static/css/base.css

@@ -89,6 +89,9 @@ th.pk, td.pk {
 tfoot td {
     font-weight: bold;
 }
+table.attr-table td:nth-child(1) {
+    width: 25%;
+}
 
 /* Paginator */
 div.paginator {
@@ -327,4 +330,4 @@ td .progress {
 }
 textarea {
     font-family: Consolas, Lucida Console, monospace;
-}
+}

+ 1 - 1
netbox/templates/circuits/circuit.html

@@ -47,7 +47,7 @@
             <div class="panel-heading">
                 <strong>Circuit</strong>
             </div>
-            <table class="table table-hover panel-body">
+            <table class="table table-hover panel-body attr-table">
                 <tr>
                     <td>Provider</td>
                     <td>

+ 1 - 1
netbox/templates/circuits/inc/circuit_termination.html

@@ -23,7 +23,7 @@
         <strong>Termination - {{ side }} Side</strong>
     </div>
     {% if termination %}
-        <table class="table table-hover panel-body">
+        <table class="table table-hover panel-body attr-table">
             <tr>
                 <td>Site</td>
                 <td>

+ 1 - 1
netbox/templates/circuits/provider.html

@@ -53,7 +53,7 @@
             <div class="panel-heading">
                 <strong>Provider</strong>
             </div>
-            <table class="table table-hover panel-body">
+            <table class="table table-hover panel-body attr-table">
                 <tr>
                     <td>ASN</td>
                     <td>

+ 2 - 2
netbox/templates/dcim/device.html

@@ -13,7 +13,7 @@
             <div class="panel-heading">
                 <strong>Device</strong>
             </div>
-            <table class="table table-hover panel-body">
+            <table class="table table-hover panel-body attr-table">
                 <tr>
                     <td>Tenant</td>
                     <td>
@@ -85,7 +85,7 @@
             <div class="panel-heading">
                 <strong>Management</strong>
             </div>
-            <table class="table table-hover panel-body">
+            <table class="table table-hover panel-body attr-table">
                 <tr>
                     <td>Role</td>
                     <td>

+ 1 - 1
netbox/templates/dcim/device_inventory.html

@@ -10,7 +10,7 @@
             <div class="panel-heading">
                 <strong>Chassis</strong>
             </div>
-            <table class="table table-hover panel-body">
+            <table class="table table-hover panel-body attr-table">
                 <tr>
                     <td>Model</td>
                     <td>{{ device.device_type.full_name }}</td>

+ 1 - 1
netbox/templates/dcim/devicetype.html

@@ -39,7 +39,7 @@
             <div class="panel-heading">
                 <strong>Chassis</strong>
             </div>
-            <table class="table table-hover panel-body">
+            <table class="table table-hover panel-body attr-table">
                 <tr>
                     <td>Manufacturer</td>
                     <td><a href="{% url 'dcim:devicetype_list' %}?manufacturer={{ devicetype.manufacturer.slug }}">{{ devicetype.manufacturer }}</a></td>

+ 1 - 1
netbox/templates/dcim/rack.html

@@ -60,7 +60,7 @@
             <div class="panel-heading">
                 <strong>Rack</strong>
             </div>
-            <table class="table table-hover panel-body">
+            <table class="table table-hover panel-body attr-table">
                 <tr>
                     <td>Site</td>
                     <td>

+ 1 - 1
netbox/templates/dcim/site.html

@@ -54,7 +54,7 @@
             <div class="panel-heading">
                 <strong>Site</strong>
             </div>
-            <table class="table table-hover panel-body">
+            <table class="table table-hover panel-body attr-table">
                 <tr>
                     <td>Tenant</td>
                     <td>

+ 1 - 1
netbox/templates/inc/custom_fields_panel.html

@@ -3,7 +3,7 @@
         <div class="panel-heading">
             <strong>Custom Fields</strong>
         </div>
-        <table class="table table-hover panel-body">
+        <table class="table table-hover panel-body attr-table">
             {% for field, value in custom_fields.items %}
                 <tr>
                     <td>{{ field }}</td>

+ 1 - 1
netbox/templates/ipam/aggregate.html

@@ -47,7 +47,7 @@
             <div class="panel-heading">
                 <strong>Aggregate</strong>
             </div>
-            <table class="table table-hover panel-body">
+            <table class="table table-hover panel-body attr-table">
                 <tr>
                     <td>Family</td>
                     <td>{{ aggregate.get_family_display }}</td>

+ 1 - 1
netbox/templates/ipam/ipaddress.html

@@ -49,7 +49,7 @@
             <div class="panel-heading">
                 <strong>IP Address</strong>
             </div>
-            <table class="table table-hover panel-body">
+            <table class="table table-hover panel-body attr-table">
                 <tr>
                     <td>Family</td>
                     <td>{{ ipaddress.get_family_display }}</td>

+ 1 - 1
netbox/templates/ipam/prefix.html

@@ -11,7 +11,7 @@
             <div class="panel-heading">
                 <strong>Prefix</strong>
             </div>
-            <table class="table table-hover panel-body">
+            <table class="table table-hover panel-body attr-table">
                 <tr>
                     <td>Family</td>
                     <td>{{ prefix.get_family_display }}</td>

+ 1 - 1
netbox/templates/ipam/vlan.html

@@ -50,7 +50,7 @@
             <div class="panel-heading">
                 <strong>VLAN</strong>
             </div>
-            <table class="table table-hover panel-body">
+            <table class="table table-hover panel-body attr-table">
                 <tr>
                     <td>Site</td>
                     <td><a href="{% url 'dcim:site' slug=vlan.site.slug %}">{{ vlan.site }}</a></td>

+ 1 - 1
netbox/templates/ipam/vrf.html

@@ -46,7 +46,7 @@
             <div class="panel-heading">
                 <strong>VRF</strong>
             </div>
-            <table class="table table-hover panel-body">
+            <table class="table table-hover panel-body attr-table">
                 <tr>
                     <td>Route Distinguisher</td>
                     <td>{{ vrf.rd }}</td>

+ 1 - 1
netbox/templates/tenancy/tenant.html

@@ -49,7 +49,7 @@
             <div class="panel-heading">
                 <strong>Tenant</strong>
             </div>
-            <table class="table table-hover panel-body">
+            <table class="table table-hover panel-body attr-table">
                 <tr>
                     <td>Group</td>
                     <td>