Move delete form and more multi select fixes

This commit is contained in:
Alex Cabal 2024-12-19 14:40:38 -06:00
parent 93b8008c7e
commit 8e8cbb0c5e
10 changed files with 136 additions and 24 deletions

View file

@ -20,17 +20,11 @@ $showPlaceholderMetadata = $showPlaceholderMetadata ?? false;
<? if($showPlaceholderMetadata && $ebook->IsPlaceholder() && $ebook->EbookPlaceholder !== null){ ?>
<section id="placeholder-metadata">
<h2>Placeholder metadata</h2>
<p><a href="<?= $ebook->EditUrl ?>">Edit placeholder</a></p>
<details>
<summary>Delete placeholder</summary>
<form method="<?= Enums\HttpMethod::Post->value ?>" action="<?= $ebook->Url ?>">
<input type="hidden" name="_method" value="<?= Enums\HttpMethod::Delete->value ?>" />
<p>Delete the <code>Ebook</code>, <code>EbookPlaceholder</code>, <code>Project</code>, and other related objects.</p>
<div class="footer">
<button class="delete">Delete</button>
</div>
</form>
</details>
<p>
<a href="<?= $ebook->EditUrl ?>">Edit placeholder</a>
<a href="<?= $ebook->DeleteUrl ?>">Delete placeholder</a>
</p>
<table class="admin-table">
<tbody>
<tr>