add hint on how many shifts to be created
This commit is contained in:
parent
99ab7853da
commit
b99e6ed8c1
|
@ -330,6 +330,14 @@ function admin_shifts()
|
||||||
foreach ($needed_angel_types as $type_id => $count) {
|
foreach ($needed_angel_types as $type_id => $count) {
|
||||||
$hidden_types .= form_hidden('angeltype_count_' . $type_id, $count);
|
$hidden_types .= form_hidden('angeltype_count_' . $type_id, $count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Number of Shifts that will be created (if over 100 its danger-red)
|
||||||
|
$shiftsCount = count($shifts_table);
|
||||||
|
$shiftsCreationHint = __('Number of shifts: %s', [$shiftsCount]);
|
||||||
|
if ($shiftsCount >= 100) {
|
||||||
|
$shiftsCreationHint = '<span class="text-danger">' . $shiftsCreationHint . '</span>';
|
||||||
|
}
|
||||||
|
|
||||||
return page_with_title(__('Preview'), [
|
return page_with_title(__('Preview'), [
|
||||||
form([
|
form([
|
||||||
$hidden_types,
|
$hidden_types,
|
||||||
|
@ -345,6 +353,7 @@ function admin_shifts()
|
||||||
form_hidden('angelmode', $angelmode),
|
form_hidden('angelmode', $angelmode),
|
||||||
form_hidden('shift_over_midnight', $shift_over_midnight ? 'true' : 'false'),
|
form_hidden('shift_over_midnight', $shift_over_midnight ? 'true' : 'false'),
|
||||||
form_submit('back', icon('chevron-left') . __('back')),
|
form_submit('back', icon('chevron-left') . __('back')),
|
||||||
|
$shiftsCreationHint,
|
||||||
table([
|
table([
|
||||||
'timeslot' => __('Time and location'),
|
'timeslot' => __('Time and location'),
|
||||||
'title' => __('Type and title'),
|
'title' => __('Type and title'),
|
||||||
|
|
|
@ -3147,3 +3147,6 @@ msgstr "Arbeitseinsatz löschen"
|
||||||
|
|
||||||
msgid "worklog.delete.info"
|
msgid "worklog.delete.info"
|
||||||
msgstr "Möchtest du den Arbeitseinsatz von %s wirklich löschen?"
|
msgstr "Möchtest du den Arbeitseinsatz von %s wirklich löschen?"
|
||||||
|
|
||||||
|
msgid "Number of shifts: %s"
|
||||||
|
msgstr "Anzahl an Schichten: %s"
|
||||||
|
|
Loading…
Reference in New Issue