Skip to content

Commit

Permalink
feat(ZMS-3401): added new calldisplay layouts (#714)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabinatix97 authored Dec 6, 2024
1 parent bfac3c6 commit 25b8597
Show file tree
Hide file tree
Showing 7 changed files with 232 additions and 1 deletion.
5 changes: 4 additions & 1 deletion zmsadmin/js/block/calldisplay/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,14 +337,17 @@ class CallDisplayConfigView extends Component {
{ name: '10 Aufrufe | Platz (engl. site)', value: 'default_platz' },
{ name: '10 Aufrufe | Tür (engl. door)', value: 'default_tuer' },
{ name: '10 Aufrufe | Raum (engl. room)', value: 'default_raum' },
{ name: '10 Aufrufe | Tisch (engl. desk)', value: 'default_tisch' },
{ name: '8 Aufrufe | Schalter (engl. counter)', value: 'default_counter8' },
{ name: '8 Aufrufe | Platz (engl. site)', value: 'default_platz8' },
{ name: '8 Aufrufe | Tür (engl. door)', value: 'default_tuer8' },
{ name: '8 Aufrufe | Raum (engl. room)', value: 'default_raum8' },
{ name: '8 Aufrufe | Tisch (engl. desk)', value: 'default_tisch8' },
{ name: '6 Aufrufe | Schalter (engl. counter)', value: 'default_counter6' },
{ name: '6 Aufrufe | Platz (engl. site)', value: 'default_platz6' },
{ name: '6 Aufrufe | Tür (engl. door)', value: 'default_tuer6' },
{ name: '6 Aufrufe | Raum (engl. room)', value: 'default_raum6' }
{ name: '6 Aufrufe | Raum (engl. room)', value: 'default_raum6' },
{ name: '6 Aufrufe | Tisch (engl. desk)', value: 'default_tisch6' }
]}
value={this.state.template}
onChange={onTemplateStatusChange} />
Expand Down
38 changes: 38 additions & 0 deletions zmscalldisplay/custom_templates/page/customized/default_tisch.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{% extends "page/customized/base.twig" %}

{% block content %}
{% set skipAll = 1 %}
{% set skipClock = 0 %}
{% set skipClients = 0 %}
{% set skipTime = 0 %}
{{ parent() }}
{% endblock %}

{% block tableLayoutSettings %}
<script type="text/javascript">
// Allow multiple columns
window.bo.zmscalldisplay.tableLayout.multiColumns = 2;
// Maximum rows per column
window.bo.zmscalldisplay.tableLayout.maxResults = 10;
// Label on left side of table
window.bo.zmscalldisplay.tableLayout.head.left = 'Nummer';
window.bo.zmscalldisplay.tableLayout.head.left_en = 'Number';
// Label on right side of table
window.bo.zmscalldisplay.tableLayout.head.right = 'Tisch';
window.bo.zmscalldisplay.tableLayout.head.right_en = 'Desk';
// Time in seconds to show a new number highlighted
window.bo.zmscalldisplay.queue.timeUntilOld = 60;
// Time in seconds to reload waiting info
window.bo.zmscalldisplay.queue.timeWaitingInfo = 20;
// called=ohne Abholer; pickup=nur Abholer
//window.bo.zmscalldisplay.queue.status = 'called';
// On true show "123" instead of "123a" for room/place
window.bo.zmscalldisplay.queue.showOnlyNumeric = false;
// Seconds to reload table
window.bo.zmscalldisplay.reloadInterval = 5;
{% if displayNumber %}
window.bo.zmscalldisplay.display = {{ displayNumber }};
{% endif %}
</script>
{% endblock %}

Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{% extends "page/customized/base.twig" %}

{% block content %}
{% set skipAll = 1 %}
{% set skipClock = 0 %}
{% set skipClients = 0 %}
{% set skipTime = 0 %}
{{ parent() }}
{% endblock %}

