From 7bcba9a930dd9aeb7c5dceecdb344aa223774312 Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Sun, 22 Dec 2024 23:05:55 +0000 Subject: [PATCH] add columns to note when supervisor and case worker signed staff notes and update available buttons --- .../internal/staff/notes/list-notes.html.twig | 44 ++++++++++++++++--- 1 file changed, 38 insertions(+), 6 deletions(-) diff --git a/templates/internal/staff/notes/list-notes.html.twig b/templates/internal/staff/notes/list-notes.html.twig index 9a6de28..c79e0cd 100644 --- a/templates/internal/staff/notes/list-notes.html.twig +++ b/templates/internal/staff/notes/list-notes.html.twig @@ -16,9 +16,9 @@
{{ case.caseName }}
{% if app.user.id == staffId %} -
- -
+
+ +
{% endif %} @@ -28,6 +28,8 @@ Date + Supervisor Signed + Signed @@ -41,10 +43,40 @@ + + {% if n.supervisorSignDateTime %} + {{ n.supervisorSignDateTime|date('F j, Y h:i a') }} + {% endif %} + + + {% if n.workerSignDatetime %} + {{ n.workerSignDatetime|date('F j, Y h:i a') }} + {% endif %} + - - edit - + {% if isWorker and not n.workerSignDatetime %} + + edit + + + draw + + {% endif %} + {% if isWorker and n.workerSignDatetime %} + + visibility + + {% endif %} + {% if not isWorker and not n.supervisorSignDateTime %} + + draw + + {% endif %} + {% if not isWorker and n.supervisorSignDateTime %} + + visibility + + {% endif %} {% endfor %}