blob: 8f870c5bd576a75641d5610d00035626cc1120be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
{% extends 'dashboard/dashboard_index.html' %}
{% load staticfiles %}
{% load custom_filter %}
{% block title %}
Fetch Logs
{% endblock %}
{% block headerfiles %}
<script src = "{% static 'js/jquery.datetimepicker.full.min.js' %}"></script>
<script type="{% static 'js/jquery-ui.js' %}"></script>
<link rel="stylesheet" type="text/css" href="{% static 'css/jquery.datetimepicker.css' %}">
<link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.1/css/all.css" integrity="sha384-5sAR7xN1Nv6T6+dT2mhtzEpVJvfS3NScPQTrOxhwjIuvcA67KV2R5Jz6kr4abQsz" crossorigin="anonymous">
{% endblock %}
{% block main %}
<div>
<h4>Filter Log files</h4>
<form class = "form-horizontal" action = "" method="POST" autocomplete="off">
<center>
<div class = "form-group">
{% csrf_token %}
{{form.as_p}}
<button class="btn btn-primary" type="submit" name='book_date' value='book_date'>Fetch</button><br/>
</div>
</center>
</form>
<table class = "table table-border">
<thead>
<tr>
<th>Sl.No</th>
<th>User</th>
<th>Filename</th>
</tr>
</thead>
<tbody>
{% for experiment in experiments %}
<tr>
<td>{{forloop.counter}}</td>
<td>{{experiment.slot.user.get_full_name}}</td>
<td><a href="{%url 'download_file' experiment.id %}">{{experiment.log}}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<script type="text/javascript">
var dateToday = new Date();
$(function(){
$(".datetimepicker").datetimepicker({
format:'Y-m-d',
maxDate: dateToday,
timepicker:false,
});
})
</script>
{% endblock %}
|