mirror of
https://github.com/standardebooks/web.git
synced 2025-07-20 13:24:48 -04:00
Move delete form and more multi select fixes
This commit is contained in:
parent
93b8008c7e
commit
8e8cbb0c5e
10 changed files with 136 additions and 24 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue