mirror of
https://github.com/standardebooks/web.git
synced 2025-07-09 16:20:27 -04:00
49 lines
1.2 KiB
PHP
49 lines
1.2 KiB
PHP
<?
|
|
/**
|
|
* @var Ebook $ebook
|
|
*/
|
|
|
|
$showPlaceholderMetadata ??= false;
|
|
?>
|
|
<section id="metadata">
|
|
<h2>Metadata</h2>
|
|
<table class="admin-table">
|
|
<tbody>
|
|
<tr>
|
|
<td>Ebook ID:</td>
|
|
<td><?= $ebook->EbookId ?></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
|
|
<? if($showPlaceholderMetadata && $ebook->IsPlaceholder() && $ebook->EbookPlaceholder !== null){ ?>
|
|
<section id="placeholder-metadata">
|
|
<h2>Placeholder metadata</h2>
|
|
<p>
|
|
<a href="<?= $ebook->EditUrl ?>">Edit placeholder</a>
|
|
•
|
|
<a href="<?= $ebook->DeleteUrl ?>">Delete placeholder</a>
|
|
</p>
|
|
<table class="admin-table">
|
|
<tbody>
|
|
<tr>
|
|
<td>Is wanted:</td>
|
|
<td><? if($ebook->EbookPlaceholder->IsWanted){ ?>☑<? }else{ ?>☐<? } ?></td>
|
|
</tr>
|
|
<? if($ebook->EbookPlaceholder->IsWanted){ ?>
|
|
<tr>
|
|
<td>Is Patron selection:</td>
|
|
<td><? if($ebook->EbookPlaceholder->IsPatron){ ?>☑<? }else{ ?>☐<? } ?></td>
|
|
</tr>
|
|
<? if($ebook->EbookPlaceholder->Difficulty !== null){ ?>
|
|
<tr>
|
|
<td>Difficulty:</td>
|
|
<td><?= ucfirst($ebook->EbookPlaceholder->Difficulty->value) ?></td>
|
|
</tr>
|
|
<? } ?>
|
|
<? } ?>
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
<? } ?>
|