Skip to content
details.html 3.33 KiB
Newer Older
{% extends 'base.html' %}

{% block content %}
<h1>My Configurations</h1>

<div class="row">
  {% if device %}
  <div class="col-sm-12">
    <span>Device ID:</span>
    <h5>{{config_id}}</h5>
  </div>
  <div class="col-sm-12">
  <div class="col-sm-12">
    <span>Interface:</span>
    <span>
      <ul>
        <li><span>Name:</span><span class="font-weight-bold" style="font-weight: 700;">{{ interfaces.interface.name
            }}</span> </li>
        <li><span>Ip:</span> <span class="font-weight-bold" style="font-weight: 700;">{{ interfaces.interface.ip }}</span>
          <li><span>Ip:</span> <span class="font-weight-bold" style="font-weight: 700;">{{ interfaces.interface["prefix-legnth"] }}</span>
        </li>
        <li><span>Enabled:</span> <span class="font-weight-bold" style="font-weight: 700;"> {{ interfaces.interface.enabled
            }}</span></li>


      </ul>
    </span>
    </div>
    <div class="col-sm-12">

      <div class="col-sm-3">
        <a id="update" class="btn btn-secondary"
          href="{{ url_for('opticalconfig.update_interface',config_uuid=config_id,interface_name=interfaces.interface.name) }}">
          <i class="bi bi-pencil-square"></i>
          Update interface
        </a>
      </div>
    
    <div class="col-sm-12 hr bg-primary" style="height:1px; margin:5px 0;"></div>
    </div>
  </div>
  {% for channel in device %}
  <div class="col-sm-12">
    <span style="font-weight: 700;">channel name:{{channel.name.index}}</span>
  </div>


  <div class="col-sm-4">
    <span>Frequency:</span>
    <p class="font-weight-bold" style="font-weight: 700;">{{channel.frequency}}</p>
  </div>
  <div class="col-sm-4">
    <span>Target Output Power:</span>
    <span class="font-weight-bold" style="font-weight: 700;">{{channel.targetOutputPower}}</span>
  </div>
  <div class="col-sm-4">
    <span>Operational Mode:</span>
    <span class="font-weight-bold" style="font-weight: 700;">{{channel.operationalMode}}</span>
  </div>
  <div class="col-sm-4">
    <span>Line Port:</span>
    <span class="font-weight-bold" style="font-weight: 700;">{{channel.line_port}}</span>
  </div>

  <div class="col-sm-12">

    <div class="col-sm-3">
      <a id="update" class="btn btn-secondary"
        href="{{ url_for('opticalconfig.update',config_uuid=config_id,channel_name=channel.name) }}">
        <i class="bi bi-pencil-square"></i>
        Update channel
      </a>
    </div>
  </div>

  <div class="col-sm-12 hr bg-primary" style="height:1px; margin:5px 0;"></div>
  {% endfor %}

</div>

{% else %}
<div class="col">
  <h4 colspan="7">No devices found</h4>
</div>
{% endif %}
<!-- <div class="col">
            <a href="{{ url_for('service.add') }}" class="btn btn-primary" style="margin-bottom: 10px;">
                <i class="bi bi-plus"></i>
                Add New Service
            </a>
        </div> -->

<!-- Only display XR service addition button if there are XR constellations. Otherwise it might confuse
             user, as other service types do not have GUI to add service yet. -->

<!-- <div class="col">
            <form>
                <div class="input-group">
                    <input type="text" aria-label="Search" placeholder="Search..." class="form-control"/>
                    <button type="submit" class="btn btn-primary">Search</button>
                  </div>
            </form>
        </div> -->
</div>




{% endblock %}