Skip to content

Commit

Permalink
Merge pull request #625 from it-at-m/bugfix-zms-3166-fix-ekiosk-refresh
Browse files Browse the repository at this point in the history
Bugfix zms 3166 fix ekiosk refresh
  • Loading branch information
manjencic authored Oct 9, 2024
2 parents 9cff0bd + 8ecd995 commit c08913e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zmsticketprinter/src/Zmsticketprinter/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,13 @@ public function readResponse(
}
$template = (new Helper\TemplateFinder($defaultTemplate->getValue()))
->setCustomizedTemplate($ticketprinter, $organisation);

return Render::withHtml(
$response,
$template->getTemplate(),
array(
'debug' => \App::DEBUG,
'refreshInSeconds' => 30,
'enabled' => $ticketprinter->isEnabled()
|| !$organisation->getPreference('ticketPrinterProtectionEnabled'),
'title' => 'Wartennumer ziehen',
Expand Down
3 changes: 3 additions & 0 deletions zmsticketprinter/templates/block/default/head.twig
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
<meta title="{% trans %}Anmeldung an Warteschlange{% endtrans %}">
<meta name="robots" content="NOINDEX NOFOLLOW">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
{% if refreshInSeconds %}
<meta http-equiv="refresh" content="{{ refreshInSeconds }}" />
{% endif %}
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8" />
<link rel="stylesheet" type="text/css" href="{{ includeUrl() }}/_css/ticketprinter.css">
Expand Down

0 comments on commit c08913e

Please sign in to comment.