Only show DECT number if DECT is enabled

2022-03-24
Luca 3 years ago
parent 9def5d689e
commit 099d8371b3

@ -677,12 +677,12 @@ function User_view(
]) ])
]), ]),
div('row user-info', [ div('row user-info', [
div('col-md-2', [ config('enable_dect') ? div('col-md-2', [
heading(icon('phone') heading(icon('phone')
. '<a href="tel:' . $user_source->contact->dect . '">' . '<a href="tel:' . $user_source->contact->dect . '">'
. $user_source->contact->dect, 1) . $user_source->contact->dect, 1)
. '</a>' . '</a>'
]), ]) : '',
User_view_state($admin_user_privilege, $freeloader, $user_source), User_view_state($admin_user_privilege, $freeloader, $user_source),
User_angeltypes_render($user_angeltypes), User_angeltypes_render($user_angeltypes),
User_groups_render($user_groups), User_groups_render($user_groups),

Loading…
Cancel
Save