phone: display an informational message when no phoneline are set

This commit is contained in:
Frédéric Péters 2015-11-03 17:33:07 +01:00
parent e78ec2f38e
commit 18d7e78807
2 changed files with 15 additions and 0 deletions

View File

@ -20,6 +20,17 @@
</div>
<div id="source-mainarea" data-current-calls="{% url 'phone-current-calls' %}">
{% if not phonelines|length %}
<div class="big-msg-info">
{% blocktrans %}
You do not have a phoneline configured yet; please enter your identifier in
the "Take Phone Line" form on the left.
{% endblocktrans %}
</div>
{% endif %}
{% for phonecall in phonecalls %}
<div class="phonecall active" data-source-pk="{{phonecall.id}}">
<h1>{% trans 'Current Call:' %} <strong>{{phonecall.caller}}</strong></h1>

View File

@ -471,3 +471,7 @@ div#takephone button {
position: relative;
top: -3px;
}
div#source-mainarea div.big-msg-info {
margin-left: 0;
}