71 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			71 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
<!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>
 | 
						|
    <a href="/web/call/status/4">Перезвонили безуспешно</a>
 | 
						|
    <p>
 | 
						|
    <form name="search" action="/web/call/find/" method="get" class="search">
 | 
						|
        <label class="search_label">Поиск</label>
 | 
						|
        <input class="search_text" type="text" name="client">
 | 
						|
        <input class="search_btn" type="submit" title="Найти">
 | 
						|
    </form>
 | 
						|
    </p>
 | 
						|
</header>
 | 
						|
<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.status == 0 %}
 | 
						|
                Вызов принят
 | 
						|
                {% elif entry.status == 1 %}
 | 
						|
                Вызов не принят
 | 
						|
                {% elif entry.status == 2 %}
 | 
						|
                Перезвонили
 | 
						|
                {% elif entry.status == 2 %}
 | 
						|
                Абонент не взял трубку
 | 
						|
                {% elif entry.status == 9 %}
 | 
						|
                Абонент заблокирован
 | 
						|
                {% endif %}
 | 
						|
            </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> |