Add direct link to the angeltyes page from user view

This commit is contained in:
Michael Weimann 2022-07-23 18:48:17 +02:00 committed by Igor Scheller
parent da4ff8f7c1
commit c502694e59
2 changed files with 12 additions and 3 deletions

View File

@ -1,6 +1,7 @@
<?php
use Carbon\Carbon;
use Engelsystem\Http\UrlGeneratorInterface;
use Engelsystem\Models\Room;
use Engelsystem\Models\User\User;
use Engelsystem\Models\Worklog;
@ -34,6 +35,8 @@ function User_settings_view(
$enable_planned_arrival = config('enable_planned_arrival');
$enable_goody = config('enable_goody');
/** @var $urlGenerator UrlGeneratorInterface */
$urlGenerator = app(UrlGeneratorInterface::class);
/** @var Renderer $renderer */
$renderer = app(Renderer::class);
return $renderer->render(
@ -111,7 +114,13 @@ function User_settings_view(
$personalData->shirt_size,
__('Please select...')
) : '',
form_info('', __('Please visit the angeltypes page to manage your angeltypes.')),
form_info(
'',
__(
'You can manage your Angeltypes <a href="%s">on the Angeltypes page</a>.',
[$urlGenerator->to('angeltypes')]
)
),
form_submit('submit', __('Save'))
]),
])

View File

@ -2518,8 +2518,8 @@ msgid "Planned date of departure"
msgstr "Geplanter Abreisetag"
#: includes/view/User_view.php:83
msgid "Please visit the angeltypes page to manage your angeltypes."
msgstr "Bitte benutze die Engeltypen-Seite um deine Engeltypen zu verwalten."
msgid "You can manage your Angeltypes <a href=\"%s\">on the Angeltypes page</a>."
msgstr "Du kannst deine Engeltypen <a href=\"%s\">auf der Engeltypen-Seite</a> verwalten."
#: includes/view/User_view.php:124
msgid ""