From 00034c0a2640d58c6ba4339b636ba663e1fdc544 Mon Sep 17 00:00:00 2001 From: "Daniel J. Summers" Date: Sun, 27 Aug 2023 23:05:04 -0400 Subject: [PATCH] Migrate journal cards --- .../pages/components/journal_card.view.php | 40 ++++++++++ .../pages/components/journal_items.view.php | 7 +- src/app/pages/journal.view.php | 79 ++++++++----------- 3 files changed, 76 insertions(+), 50 deletions(-) create mode 100644 src/app/pages/components/journal_card.view.php diff --git a/src/app/pages/components/journal_card.view.php b/src/app/pages/components/journal_card.view.php new file mode 100644 index 0000000..59ad0fc --- /dev/null +++ b/src/app/pages/components/journal_card.view.php @@ -0,0 +1,40 @@ + '; ?> +
+
+ +
+

text); ?>

+
+ +
+
diff --git a/src/app/pages/components/journal_items.view.php b/src/app/pages/components/journal_items.view.php index 92ad231..c12b5f2 100644 --- a/src/app/pages/components/journal_items.view.php +++ b/src/app/pages/components/journal_items.view.php @@ -9,8 +9,9 @@ if (count($requests) == 0) { ]); } else { ?>
- items - |> List.map (journalCard now tz) + hx-swap="outerHTML" aria-label="Prayer Requests">template->render('components/journal_card', [ 'request' => $request ]); + } ?>
Loading your prayer journal…

- + +