Commit 8d340ab4 authored by Vladislav Rykov's avatar Vladislav Rykov
Browse files

embelished device configuration history table

parent b3580758
...@@ -45,31 +45,33 @@ ...@@ -45,31 +45,33 @@
<h3 class="mb-0" id="confhistory">Configuration history</h3> <h3 class="mb-0" id="confhistory">Configuration history</h3>
</div> </div>
{% if config_list %} {% if config_list %}
<table class="table"> <div class="table-responsive">
<thead> <table class="table align-items-center table-flush">
<th> Config ID </th> <thead class="thread-light">
<th> Arguments </th> <th scope="col"> Config ID </th>
<th> Status </th> <th scope="col"> Arguments </th>
<th> </th> <th scope="col"> Status </th>
</thead> <th scope="col"> </th>
<tbody> </thead>
{% for c in config_list %} <tbody>
<td> {{ c[0] }} </td> {% for c in config_list %}
<td> {{ c[1] }} </td> <td> {{ c[0] }} </td>
<td> <td> {{ c[1] }} </td>
<span class="badge badge-dot"> <td>
{% if c[2] %} <span class="badge badge-dot">
<i class="bg-success"></i> Completed {% if c[2] %}
{% else %} <i class="bg-success"></i> Completed
<i class="bg-warning"></i> Pending {% else %}
{% endif %} <i class="bg-warning"></i> Pending
</span> {% endif %}
</td> </span>
<td> <a href="javascript:void(0)" onclick="return remove_configuration('{{ c[3][0:-1] }}')"> <span class="fa fa-remove"> </span> </a> </td> </td>
</tr> <td> <a href="javascript:void(0)" onclick="return remove_configuration('{{ c[3][0:-1] }}')"> <span class="fa fa-remove"> </span> </a> </td>
{% endfor %} </tr>
</tbody> {% endfor %}
</table> </tbody>
</table>
</div>
{% else %} {% else %}
<div class="col-lg-12"> <div class="col-lg-12">
<center><p style="margin-top: 35px;"> No configuration messages. </p></center> <center><p style="margin-top: 35px;"> No configuration messages. </p></center>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment