128 lines
		
	
	
		
			4.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			128 lines
		
	
	
		
			4.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
<!DOCTYPE html>
 | 
						|
<html lang="ru">
 | 
						|
 | 
						|
<head>
 | 
						|
    <meta charset="UTF-8">
 | 
						|
    <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>Перезвонили безуспешно</title>
 | 
						|
</head>
 | 
						|
 | 
						|
<style type="text/css" media="screen">
 | 
						|
    table {
 | 
						|
        width: 100%;
 | 
						|
        margin-bottom: 20px;
 | 
						|
        border: 5px solid #fff;
 | 
						|
        border-top: 5px solid #fff;
 | 
						|
        border-bottom: 3px solid #fff;
 | 
						|
        border-collapse: collapse;
 | 
						|
        outline: 3px solid #ffd300;
 | 
						|
        font-size: 15px;
 | 
						|
        background: #fff !important;
 | 
						|
        font-family: Verdana, Geneva, Tahoma, sans-serif;
 | 
						|
    }
 | 
						|
 | 
						|
    table th {
 | 
						|
        font-weight: bold;
 | 
						|
        padding: 7px;
 | 
						|
        background: #ffd300;
 | 
						|
        border: none;
 | 
						|
        text-align: left;
 | 
						|
        font-size: 15px;
 | 
						|
        border-top: 3px solid #fff;
 | 
						|
        border-bottom: 3px solid #ffd300;
 | 
						|
    }
 | 
						|
 | 
						|
    table td {
 | 
						|
        padding: 7px;
 | 
						|
        border: none;
 | 
						|
        border-top: 3px solid #fff;
 | 
						|
        border-bottom: 3px solid #fff;
 | 
						|
        font-size: 15px;
 | 
						|
    }
 | 
						|
 | 
						|
    table tbody tr:nth-child(even) {
 | 
						|
        background: #f8f8f8 !important;
 | 
						|
    }
 | 
						|
 | 
						|
    a {
 | 
						|
        font-size: large;
 | 
						|
        font-family: Verdana, Geneva, Tahoma, sans-serif;
 | 
						|
        color: chocolate;
 | 
						|
        padding-right: 50px;
 | 
						|
    }
 | 
						|
 | 
						|
    header {
 | 
						|
        height: 50px;
 | 
						|
        vertical-align: middle;
 | 
						|
    }
 | 
						|
 | 
						|
    form {
 | 
						|
        height: 40px;
 | 
						|
    }
 | 
						|
</style>
 | 
						|
 | 
						|
<body>
 | 
						|
    <div>
 | 
						|
        <a href="/answer">Входящий вызов принят</a>
 | 
						|
        <a href="/notanswer">Входящий вызов не принят</a>
 | 
						|
        <a href="/truerecall">Перезвонили успешно</a>
 | 
						|
        <a href="/falserecall">Перезвонили безуспешно</a>
 | 
						|
    </div>
 | 
						|
    <!-- <div>
 | 
						|
        <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>
 | 
						|
    </div> -->
 | 
						|
    <table>
 | 
						|
        <thead>
 | 
						|
            <tr>
 | 
						|
                <th>Номер клиента</th>
 | 
						|
                <th>Кол-во попыток</th>
 | 
						|
                <th>Дата и время</th>
 | 
						|
                <th>Продолжительность</th>
 | 
						|
                <th>Оператор</th>
 | 
						|
                <th>Запись</th>
 | 
						|
                <th>Действие</th>
 | 
						|
            </tr>
 | 
						|
        </thead>
 | 
						|
        <tbody>
 | 
						|
            {% for c in call %}
 | 
						|
            <tr>
 | 
						|
                {% if c.mkt_phone == "83912051045": %}
 | 
						|
                <td>
 | 
						|
                    <font color="#C30000">{{ "%s %s %s %s"|format(c.client[0:1], c.client[1:4], c.client[4:7],
 | 
						|
                        c.client[7:11]) }}</font>
 | 
						|
                </td>
 | 
						|
                {% else %}
 | 
						|
                <td>{{ "%s %s %s %s"|format(c.client[0:1], c.client[1:4], c.client[4:7], c.client[7:11]) }}</td>
 | 
						|
                {% endif %}
 | 
						|
                <td>{{ c.count_try }}</td>
 | 
						|
                <td>{{ c.time }}</td>
 | 
						|
                <td>{{ c.answered_duration // 60 }}:{{ "{:02}".format(c.answered_duration % 60) }}</td>
 | 
						|
                <td>{{ c.operator }}</td>
 | 
						|
                <td>
 | 
						|
                    {% if c.has_record == true: %}
 | 
						|
                    <audio src="{{ c.record_url }}" type="audio/mp3" preload="none" controls>Запись</audio>
 | 
						|
                    {% else %}
 | 
						|
                    Отсутствует
 | 
						|
                    {% endif %}
 | 
						|
                <td style="vertical-align: middle;">
 | 
						|
                    <div>
 | 
						|
                        <form action="/api/v1/call/set/" method="post" style="border: 0;">
 | 
						|
                            <input type="hidden" name="uuid" value="{{ c.uuid }}" />
 | 
						|
                            <input type="hidden" name="act" value="delete" />
 | 
						|
                            <input type="submit" value="Удалить" style="background-color: firebrick; color: #f8f8f8;" />
 | 
						|
                        </form>
 | 
						|
                    </div>
 | 
						|
                </td>
 | 
						|
                </td>
 | 
						|
            </tr>
 | 
						|
            {% endfor %}
 | 
						|
        </tbody>
 | 
						|
    </table>
 | 
						|
</body>
 | 
						|
 | 
						|
</html> |