2019-01-21 16:53:40 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>D4-Project</title>
|
|
|
|
<link rel="icon" href="{{ url_for('static', filename='img/d4-logo.png')}}">
|
|
|
|
<!-- Core CSS -->
|
|
|
|
<link href="{{ url_for('static', filename='css/bootstrap.min.css') }}" rel="stylesheet">
|
2019-01-28 14:16:43 +01:00
|
|
|
<link href="{{ url_for('static', filename='font-awesome/css/font-awesome.css') }}" rel="stylesheet">
|
2019-05-28 13:34:46 +02:00
|
|
|
<link href="{{ url_for('static', filename='css/dataTables.bootstrap.min.css') }}" rel="stylesheet">
|
2019-01-21 16:53:40 +01:00
|
|
|
|
|
|
|
<!-- JS -->
|
|
|
|
<script src="{{ url_for('static', filename='js/jquery.js')}}"></script>
|
2019-06-04 13:21:20 +02:00
|
|
|
<script src="{{ url_for('static', filename='js/popper.min.js')}}"></script>
|
2019-01-21 16:53:40 +01:00
|
|
|
<script src="{{ url_for('static', filename='js/bootstrap.min.js')}}"></script>
|
2019-05-28 13:34:46 +02:00
|
|
|
<script src="{{ url_for('static', filename='js/jquery.dataTables.min.js')}}"></script>
|
|
|
|
<script src="{{ url_for('static', filename='js/dataTables.bootstrap.min.js')}}"></script>
|
2019-01-21 16:53:40 +01:00
|
|
|
|
|
|
|
<style>
|
2019-06-04 13:21:20 +02:00
|
|
|
.popover{
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
2019-01-21 16:53:40 +01:00
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
2019-09-02 16:06:46 +02:00
|
|
|
{% include 'navbar.html' %}
|
2019-01-21 16:53:40 +01:00
|
|
|
|
2019-01-29 09:22:21 +01:00
|
|
|
<div class="card mt-2 mb-2">
|
|
|
|
<div class="card-body bg-dark text-white">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-8">
|
|
|
|
<div class="custom-control custom-switch mt-2">
|
|
|
|
<input type="checkbox" class="custom-control-input" id="show_active_connection" {%if active_connection_filter%}checked value="True"{%else%}value=""{%endif%} onclick="window.location.href ='{{ url_for('show_active_uuid') }}?&show_active_connection='+$('#show_active_connection').val();">
|
|
|
|
<label class="custom-control-label" for="show_active_connection">Active Connection</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-4">
|
|
|
|
<div class="form-row">
|
|
|
|
<div class="col-10">
|
|
|
|
<input type="text" class="form-control mt-1" id="search_uuid" placeholder="Search UUID">
|
|
|
|
</div>
|
|
|
|
<div class="col-2">
|
|
|
|
<button type="button" class="btn btn-outline-light" onclick="window.location.href ='{{ url_for('uuid_management') }}?redirect=0&uuid='+$('#search_uuid').val();">
|
|
|
|
<i class="fa fa-search fa-2x"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-05-28 13:34:46 +02:00
|
|
|
<div class="mx-2">
|
|
|
|
<table class="table table-striped table-bordered table-hover text-center" id="myTable_1">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class="bg-info text-white">UUID</th>
|
|
|
|
<th class="bg-info text-white">first seen</th>
|
|
|
|
<th class="bg-info text-white">last seen</th>
|
|
|
|
<th class="bg-info text-white">types</th>
|
|
|
|
<th class="bg-secondary text-white">Status</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for row_uuid in status_daily_uuid %}
|
2019-06-04 13:21:20 +02:00
|
|
|
<tr data-trigger="hover" title="" data-content="test content" data-original-title="test title">
|
2019-05-28 13:34:46 +02:00
|
|
|
<td>
|
|
|
|
<a class="" href="{{ url_for('uuid_management') }}?uuid={{row_uuid['uuid']}}">
|
|
|
|
{{row_uuid['uuid']}}
|
|
|
|
</a>
|
|
|
|
<div class="text-info"><small>{{row_uuid['description']}}</small></div>
|
|
|
|
</td>
|
2019-05-28 16:17:58 +02:00
|
|
|
<td>{{row_uuid['first_seen_gmt']}}</td>
|
|
|
|
<td>{{row_uuid['last_seen_gmt']}}</td>
|
2019-05-28 13:34:46 +02:00
|
|
|
<td>
|
2019-06-04 13:21:20 +02:00
|
|
|
{{type_description}}
|
2019-05-28 13:34:46 +02:00
|
|
|
{% for uuid_type in row_uuid['l_uuid_types'] %}
|
2019-06-04 11:22:46 +02:00
|
|
|
{% if row_uuid['type_connection_status'][uuid_type] %}
|
2019-06-04 13:21:20 +02:00
|
|
|
<span class="badge badge-success" data-toggle="popover" data-trigger="hover" title="" data-content="{{types_description[uuid_type]}}" data-original-title="{{uuid_type}}">
|
|
|
|
{{uuid_type}}
|
|
|
|
</span>
|
2019-06-04 11:22:46 +02:00
|
|
|
{% else %}
|
2019-06-04 13:21:20 +02:00
|
|
|
<span class="badge badge-dark" data-toggle="popover" data-trigger="hover" title="" data-content="{{types_description[uuid_type]}}" data-original-title="{{uuid_type}}">
|
|
|
|
{{uuid_type}}
|
|
|
|
</span>
|
2019-06-04 11:22:46 +02:00
|
|
|
{% endif %}
|
2019-05-28 13:34:46 +02:00
|
|
|
{% endfor %}
|
|
|
|
</td>
|
|
|
|
<td
|
|
|
|
{% if not row_uuid['Error'] %}
|
|
|
|
div class="text-success">
|
|
|
|
OK -
|
|
|
|
{% else %}
|
|
|
|
div class="text-danger">
|
|
|
|
<i class="fa fa-times-circle"></i> {{row_uuid['Error']}}
|
|
|
|
{% endif %}
|
2019-01-28 14:16:43 +01:00
|
|
|
{% if row_uuid['active_connection'] %}
|
|
|
|
<i class="fa fa-check-circle"></i> Connected
|
|
|
|
{% endif %}
|
2019-05-28 13:34:46 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
2019-01-21 16:53:40 +01:00
|
|
|
|
2019-01-30 14:47:43 +01:00
|
|
|
{% include 'navfooter.html' %}
|
2019-01-21 16:53:40 +01:00
|
|
|
</body>
|
2019-05-28 13:34:46 +02:00
|
|
|
|
|
|
|
<script>
|
|
|
|
$(document).ready(function(){
|
2019-09-02 16:06:46 +02:00
|
|
|
$("#nav-sensor").addClass("active");
|
2019-05-28 13:34:46 +02:00
|
|
|
table = $('#myTable_1').DataTable(
|
|
|
|
{
|
|
|
|
"aLengthMenu": [[5, 10, 15, 20, -1], [5, 10, 15, 20, "All"]],
|
|
|
|
"iDisplayLength": 10,
|
|
|
|
"order": [[ 0, "asc" ]]
|
|
|
|
}
|
|
|
|
);
|
2019-06-04 13:21:20 +02:00
|
|
|
$('[data-toggle="popover"]').popover({
|
|
|
|
placement: 'top',
|
|
|
|
container: 'body',
|
|
|
|
html : false,
|
|
|
|
})
|
2019-05-28 13:34:46 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|