Kaynağa Gözat

Layout improvements

jeremystretch 4 yıl önce
ebeveyn
işleme
c0bf1576c2

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

@@ -5,7 +5,7 @@
 
 
 {% block content %}
 {% block content %}
 <div class="row">
 <div class="row">
-	<div class="col col-md-4">
+	  <div class="col col-md-6">
         <div class="card">
         <div class="card">
             <h5 class="card-header">
             <h5 class="card-header">
                 Provider
                 Provider
@@ -14,7 +14,7 @@
                 <table class="table table-hover attr-table">
                 <table class="table table-hover attr-table">
                     <tr>
                     <tr>
                         <th scope="row">ASN</th>
                         <th scope="row">ASN</th>
-                        <td><code>{{ object.asn|placeholder }}</code></td>
+                        <td>{{ object.asn|placeholder }}</td>
                     </tr>
                     </tr>
                     <tr>
                     <tr>
                         <th scope="row">Account</th>
                         <th scope="row">Account</th>
@@ -65,8 +65,8 @@
             </div>
             </div>
         </div>
         </div>
         {% plugin_right_page object %}
         {% plugin_right_page object %}
-	</div>
-	<div class="col col-md-8">
+    </div>
+    <div class="col col-md-12">
         <div class="card">
         <div class="card">
             <h5 class="card-header">
             <h5 class="card-header">
                 Circuits
                 Circuits

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

@@ -29,7 +29,7 @@
                     </tr>
                     </tr>
                     <tr>
                     <tr>
                         <th scope="row">Description</th>
                         <th scope="row">Description</th>
-                        <td>{{ object.description }}</td>
+                        <td>{{ object.description|placeholder }}</td>
                     </tr>
                     </tr>
                 </table>
                 </table>
             </div>
             </div>

+ 8 - 4
netbox/templates/dcim/platform.html

@@ -40,10 +40,6 @@
             <th scope="row">NAPALM Driver</th>
             <th scope="row">NAPALM Driver</th>
             <td>{{ object.napalm_driver|placeholder }}</td>
             <td>{{ object.napalm_driver|placeholder }}</td>
           </tr>
           </tr>
-          <tr>
-            <th scope="row">NAPALM Arguments</th>
-            <td><pre>{{ object.napalm_args }}</pre></td>
-          </tr>
           <tr>
           <tr>
             <th scope="row">Devices</th>
             <th scope="row">Devices</th>
             <td>
             <td>
@@ -56,6 +52,14 @@
     {% plugin_left_page object %}
     {% plugin_left_page object %}
 	</div>
 	</div>
 	<div class="col col-md-6">
 	<div class="col col-md-6">
+    <div class="card">
+      <h5 class="card-header">
+        NAPALM Arguments
+      </h5>
+      <div class="card-body">
+        <pre>{{ object.napalm_args }}</pre>
+      </div>
+    </div>
     {% include 'inc/custom_fields_panel.html' %}
     {% include 'inc/custom_fields_panel.html' %}
     {% plugin_right_page object %}
     {% plugin_right_page object %}
   </div>
   </div>

+ 16 - 10
netbox/templates/ipam/prefix.html

@@ -11,16 +11,6 @@
             </h5>
             </h5>
             <div class="card-body">
             <div class="card-body">
               <table class="table table-hover attr-table">
               <table class="table table-hover attr-table">
-                <tr>
-                    <td colspan="2">
-                    <span class="badge bg-{{ object.get_status_class }}">{{ object.get_status_display }}</span>
-                    {% if object.is_pool %}
-                        <span class="badge bg-success">Is a Pool</span>
-                    {% else %}
-                        <span class="badge bg-info">Not a Pool</span>
-                    {% endif %}
-                    </td>
-                </tr>
                 <tr>
                 <tr>
                     <th scope="row">Family</th>
                     <th scope="row">Family</th>
                     <td>IPv{{ object.family }}</td>
                     <td>IPv{{ object.family }}</td>
@@ -94,6 +84,22 @@
                         {% endif %}
                         {% endif %}
                     </td>
                     </td>
                 </tr>
                 </tr>
+                <tr>
+                    <th scope="row">Status</th>
+                    <td>
+                      <span class="label label-{{ object.get_status_class }}">{{ object.get_status_display }}</span>
+                    </td>
+                </tr>
+                <tr>
+                    <th scope="row">Is a pool</th>
+                    <td>
+                        {% if object.is_pool %}
+                            <i class="mdi mdi-check-bold text-success" title="Yes"></i>
+                        {% else %}
+                            <i class="mdi mdi-close-thick text-danger" title="No"></i>
+                        {% endif %}
+                    </td>
+                </tr>
                 <tr>
                 <tr>
                     <th scope="row">Description</th>
                     <th scope="row">Description</th>
                     <td>{{ object.description|placeholder }}</td>
                     <td>{{ object.description|placeholder }}</td>

+ 10 - 9
netbox/templates/ipam/vrf.html

@@ -14,15 +14,6 @@
             </h5>
             </h5>
             <div class="card-body">
             <div class="card-body">
                 <table class="table table-hover attr-table">
                 <table class="table table-hover attr-table">
-                    <tr>
-                        <td colspan="2">
-                        {% if object.enforce_unique %}
-                            <span class="badge bg-info">Unique IP Space</span>
-                        {% else %}
-                            <span class="badge bg-warning text-body">Non-Unique IP Space</span>
-                        {% endif %}
-                        </td>
-                    </tr>
                     <tr>
                     <tr>
                         <th scope="row">Route Distinguisher</th>
                         <th scope="row">Route Distinguisher</th>
                         <td><code>{{ object.rd }}</code></td>
                         <td><code>{{ object.rd }}</code></td>
@@ -37,6 +28,16 @@
                             {% endif %}
                             {% endif %}
                         </td>
                         </td>
                     </tr>
                     </tr>
+                    <tr>
+                        <th scope="row">Unique IP Space</th>
+                        <td>
+                            {% if object.enforce_unique %}
+                                <i class="mdi mdi-check-bold text-success" title="Yes"></i>
+                            {% else %}
+                                <i class="mdi mdi-close-thick text-danger" title="No"></i>
+                            {% endif %}
+                        </td>
+                    </tr>
                     <tr>
                     <tr>
                         <th scope="row">Description</th>
                         <th scope="row">Description</th>
                         <td>{{ object.description|placeholder }}</td>
                         <td>{{ object.description|placeholder }}</td>