Move files, complete PHP migration
The application works the same way as the F# version
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
use MyPrayerJournal\{Auth, Layout, RecurrencePeriod, Request, RequestAction, UI};
|
||||
use MyPrayerJournal\Auth;
|
||||
use MyPrayerJournal\Domain\{RecurrencePeriod, Request, RequestAction};
|
||||
use MyPrayerJournal\UI\{Component, Layout};
|
||||
|
||||
require '../../start.php';
|
||||
if ($_SERVER['REQUEST_METHOD'] <> 'GET') not_found();
|
||||
@@ -97,8 +99,9 @@ Layout::pageHead("$action Prayer Request");?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-end pt-3">
|
||||
<button class="btn btn-primary me-2" type=submit><?=UI::icon('save');?> Save</button><?php
|
||||
UI::pageLink($cancelLink, UI::icon('arrow_back') . ' Cancel', ['class' => 'btn btn-secondary ms-2']); ?>
|
||||
<button class="btn btn-primary me-2" type=submit><?=Component::icon('save');?> Save</button>
|
||||
<?=Component::pageLink($cancelLink, Component::icon('arrow_back') . ' Cancel',
|
||||
['class' => 'btn btn-secondary ms-2'])?>
|
||||
</div>
|
||||
</form>
|
||||
</article><?php
|
||||
|
||||
Reference in New Issue
Block a user