From 47b52bc3f6a3b9fea86c46dbef34c2315c278b97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20H=C3=A4usler?= Date: Fri, 26 Dec 2014 16:57:58 +0100 Subject: [PATCH] count confirmed and unconfirmed angels --- includes/view/AngelTypes_view.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/includes/view/AngelTypes_view.php b/includes/view/AngelTypes_view.php index 78563c0b..697c750f 100644 --- a/includes/view/AngelTypes_view.php +++ b/includes/view/AngelTypes_view.php @@ -131,6 +131,21 @@ function AngelType_view($angeltype, $members, $user_angeltype, $admin_user_angel 'actions' => "" ), $coordinators); } + + if (count($members_confirmed) > 0) + $members_confirmed[] = [ + 'Nick' => _('Sum'), + 'DECT' => count($members_confirmed), + 'actions' => '' + ]; + + if (count($members_unconfirmed) > 0) + $members_unconfirmed[] = [ + 'Nick' => _('Sum'), + 'DECT' => count($members_unconfirmed), + 'actions' => '' + ]; + $page[] = '

' . _("Members") . '

'; if ($admin_user_angeltypes) $page[] = buttons(array(