Browse Source
Добавил к звонилке вкладку оставленных абонентских сообщений через автоответчик. И доделал аудио проигрыватель чтоб слушать записи
devel
Добавил к звонилке вкладку оставленных абонентских сообщений через автоответчик. И доделал аудио проигрыватель чтоб слушать записи
devel
8 changed files with 193 additions and 23 deletions
-
12dialing_app/locale/ru/LC_MESSAGES/django.po
-
10dialing_app/models.py
-
40dialing_app/templates/ext.html
-
26dialing_app/templates/index.html
-
57dialing_app/templates/vmail.html
-
3dialing_app/urls.py
-
15dialing_app/views.py
-
53static/js/my.js
@ -0,0 +1,40 @@ |
|||||
|
{% extends request.is_ajax|yesno:'bajax.html,base.html' %} |
||||
|
{% load i18n %} |
||||
|
{% block main %} |
||||
|
|
||||
|
<ol class="breadcrumb"> |
||||
|
<li><span class="glyphicon glyphicon-home"></span></li> |
||||
|
<li class="active">{% trans 'Last calls' %}</li> |
||||
|
</ol> |
||||
|
|
||||
|
{% include 'message_block.html' %} |
||||
|
|
||||
|
<div class="page-header"> |
||||
|
<h3>{{ title }}</h3> |
||||
|
</div> |
||||
|
|
||||
|
<ul class="nav nav-tabs"> |
||||
|
|
||||
|
{% url 'dialapp:home' as dialhome %} |
||||
|
<li{% if dialhome == request.path %} class="active"{% endif %}> |
||||
|
<a href="{{ dialhome }}"> |
||||
|
{% trans 'Last calls' %} |
||||
|
</a> |
||||
|
</li> |
||||
|
|
||||
|
{% url 'dialapp:vmail' as dialmail %} |
||||
|
<li{% if dialmail == request.path %} class="active"{% endif %}> |
||||
|
<a href="{{ dialmail }}"> |
||||
|
{% trans 'Voice mail' %} |
||||
|
</a> |
||||
|
</li> |
||||
|
|
||||
|
</ul> |
||||
|
|
||||
|
<div class="tab-content"> |
||||
|
<div class="tab-pane active"> |
||||
|
{% block content %}{% endblock %} |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
{% endblock %} |
||||
@ -0,0 +1,57 @@ |
|||||
|
{% extends request.is_ajax|yesno:'nullcont.htm,ext.html' %} |
||||
|
{% load i18n %} |
||||
|
{% load telephone_filters %} |
||||
|
{% block content %} |
||||
|
|
||||
|
<div class="table-responsive"> |
||||
|
<table class="table table-striped table-bordered"> |
||||
|
<thead> |
||||
|
<tr> |
||||
|
<th>{% trans 'Play' %}</th> |
||||
|
<th>{% trans 'calldate' %}</th> |
||||
|
<th>{% trans 'src' %}</th> |
||||
|
<th>{% trans 'Type' %}</th> |
||||
|
<th>{% trans 'duration' %}</th> |
||||
|
<th>{% trans 'start' %}</th> |
||||
|
<th>{% trans 'answer' %}</th> |
||||
|
<th>{% trans 'end' %}</th> |
||||
|
<th>{% trans 'disposition' %}</th> |
||||
|
</tr> |
||||
|
</thead> |
||||
|
<tbody> |
||||
|
{% for vmail in vmessages %} |
||||
|
<tr> |
||||
|
<td class="btn-group btn-group-sm"> |
||||
|
<button class="btn btn-default player-btn disabled"> |
||||
|
<span class="glyphicon glyphicon-play"></span> |
||||
|
<audio preload="metadata" src="{{ vmail.path_to_media }}/{{ vmail.calldate|date:"YmdHi" }}-{{ vmail.src }}-{{ vmail.dst }}.wav"></audio> |
||||
|
</button> |
||||
|
<a href="{{ vmail.path_to_media }}/{{ vmail.calldate|date:"YmdHi" }}-{{ vmail.src }}-{{ vmail.dst }}.wav" class="btn btn-default disabled" target="_blank"> |
||||
|
<span class="glyphicon glyphicon-download-alt"></span> |
||||
|
</a> |
||||
|
</td> |
||||
|
<td>{{ vmail.calldate|date:'d E Y, H:i:s' }}</td> |
||||
|
<td>{{ vmail.src|abon_if_telephone|safe }}</td> |
||||
|
<td> |
||||
|
{% if vmail.userfield == 'request' %}{% trans 'Request' %} |
||||
|
{% elif vmail.userfield == 'report' %}{% trans 'Report' %} |
||||
|
{% else %}{{ vmail.userfield }}{% endif %} |
||||
|
</td> |
||||
|
<td>{{ vmail.duration }}</td> |
||||
|
<td>{{ vmail.start|date:'d E Y, H:i:s' }}</td> |
||||
|
<td>{{ vmail.answer|date:'d E Y, H:i:s' }}</td> |
||||
|
<td>{{ vmail.end|date:'d E Y, H:i:s' }}</td> |
||||
|
<td>{{ vmail.locate_disposition }}</td> |
||||
|
</tr> |
||||
|
{% empty %} |
||||
|
<tr> |
||||
|
<td colspan="9">{% trans 'Calls was not found' %}</td> |
||||
|
</tr> |
||||
|
{% endfor %} |
||||
|
</tbody> |
||||
|
</table> |
||||
|
</div> |
||||
|
|
||||
|
{% include 'toolbar_page.html' with pag=vmessages %} |
||||
|
|
||||
|
{% endblock %} |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue