Finish req list, add snoozed list
This commit is contained in:
1 parent
2369827033
commit
d6e8cf66cc
5 files changed
+76
-25
No files matched your search
@@ -0,0 +1,22 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
use MyPrayerJournal\{Auth, Layout, Request, UI};
|
||||
|
||||
require '../../start.php';
|
||||
if ($_SERVER['REQUEST_METHOD'] <> 'GET') not_found();
|
||||
|
||||
Auth::requireUser();
|
||||
|
||||
$reqs = Request::snoozed();
|
||||
|
||||
Layout::pageHead('Snoozed Requests'); ?>
|
||||
<article class="container mt-3">
|
||||
<h2 class=pb-3>Snoozed Requests</h2><?php
|
||||
if ($reqs->hasItems()) {
|
||||
UI::requestList($reqs);
|
||||
} else {
|
||||
UI::noResults('No Snoozed Requests', '/journal', 'Return to your journal',
|
||||
'Your prayer journal has no snoozed requests');
|
||||
} ?>
|
||||
</article><?php
|
||||
Layout::pageFoot();
|
||||
Reference in new issue
Block a user