add needed angels from to shift view
This commit is contained in:
parent
89d8a070d9
commit
0476083e77
|
@ -78,6 +78,29 @@ function Shift_editor_info_render(Shift $shift)
|
|||
$shift->transaction_id
|
||||
);
|
||||
}
|
||||
if ($shift->schedule) {
|
||||
$angeltypeSource = $shift->schedule->needed_from_shift_type
|
||||
? __(
|
||||
'shift.angeltype_source.shift_type',
|
||||
[
|
||||
'<a href="' . url('/admin/schedule/edit/' . $shift->schedule->id) . '">'
|
||||
. htmlspecialchars($shift->schedule->name)
|
||||
. '</a>',
|
||||
'<a href="' . url('/admin/shifttypes/' . $shift->shift_type_id) . '">'
|
||||
. htmlspecialchars($shift->shiftType->name)
|
||||
. '</a>',
|
||||
]
|
||||
)
|
||||
: __('shift.angeltype_source.location', [
|
||||
'<a href="' . url('/admin/schedule/edit/' . $shift->schedule->id) . '">'
|
||||
. htmlspecialchars($shift->schedule->name)
|
||||
. '</a>',
|
||||
location_name_render($shift->location),
|
||||
]);
|
||||
} else {
|
||||
$angeltypeSource = __('Shift');
|
||||
}
|
||||
$info[] = sprintf(__('shift.angeltype_source'), $angeltypeSource);
|
||||
return join('<br />', $info);
|
||||
}
|
||||
|
||||
|
|
|
@ -596,6 +596,18 @@ msgstr "Engeltyp"
|
|||
msgid "shift.next"
|
||||
msgstr "Nächste Schicht"
|
||||
|
||||
msgid "general.shift"
|
||||
msgstr "Schicht"
|
||||
|
||||
msgid "shift.angeltype_source"
|
||||
msgstr "Benötigte Engel von: %s"
|
||||
|
||||
msgid "shift.angeltype_source.shift_type"
|
||||
msgstr "Programm %s via Schichttyp %s"
|
||||
|
||||
msgid "shift.angeltype_source.location"
|
||||
msgstr "Programm %s via Ort %s"
|
||||
|
||||
msgid "Last shift"
|
||||
msgstr "Letzte Schicht"
|
||||
|
||||
|
|
|
@ -853,6 +853,18 @@ msgstr "Register"
|
|||
msgid "shift.next"
|
||||
msgstr "Next shift"
|
||||
|
||||
msgid "general.shift"
|
||||
msgstr "Shift"
|
||||
|
||||
msgid "shift.angeltype_source"
|
||||
msgstr "Needed angels from: %s"
|
||||
|
||||
msgid "shift.angeltype_source.shift_type"
|
||||
msgstr "Schedule %s via shift type %s"
|
||||
|
||||
msgid "shift.angeltype_source.location"
|
||||
msgstr "Schedule %s via location %s"
|
||||
|
||||
msgid "general.logout"
|
||||
msgstr "Logout"
|
||||
|
||||
|
|
Loading…
Reference in New Issue