Commit d861e67c authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Pre-merge code cleanup

parent b9e5f982
Loading
Loading
Loading
Loading
+111 −127
Original line number Diff line number Diff line
@@ -14,17 +14,13 @@
 limitations under the License.
-->



{% extends 'base.html' %}

{% block content %}


<h1>Optical Configurations</h1>

<div class="row">
 
  {% if device %}
    <div class="col-sm-12">
      <span>Device ID:</span>
@@ -33,7 +29,6 @@
    <div class="col-sm-12">
      <div class="col-sm-12">
        <div class="row mb-3 ">

          <div class="col-sm-3">
            <button type="button" class="btn btn-success" onclick="window.location.href='{{ url_for('opticalconfig.home') }}'">
                <i class="bi bi-box-arrow-in-left"></i>
@@ -53,7 +48,6 @@
        <span>Device Name:</span>
        <span>{{device_name}}</span>
      </div>
  
    </div>

    {% if type == 'optical-transponder' %}
@@ -69,7 +63,6 @@
          </tr>
        </thead>
        <tbody>
                    
          {% for channel in device %}
            <tr style="background-color:{%if channel.status == 'DISABLED' %} gray {% endif %};">
              <td>{{channel.name.index}}</td>
@@ -83,7 +76,6 @@
        </tbody>
      </table>
    {% elif type == 'openroadm' %}  
                 
      <table class="table table-striped table-hover">
        <thead>
          <tr>
@@ -98,7 +90,6 @@
          </tr>
        </thead>
        <tbody>
                
            {% for channel in device %}
              <tr style="background-color:{%if channel.status == 'DISABLED' %} gray {% endif %};">
                <td>{{channel.name}}</td>
@@ -113,7 +104,6 @@
            {% endfor %}
        </tbody>
      </table>

    {% else %}
      <table class="table table-striped table-hover">
        <thead>
@@ -127,11 +117,9 @@
            <th scope="col">Source Port</th>
            <th scope="col">Destination Port</th>
            <th scope="col">Channel Status </th>
                      
          </tr>
        </thead>
        <tbody>
                
          {% for channel in device %} 
            <tr>
              <td>{{channel.channel_index}}</td>
@@ -143,15 +131,11 @@
              <td>{{channel.src_port}}</td>
              <td>{{channel.dest_port}}</td>
              <td>{{channel.status}}</td>
                              
            </tr>
          {% endfor %}
                    
        </tbody>
      </table>
                  
    {% endif%}

  </div>

{% else %}