{% block tableLayoutSettings %}
<script type="text/javascript">
// Allow multiple columns
window.bo.zmscalldisplay.tableLayout.multiColumns = 2;
// Maximum rows per column
window.bo.zmscalldisplay.tableLayout.maxResults = 6;
// Label on left side of table
window.bo.zmscalldisplay.tableLayout.head.left = 'Nummer';
window.bo.zmscalldisplay.tableLayout.head.left_en = 'Number';
// Label on right side of table
window.bo.zmscalldisplay.tableLayout.head.right = 'Tisch';
window.bo.zmscalldisplay.tableLayout.head.right_en = 'Desk';
// Time in seconds to show a new number highlighted
window.bo.zmscalldisplay.queue.timeUntilOld = 60;
// Time in seconds to reload waiting info
window.bo.zmscalldisplay.queue.timeWaitingInfo = 20;
// called=ohne Abholer; pickup=nur Abholer
//window.bo.zmscalldisplay.queue.status = 'called';
// On true show "123" instead of "123a" for room/place
window.bo.zmscalldisplay.queue.showOnlyNumeric = false;
// Seconds to reload table
window.bo.zmscalldisplay.reloadInterval = 5;
{% if displayNumber %}
window.bo.zmscalldisplay.display = {{ displayNumber }};
{% endif %}
</script>
{% endblock %}

Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{% extends "page/customized/base.twig" %}

{% block content %}
{% set skipAll = 1 %}
{% set skipClock = 0 %}
{% set skipClients = 0 %}
{% set skipTime = 0 %}
{{ parent() }}
{% endblock %}

{% block tableLayoutSettings %}
<script type="text/javascript">
// Allow multiple columns
window.bo.zmscalldisplay.tableLayout.multiColumns = 2;
// Maximum rows per column
window.bo.zmscalldisplay.tableLayout.maxResults = 8;
// Label on left side of table
window.bo.zmscalldisplay.tableLayout.head.left = 'Nummer';
window.bo.zmscalldisplay.tableLayout.head.left_en = 'Number';
// Label on right side of table
window.bo.zmscalldisplay.tableLayout.head.right = 'Tisch';
window.bo.zmscalldisplay.tableLayout.head.right_en = 'Desk';
// Time in seconds to show a new number highlighted
window.bo.zmscalldisplay.queue.timeUntilOld = 60;
// Time in seconds to reload waiting info
window.bo.zmscalldisplay.queue.timeWaitingInfo = 20;
// called=ohne Abholer; pickup=nur Abholer
//window.bo.zmscalldisplay.queue.status = 'called';
// On true show "123" instead of "123a" for room/place
window.bo.zmscalldisplay.queue.showOnlyNumeric = false;
// Seconds to reload table
window.bo.zmscalldisplay.reloadInterval = 5;
{% if displayNumber %}
window.bo.zmscalldisplay.display = {{ displayNumber }};
{% endif %}
</script>
{% endblock %}

38 changes: 38 additions & 0 deletions zmscalldisplay/templates/page/customized/default_tisch.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{% extends "page/customized/base.twig" %}

{% block content %}
{% set skipAll = 1 %}
{% set skipClock = 0 %}
{% set skipClients = 0 %}
{% set skipTime = 0 %}
{{ parent() }}
{% endblock %}

{% block tableLayoutSettings %}
<script type="text/javascript">
// Allow multiple columns
window.bo.zmscalldisplay.tableLayout.multiColumns = 2;
// Maximum rows per column
window.bo.zmscalldisplay.tableLayout.maxResults = 10;
// Label on left side of table
window.bo.zmscalldisplay.tableLayout.head.left = 'Nummer';
window.bo.zmscalldisplay.tableLayout.head.left_en = 'Number';
// Label on right side of table
window.bo.zmscalldisplay.tableLayout.head.right = 'Tisch';
window.bo.zmscalldisplay.tableLayout.head.right_en = 'Desk';
// Time in seconds to show a new number highlighted
window.bo.zmscalldisplay.queue.timeUntilOld = 60;
// Time in seconds to reload waiting info
window.bo.zmscalldisplay.queue.timeWaitingInfo = 20;
// called=ohne Abholer; pickup=nur Abholer
//window.bo.zmscalldisplay.queue.status = 'called';
// On true show "123" instead of "123a" for room/place
window.bo.zmscalldisplay.queue.showOnlyNumeric = false;
// Seconds to reload table
window.bo.zmscalldisplay.reloadInterval = 5;
{% if displayNumber %}
window.bo.zmscalldisplay.display = {{ displayNumber }};
{% endif %}
</script>
{% endblock %}

