Commit 14ddd26e authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

WebUI component:

- Added Link Attributes to Details page
- Added formatting of Schedule Constraints in Service and Slice Details page
parent bcbe5f08
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
@@ -79,6 +79,29 @@
</div>


<b>Attributes:</b>
<table class="table table-striped table-hover">
    <thead>
        <tr>
            <th scope="col">Key</th>
            <th scope="col">Value</th>
        </tr>
    </thead>
    <tbody>
        {% for field_descriptor, field_value in link.attributes.ListFields() %}
        <tr>
            <td>
                {{ field_descriptor.name }}
            </td>
            <td>
                {{ field_value }}
            </td>
        </tr>
        {% endfor %}
    </tbody>
</table>


<!-- Modal -->
<div class="modal fade" id="deleteModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
    aria-labelledby="staticBackdropLabel" aria-hidden="true">
+9 −0
Original line number Diff line number Diff line
@@ -166,6 +166,15 @@
                {% if constraint.sla_availability.all_active %}all{% else %}single{% endif %}-active
            </td>
        </tr>
        {% elif constraint.WhichOneof('constraint')=='schedule' %}
        <tr>
            <td>Schedule</td>
            <td>-</td>
            <td>
                Start time: {{ constraint.schedule.start_timestamp }},
                Duration: {{ constraint.schedule.duration_days }} days.
            </td>
        </tr>
        {% elif constraint.WhichOneof('constraint')=='sla_isolation' %}
        <tr>
            <td>SLA Isolation</td>
+9 −0
Original line number Diff line number Diff line
@@ -166,6 +166,15 @@
                {% if constraint.sla_availability.all_active %}all{% else %}single{% endif %}-active
            </td>
        </tr>
        {% elif constraint.WhichOneof('constraint')=='schedule' %}
        <tr>
            <td>Schedule</td>
            <td>-</td>
            <td>
                Start time: {{ constraint.schedule.start_timestamp }},
                Duration: {{ constraint.schedule.duration_days }} days.
            </td>
        </tr>
        {% elif constraint.WhichOneof('constraint')=='sla_isolation' %}
        <tr>
            <td>SLA Isolation</td>