mirror of
https://github.com/standardebooks/web.git
synced 2025-07-18 20:36:38 -04:00
Completely type hint template functions and switch to named arguments
This commit is contained in:
parent
6108b5e53d
commit
124e8343fc
125 changed files with 542 additions and 450 deletions
|
@ -40,12 +40,9 @@ catch(Exceptions\InvalidPermissionsException){
|
|||
}
|
||||
?>
|
||||
<?= Template::Header(
|
||||
[
|
||||
'title' => 'Delete ' . $ebook->Title,
|
||||
'css' => ['/css/ebook-placeholder.css'],
|
||||
'highlight' => '',
|
||||
'description' => 'Delete ' . $ebook->Title
|
||||
]
|
||||
title: 'Delete ' . $ebook->Title,
|
||||
css: ['/css/ebook-placeholder.css'],
|
||||
description: 'Delete ' . $ebook->Title
|
||||
) ?>
|
||||
<main>
|
||||
<section class="narrow">
|
||||
|
@ -55,7 +52,7 @@ catch(Exceptions\InvalidPermissionsException){
|
|||
</nav>
|
||||
<h1>Delete</h1>
|
||||
|
||||
<?= Template::Error(['exception' => $exception]) ?>
|
||||
<?= Template::Error(exception: $exception) ?>
|
||||
|
||||
<form method="<?= Enums\HttpMethod::Post->value ?>" action="<?= $ebook->Url ?>">
|
||||
<input type="hidden" name="_method" value="<?= Enums\HttpMethod::Delete->value ?>" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue