From c11393b69e19ea869dcb2f6bdb03810602ec74ce Mon Sep 17 00:00:00 2001 From: Korina Cordero Date: Fri, 9 Aug 2019 08:01:23 +0000 Subject: [PATCH] Add Activation Status column to report. #248 --- src/Controller/ReportController.php | 1 + templates/report/popapp/form.html.twig | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Controller/ReportController.php b/src/Controller/ReportController.php index 224019d2..c92b071b 100644 --- a/src/Controller/ReportController.php +++ b/src/Controller/ReportController.php @@ -508,6 +508,7 @@ class ReportController extends Controller 'serial' => $warranty->getSerial(), 'warr_date_create' => $warranty->getDateCreate()->format("d M Y"), 'has_mobile' => $has_mobile, + 'warr_activation_status' => $warranty->isActivated(), ]; } diff --git a/templates/report/popapp/form.html.twig b/templates/report/popapp/form.html.twig index cd02cfd4..f48ada3d 100644 --- a/templates/report/popapp/form.html.twig +++ b/templates/report/popapp/form.html.twig @@ -83,6 +83,7 @@ Plate Number Serial Warranty Create Date + Activation Status Has Mobile App? @@ -95,7 +96,8 @@ {{ result.plate_num|default('') }} {{ result.serial|default('') }} {{ result.warr_date_create|default('') }} - {{ result.has_mobile ? Yes : 'No' }} + {{ result.warr_activation_status ? 'Active' : 'Inactive' }} + {{ result.has_mobile ? 'Yes' : 'No' }} {% endfor %}