38 changes: 38 additions & 0 deletions zmscalldisplay/templates/page/customized/default_tisch6.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{% extends "page/customized/base.twig" %}

{% block content %}
{% set skipAll = 1 %}
{% set skipClock = 0 %}
{% set skipClients = 0 %}
{% set skipTime = 0 %}
{{ parent() }}
{% endblock %}

{% block tableLayoutSettings %}
<script type="text/javascript">
// Allow multiple columns
window.bo.zmscalldisplay.tableLayout.multiColumns = 2;
// Maximum rows per column
window.bo.zmscalldisplay.tableLayout.maxResults = 6;
// Label on left side of table
window.bo.zmscalldisplay.tableLayout.head.left = 'Nummer';
window.bo.zmscalldisplay.tableLayout.head.left_en = 'Number';
// Label on right side of table
window.bo.zmscalldisplay.tableLayout.head.right = 'Tisch';
window.bo.zmscalldisplay.tableLayout.head.right_en = 'Desk';
// Time in seconds to show a new number highlighted
window.bo.zmscalldisplay.queue.timeUntilOld = 60;
// Time in seconds to reload waiting info
window.bo.zmscalldisplay.queue.timeWaitingInfo = 20;
// called=ohne Abholer; pickup=nur Abholer
//window.bo.zmscalldisplay.queue.status = 'called';
// On true show "123" instead of "123a" for room/place
window.bo.zmscalldisplay.queue.showOnlyNumeric = false;
// Seconds to reload table
window.bo.zmscalldisplay.reloadInterval = 5;
{% if displayNumber %}
window.bo.zmscalldisplay.display = {{ displayNumber }};
{% endif %}
</script>
{% endblock %}

38 changes: 38 additions & 0 deletions zmscalldisplay/templates/page/customized/default_tisch8.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{% extends "page/customized/base.twig" %}

{% block content %}
{% set skipAll = 1 %}
{% set skipClock = 0 %}
{% set skipClients = 0 %}
{% set skipTime = 0 %}
{{ parent() }}
{% endblock %}

{% block tableLayoutSettings %}
<script type="text/javascript">
// Allow multiple columns
window.bo.zmscalldisplay.tableLayout.multiColumns = 2;
// Maximum rows per column
window.bo.zmscalldisplay.tableLayout.maxResults = 8;
// Label on left side of table
window.bo.zmscalldisplay.tableLayout.head.left = 'Nummer';
window.bo.zmscalldisplay.tableLayout.head.left_en = 'Number';
// Label on right side of table
window.bo.zmscalldisplay.tableLayout.head.right = 'Tisch';
window.bo.zmscalldisplay.tableLayout.head.right_en = 'Desk';
// Time in seconds to show a new number highlighted
window.bo.zmscalldisplay.queue.timeUntilOld = 60;
// Time in seconds to reload waiting info
window.bo.zmscalldisplay.queue.timeWaitingInfo = 20;
// called=ohne Abholer; pickup=nur Abholer
//window.bo.zmscalldisplay.queue.status = 'called';
// On true show "123" instead of "123a" for room/place
window.bo.zmscalldisplay.queue.showOnlyNumeric = false;
// Seconds to reload table
window.bo.zmscalldisplay.reloadInterval = 5;
{% if displayNumber %}
window.bo.zmscalldisplay.display = {{ displayNumber }};
{% endif %}
</script>
{% endblock %}

0 comments on commit 25b8597

Please sign in to comment.