|
22 | 22 | <span class="user"><i class="fas fa-user" aria-hidden="true"></i></span>
|
23 | 23 | <span class="arrow"><i class="fas fa-arrow-alt-circle-right" aria-hidden="true"></i></span>
|
24 | 24 | <span class="text">Aufruf nächster Kunde</span>
|
25 |
| - </a> |
26 |
| - </div> |
| 25 | + </button> |
| 26 | + </div> |
27 | 27 | {% endblock %}
|
28 | 28 |
|
29 | 29 | {% block board_footer %}
|
30 | 30 | {% include "block/process/footer.twig" %}
|
| 31 | + |
| 32 | + <div class="footer-seperator"></div> |
| 33 | + |
| 34 | + <ul class="list list--table bordered"> |
| 35 | + |
| 36 | + {% set waiting_customers = workstationInfo.waitingClientsEffective %} |
| 37 | + |
| 38 | + <li class="traffic-light {% if waiting_customers >= 0 and waiting_customers <= 10 %}green |
| 39 | + {% elseif waiting_customers >= 11 and waiting_customers <= 20 %}yellow |
| 40 | + {% elseif waiting_customers >= 21 and waiting_customers <= 40 %}orange |
| 41 | + {% elseif waiting_customers >= 41 %}red |
| 42 | + {% endif %}"> |
| 43 | + <div class="cell middle"> |
| 44 | + <h4 class="wartende">{% trans %}Wartende{% endtrans %}:</h4> |
| 45 | + </div> |
| 46 | + <div class="cell right"> |
| 47 | + <span class="waiting-count">{{ workstationInfo.waitingClientsEffective }}</span> |
| 48 | + </div> |
| 49 | + </li> |
| 50 | + <li> |
| 51 | + <div class="cell middle"> |
| 52 | + <h4>{% trans %}Durchschnittliche Wartezeit von Terminkunden{% endtrans %}:</h4> |
| 53 | + </div> |
| 54 | + <div class="cell right"> |
| 55 | + {{ workstationInfo.averageWaitingTimeWithAppointment|round }} Minuten |
| 56 | + </div> |
| 57 | + </li> |
| 58 | + <li> |
| 59 | + <div class="cell middle"> |
| 60 | + <h4>{% trans %}Durchschnittliche Wartezeit von Spontankunden{% endtrans %}:</h4> |
| 61 | + </div> |
| 62 | + <div class="cell right"> |
| 63 | + {{ workstationInfo.averageWaitingTimeWithoutAppointment|round }} Minuten |
| 64 | + </div> |
| 65 | + </li> |
| 66 | + <li> |
| 67 | + <div class="cell middle"> |
| 68 | + <h4>{% trans %}Wartezeit für neue Spontankunden{% endtrans %}:</h4> |
| 69 | + </div> |
| 70 | + <div class="cell right"> |
| 71 | + {% if workstationInfo.workstationGhostCount == 0 %} |
| 72 | + <span class="color-red">{% trans %}unbekannt{% endtrans %}</span> |
| 73 | + {% else %} |
| 74 | + <strong> |
| 75 | + {% if workstationInfo.waitingTimeEstimate < 120 %} |
| 76 | + {{ workstationInfo.waitingTimeOptimistic }} - {{ workstationInfo.waitingTimeEstimate }}<br />{{ "%s"|format("Minuten")|trans }} |
| 77 | + {% else %} |
| 78 | + {% set minutes = (workstationInfo.waitingTimeEstimate % 60) %} |
| 79 | + {% set hours = (workstationInfo.waitingTimeEstimate / 60)|round(0, 'floor') %} |
| 80 | + {{ "%02d"|format(hours) ~ ':' ~ "%02d"|format(minutes) }} |
| 81 | + {% endif %} |
| 82 | + </strong> |
| 83 | + {% endif %} |
| 84 | + </div> |
| 85 | + </li> |
| 86 | + |
| 87 | + <style> |
| 88 | + .footer-seperator { |
| 89 | + margin-top: 10px; |
| 90 | + border-top: 1px solid #ddd; |
| 91 | + padding-top: 10px; |
| 92 | + } |
| 93 | + |
| 94 | + .traffic-light { |
| 95 | + display: flex; |
| 96 | + width: 100%; |
| 97 | + height: 100%; |
| 98 | + } |
| 99 | +
|
| 100 | + .wartende { |
| 101 | + display: flex; |
| 102 | + padding-left: 5%; |
| 103 | + padding-top: 14px; |
| 104 | + } |
| 105 | +
|
| 106 | + h4 { |
| 107 | + font-weight: normal; |
| 108 | + text-align: left; |
| 109 | + } |
| 110 | +
|
| 111 | + .cell.right { |
| 112 | + display: flex; |
| 113 | + align-items: center; /* Vertically align the items in the center */ |
| 114 | + } |
| 115 | +
|
| 116 | + .waiting-count { |
| 117 | + font-size: 16px; /* Style for the number */ |
| 118 | + font-weight: bold; |
| 119 | + display: flex; |
| 120 | + padding-left: 58%; |
| 121 | + padding-top: 14px; |
| 122 | + } |
| 123 | + |
| 124 | + .green { |
| 125 | + background-color: rgba(0, 255, 0, 0.5); /* Green */ |
| 126 | + } |
| 127 | +
|
| 128 | + .yellow { |
| 129 | + background-color: rgba(255, 255, 0, 0.5); /* Yellow */ |
| 130 | + } |
| 131 | +
|
| 132 | + .orange { |
| 133 | + background-color: rgba(255, 127, 0, 0.5); /* Orange */ |
| 134 | + } |
| 135 | +
|
| 136 | + .red { |
| 137 | + background-color: rgba(255, 0, 0, 0.5); /* Red */ |
| 138 | + } |
| 139 | +
|
| 140 | + </style> |
| 141 | + </ul> |
| 142 | + |
31 | 143 | {% endblock %}
|
32 | 144 |
|
33 | 145 | {% endembed %}
|
0 commit comments