Skip to content

Commit

Permalink
feat(ZMS-1629): merge into test
Browse files Browse the repository at this point in the history
  • Loading branch information
manjencic committed Dec 21, 2023
2 parents a1d5af2 + 0f0a469 commit 9ceba70
Show file tree
Hide file tree
Showing 28 changed files with 94 additions and 45 deletions.
7 changes: 4 additions & 3 deletions zmsadmin/js/block/calldisplay/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,10 @@ class CallDisplayConfigView extends Component {
{ name: '4-8 Aufrufe, nur Zahlen | Tür', value: 'rawdoor4-8' },
{ name: '6-18 Aufrufe | Tür', value: 'raw18door' },
{ name: '6-18 Aufrufe | Platz', value: 'raw18platz' },
{ name: '10 Aufrufe | Platz', value: 'default_platz' },
{ name: '10 Aufrufe | Tür', value: 'default_tuer' },
{ name: '10 Aufrufe | Raum', value: 'default_raum' }
{ name: '10 Aufrufe | Schalter (engl. counter)', value: 'default_counter' },
{ 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' }
]}
value={this.state.template}
onChange={onTemplateStatusChange} />
Expand Down
2 changes: 1 addition & 1 deletion zmsadmin/public/_js/reactcomponents.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion zmsadmin/public/_js/reactcomponents.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions zmsadmin/templates/block/scope/form.twig
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,7 @@
"parameter": {
"name": "preferences[queue][callDisplayText]",
"id": "aufrufanzeigetext",
"maxlength": 120,
"value": scope.preferences.queue.callDisplayText|default('Herzlich Willkommen'),
}
}]
Expand Down
2 changes: 1 addition & 1 deletion zmscalldisplay/public/_css/calldisplay.css.map

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion zmscalldisplay/public/_js/index.js.map

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
15 changes: 8 additions & 7 deletions zmscalldisplay/scss/block/aufrufanzeige.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
.aufrufanzeige .wartende_aktuell
{
font-size:2.4em;
font-family: Arial, sans-serif;
font-family: Roboto Condensed, Arial, sans-serif;
font-weight:bold;
text-align:center;
width:275px;
Expand All @@ -54,7 +54,7 @@
.aufrufanzeige .wartende_aktuell #wartende
{
font-size:52px;
font-family: Arial, sans-serif;
font-family: Roboto Condensed, Arial, sans-serif;
font-weight:bold;
margin-top:3px;
background:$white;
Expand All @@ -63,7 +63,7 @@
.aufrufanzeige .wartezeit_aktuell
{
font-size:2.4em;
font-family: Arial, sans-serif;
font-family: Roboto Condensed, Arial, sans-serif;
font-weight:bold;
text-align:center;
width:275px;
Expand All @@ -76,7 +76,7 @@
.aufrufanzeige .wartezeit_aktuell #wartezeit
{
font-size:35px;
font-family: Arial, sans-serif;
font-family: Roboto Condensed, Arial, sans-serif;
font-weight:bold;
margin-top:3px;
background:$backgroundLight;
Expand All @@ -100,7 +100,7 @@
.aufrufanzeige .aufrufanzeige_Datum
{
font-size:24px;
font-family: Arial, sans-serif;
font-family: Roboto Condensed, Arial, sans-serif;
font-weight:bold;
position:absolute;
text-align:center;
Expand All @@ -117,7 +117,7 @@
.aufrufanzeige .aufrufanzeige_text
{
font-size:2em;
font-family: Arial, sans-serif;
font-family: Roboto Condensed, Arial, sans-serif;
font-weight:normal;
line-height:26px;
padding: 18px 0 0 6px;
Expand All @@ -135,7 +135,8 @@
.aufrufanzeige .infotext
{
top: 77px;
position: absolute;
left: 0;
position: fixed;
padding: 10px 40px;
font-size:2em;
font-weight:normal;
Expand Down
4 changes: 2 additions & 2 deletions zmscalldisplay/scss/block/tabellen.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ div.aufrufanzeige_anzeigebereich_zweizeilig
border-top: 3px solid $borderLight;
color: $white;
font-size: 36px;
font-family: Arial, sans-serif;
font-family: Roboto Condensed, Arial, sans-serif;
font-weight: bold;
line-height: 45px;
text-align:center;
Expand All @@ -55,7 +55,7 @@ div.aufrufanzeige_anzeigebereich_zweizeilig
border-top: 3px solid $borderLight;
/*font-size: 70px;
line-height: 108px;*/
font-family: Arial, sans-serif;
font-family: Roboto Condensed, Arial, sans-serif;
font-weight: bold;
text-align: left;
padding:8px 0px;
Expand Down
2 changes: 1 addition & 1 deletion zmscalldisplay/scss/settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $pageMaxHeight: 1080px;
$contentMaxWidth: 800px;

// Fonts
$base-font-family: Arial, sans-serif;
$base-font-family: Roboto Condensed, Arial, sans-serif;
$base-font-size: 10px;

$alert-font-size: 12px;
Expand Down
3 changes: 2 additions & 1 deletion zmscalldisplay/src/Zmscalldisplay/Queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ public function readResponse(
$response,
'block/queue/queueTable.twig',
array(
'text' => 'asdsadsa',
'tableSettings' => $validator->getParameter('tableLayout')->isArray()->getValue(),
'calldisplay' => $calldisplay->getEntity(false),
'calldisplay' => $calldisplay->getEntity(true),
'scope' => $calldisplay->getSingleScope(),
'queueList' => $queueList
)
Expand Down
19 changes: 19 additions & 0 deletions zmscalldisplay/templates/block/default/head.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,24 @@
<meta charset="UTF-8" />
<link rel="stylesheet" type="text/css" href="{{ includeUrl() }}/_css/calldisplay.css?version={{ currentVersion() }}">

<style>
@font-face {
font-family: Roboto Condensed;
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("./fonts/roboto-condensed/roboto-condensed-v19-latin-regular.tff");
src: local(""), url("./fonts/roboto-condensed/roboto-condensed-v19-latin-regular.tff?=#iefix") format("embedded-opentype"), url("./fonts/roboto-condensed/roboto-condensed-v19-latin-regular.woff2") format("woff2"), url("./fonts/roboto-condensed/roboto-condensed-v19-latin-regular.woff") format("woff"), url("./fonts/roboto-condensed/roboto-condensed-v19-latin-regular.ttf") format("truetype"), url("./fonts/roboto-condensed/roboto-condensed-v19-latin-regular.svg#RobotoCondensed") format("svg")
}
@font-face {
font-family: Roboto Condensed;
font-style: normal;
font-weight: 700;
font-display: swap;
src: url("./fonts/roboto-condensed/roboto-condensed-v19-latin-700.tff");
src: local(""), url("./fonts/roboto-condensed/roboto-condensed-v19-latin-700.tff?=#iefix") format("embedded-opentype"), url("./fonts/roboto-condensed/roboto-condensed-v19-latin-700.woff2") format("woff2"), url("./fonts/roboto-condensed/roboto-condensed-v19-latin-700.woff") format("woff"), url("./fonts/roboto-condensed/roboto-condensed-v19-latin-700.ttf") format("truetype"), url("./fonts/roboto-condensed/roboto-condensed-v19-latin-700.svg#RobotoCondensed") format("svg")
}
</style>
</head>
{% endblock %}
14 changes: 14 additions & 0 deletions zmscalldisplay/templates/block/queue/queueTable.twig
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
{% set text = '' %}
{% if calldisplay.clusters|length == 1 and calldisplay.clusters|first.callDisplayText %}
{% set text = calldisplay.clusters|first.callDisplayText|raw|nl2br %}
{% elseif calldisplay.scopes|length == 1 and calldisplay.scopes|first.preferences.queue.callDisplayText%}
{% set text = calldisplay.scopes|first.preferences.queue.callDisplayText|raw|nl2br %}
{% endif %}

{% if text %}
<div class="infotext">
<span id="infoicon"></span>
<div class="infotext-content">{{ text }}</div>
</div>
{% endif %}

{% block queueTable %}
{% if tableSettings.multiColumns == 1 %}
{% include "block/queue/table/oneColumn.twig" with {"settings": tableSettings} %}
Expand Down
11 changes: 1 addition & 10 deletions zmscalldisplay/templates/element/queueTable/leftCol.twig
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<td class="rechterRand wartenummer" data-callTime="{{ queue.callTime }}">
<div class="highlight {{ queue.status }}">
{% if queue.withAppointment %}
{% if queue.number|length == 7 %}
{% set addClass = " smallerFont7Chars" %}
{% elseif queue.number|length == 8 %}
{% set addClass = " smallerFont8Chars" %}
{% endif %}
<span class="terminkundennummer{{ addClass }}" data-appointment="{{ queue.number }}" data-status="{{ queue.status }}">{{ queue.number }}</span>
{% else %}
<span class="wartenummer" data-appointment="{{ queue.number }}" data-status="{{ queue.status }}">{{ queue.number }}</span>
{% endif %}
<span class="terminkundennummer" data-appointment="{{ queue.number }}" data-status="{{ queue.status }}">{{ queue.number }}</span>
</div>
</td>
4 changes: 0 additions & 4 deletions zmscalldisplay/templates/layout/main.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% use "block/default/head.twig" %}
{% use "block/default/devhint.twig" %}
{% use "block/header/pageheader.twig" %}
{% use "block/footer/footer.twig" %}

Expand All @@ -10,9 +9,6 @@
{% endblock %}
<body class="hiddencursor locale_{{ currentLang() }}{% block customizedClass %}{% endblock %}" id="{% block pageid %}{% endblock %}" type="{% block pagetype %}{% endblock %}">
{% if getSystemStatus('ZMS_ENV') in ["dev", "stage"] %}
{% block devhint %}
{{ parent() }}
{% endblock %}
{% endif %}
{% block pageheader %}
{{ parent() }}
Expand Down
13 changes: 0 additions & 13 deletions zmscalldisplay/templates/page/customized/base.twig
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,6 @@
</div>
</div>
{% endif %}
{% set text = '' %}
{% if calldisplay.clusters|length == 1 and calldisplay.clusters|first.callDisplayText %}
{% set text = calldisplay.clusters|first.callDisplayText|raw|nl2br %}
{% elseif calldisplay.scopes|length == 1 and calldisplay.scopes|first.preferences.queue.callDisplayText%}
{% set text = calldisplay.scopes|first.preferences.queue.callDisplayText|raw|nl2br %}
{% endif %}

{% if text %}
<div class="infotext">
<span id="infoicon"></span>
<div class="infotext-content">{{ text }}</div>
</div>
{% endif %}
<div class="aufrufanzeige_main{% if skipAll %} aufrufanzeige_full{% endif %}">
{% block messages %}
{% include "block/messages/messages.twig" %}
Expand Down
38 changes: 38 additions & 0 deletions zmscalldisplay/templates/page/customized/default_counter.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 = 'Schalter';
window.bo.zmscalldisplay.tableLayout.head.right_en = 'Counter';
// 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 9ceba70

Please sign in to comment.