minor improvements on angeltypes

This commit is contained in:
Xu 2023-11-20 17:13:45 +01:00 committed by Igor Scheller
parent 3ffb0a38e8
commit d8310ed6e7
2 changed files with 6 additions and 2 deletions

View File

@ -87,11 +87,12 @@ function AngelType_edit_view(AngelType $angeltype, bool $supporter_mode)
? url('/angeltypes', ['action' => 'view', 'angeltype_id' => $angeltype->id])
: url('/angeltypes'), icon('chevron-left'), 'btn-sm');
return page_with_title(
$link . ' ' . sprintf(__('Edit %s'), $angeltype->name),
$link . ' ' . ($angeltype->id ? sprintf(__('Edit %s'), $angeltype->name) : __('Create angeltype')),
[
$angeltype->id ?
buttons([
button(url('/angeltypes'), icon('person-lines-fill') . __('angeltypes.angeltypes'), 'back'),
]),
]) : '',
msg(),
form([
$supporter_mode

View File

@ -176,6 +176,9 @@ msgstr "Lösche Engeltyp %s"
msgid "Please check the name. Maybe it already exists."
msgstr "Bitte überprüfe den Namen. Vielleicht ist er bereits vergeben."
msgid "Create angeltype"
msgstr "Engeltyp erstellen"
msgid "Edit %s"
msgstr "%s bearbeiten"