{% extends '@Kiosk/layout.html.twig' %} {% import "macros/widgets.html.twig" as widgets %} {% block login_box_msg %} {% if stopped is not null %}

{{ 'kiosk.status_stopped'|trans }}

{% else %}

{{ 'kiosk.status_started'|trans }}

{% endif %} {% endblock %} {% block kiosk_class %} text-center kiosk-login-status {% if stopped is not null -%} kiosk-stopped {%- else -%} kiosk-started {%- endif -%} {% endblock %} {% block kiosk_content %}
{% if stopped is not null %} {% else %} {% endif %}
{{ widgets.user_avatar(user, false, 'avatar-xl mb-3') }}

{{ widgets.username(user) }}

{{ user.title }}

{% set day = null %} {% set dayDuration = 0 %} {% for timesheet in timesheets %} {%- if day is same as(null) -%} {% set day = timesheet.begin|date_short %} {% endif %} {%- if day is not same as(timesheet.begin|date_short) -%} {% set day = timesheet.begin|date_short %} {% set dayDuration = 0 %} {%- endif -%} {% if timesheet.end is not null %} {% else %} {% endif %} {% set dayDuration = dayDuration + timesheet.duration %} {% endfor %}
{{ 'date'|trans }} {{ 'begin'|trans }} {{ 'end'|trans }} {{ 'duration'|trans }}
{{ dayDuration|duration }}
{{ timesheet.begin|date_short }} {{ timesheet.begin|time }}{{ timesheet.end|time }} {{ timesheet.duration|duration }}
{% if duration > 10 %} {{ 'kiosk_login'|trans({}, 'actions') }} {% endif %} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}