diff options
author | CruiseDevice | 2018-10-24 16:55:02 +0530 |
---|---|---|
committer | CruiseDevice | 2018-10-24 16:55:02 +0530 |
commit | 841289742d6c89b8a2eb30cea721f46b2389b862 (patch) | |
tree | 7e054353b721d0907b6afac957d65a03876d73c9 /sbhs/templates/dashboard/fetch_logs.html | |
parent | 794aa51ff511a53623592dd6e72918099e2167ad (diff) | |
download | sbhs_server-841289742d6c89b8a2eb30cea721f46b2389b862.tar.gz sbhs_server-841289742d6c89b8a2eb30cea721f46b2389b862.tar.bz2 sbhs_server-841289742d6c89b8a2eb30cea721f46b2389b862.zip |
Sbhs templates
Diffstat (limited to 'sbhs/templates/dashboard/fetch_logs.html')
-rw-r--r-- | sbhs/templates/dashboard/fetch_logs.html | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/sbhs/templates/dashboard/fetch_logs.html b/sbhs/templates/dashboard/fetch_logs.html new file mode 100644 index 0000000..8f870c5 --- /dev/null +++ b/sbhs/templates/dashboard/fetch_logs.html @@ -0,0 +1,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 %}
\ No newline at end of file |