Добавил поиск
This commit is contained in:
56
web/templates/_WebCall.html
Normal file
56
web/templates/_WebCall.html
Normal file
@@ -0,0 +1,56 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='main.css') }}">
|
||||
<title>Lost Calls</title>
|
||||
</head>
|
||||
<header>
|
||||
<a href="/web/call/status/0">Входящий вызов принят</a>
|
||||
<a href="/web/call/status/1">Входящий вызов не принят</a>
|
||||
<a href="/web/call/status/2">Перезвонили</a>
|
||||
</header>
|
||||
|
||||
<form name="search" action="/web/call/find/" method="get">
|
||||
<label>Поиск</label>
|
||||
<input type="text" name="client" value="">
|
||||
<input type="submit" title="Найти">
|
||||
</form>
|
||||
|
||||
</script>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>Номер клиента</td>
|
||||
<!-- <td>Номер оператора</td> -->
|
||||
<td>Дата время события</td>
|
||||
<td>Ссылка на запись</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<body>
|
||||
{% for entry in call %}
|
||||
<tr>
|
||||
<!-- <td>{{ entry.client }}</td> -->
|
||||
{% if entry.important == True %}
|
||||
<td><font color="#C30000">{{ "%s %s %s %s"|format(entry.client[0:1], entry.client[1:4], entry.client[4:7], entry.client[7:11]) }}</font></td>
|
||||
{% else %}
|
||||
<td >{{ "%s %s %s %s"|format(entry.client[0:1], entry.client[1:4], entry.client[4:7], entry.client[7:11]) }}</td>
|
||||
{% endif %}
|
||||
<!-- <td>{{ entry.Operator }}</td> -->
|
||||
<td>{{ entry.time }}</td>
|
||||
<td>
|
||||
{% if entry.recordUrl|length > 1 %}
|
||||
<audio src="{{ entry.recordUrl }}" type="audio/mp3" preload="none" controls>Запись</audio>
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</body>
|
||||
</table>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user