Changed history display method

This commit is contained in:
Davide Bongiovanni
2016-11-02 09:45:16 +01:00
parent b8bff45bec
commit af95bfa4d3
8 changed files with 1132 additions and 26 deletions
+17
View File
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>History</title>
<link rel="stylesheet" type="text/css" href="static/style.css">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400" rel="stylesheet">
<script
src="http://code.jquery.com/jquery-3.1.1.js"
integrity="sha256-16cdPddA6VdVInumRGo6IbivbERE8p7CQR3HzTBuELA="
crossorigin="anonymous"></script>
<script type="text/javascript" src="static/history_script.js"></script>
</head>
<body>
<input type="text" name="search" class="search-bar">
</body>
</html>
+3 -13
View File
@@ -13,19 +13,9 @@
</head>
<body>
<div class="recent">
<div class="history-header">History</div>
{% for event in events %}
<div class="event" card-id="{{event.cardID}}">
<div class="time">{{event.time}}</div>
<div class="name">
{% if event.name == "" %}
<span class="unknown_card">{{event.cardID}}</span>
{% else %}
{{event.name}}
{% endif %}
</div>
</div>
{% endfor %}
<div class="history-header">History</div><br>
<input type="text" name="search-bar" class="search-bar" placeholder="Search">
</div>
<div class="everything-else">
<h1>Card access manager</h1>