angeltype view member dect to link

This commit is contained in:
Xu 2024-04-15 22:24:30 +02:00 committed by Igor Scheller
parent 3972998ba0
commit 0fb09280b3
1 changed files with 2 additions and 1 deletions

View File

@ -305,7 +305,8 @@ function AngelType_view_members(AngelType $angeltype, $members, $admin_user_ange
foreach ($members as $member) {
$member->name = User_Nick_render($member) . User_Pronoun_render($member);
if (config('enable_dect')) {
$member['dect'] = htmlspecialchars((string) $member->contact->dect);
$member['dect'] =
sprintf('<a href="tel:%s">%1$s</a>', htmlspecialchars($member->contact->dect));
}
if (config('driving_license_enabled') && $angeltype->requires_driver_license) {
$drive_confirmed = $member->license->drive_confirmed;