minor improvements on angeltypes
This commit is contained in:
parent
3ffb0a38e8
commit
d8310ed6e7
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue