Don't show placeholder difficulty if it's not set

This commit is contained in:
Alex Cabal 2024-12-18 22:25:30 -06:00
parent 98e09f414e
commit 18bcde3bf6

View file

@ -32,11 +32,13 @@ $showPlaceholderMetadata = $showPlaceholderMetadata ?? false;
<td>Is Patron selection:</td> <td>Is Patron selection:</td>
<td><? if($ebook->EbookPlaceholder->IsPatron){ ?>☑<? }else{ ?>☐<? } ?></td> <td><? if($ebook->EbookPlaceholder->IsPatron){ ?>☑<? }else{ ?>☐<? } ?></td>
</tr> </tr>
<? if($ebook->EbookPlaceholder->Difficulty !== null){ ?>
<tr>
<td>Difficulty:</td>
<td><?= ucfirst($ebook->EbookPlaceholder->Difficulty->value) ?></td>
</tr>
<? } ?>
<? } ?> <? } ?>
<tr>
<td>Difficulty:</td>
<td><?= ucfirst($ebook->EbookPlaceholder->Difficulty->value ?? '') ?></td>
</tr>
</tbody> </tbody>
</table> </table>
</section> </section>