Use larger cover images for edit forms

This commit is contained in:
Timothy Warren 2019-05-08 14:18:18 -04:00
parent 9f585bf1b4
commit aa1e6675c2
3 changed files with 15 additions and 17 deletions

View File

@ -16,9 +16,7 @@
<tbody> <tbody>
<tr> <tr>
<td rowspan="9"> <td rowspan="9">
<article class="media"> <?= $helper->picture("images/anime/{$item['anime']['id']}-original.webp", "jpg", [], ["width" => "390"]) ?>
<?= $helper->picture("images/anime/{$item['anime']['id']}.webp") ?>
</article>
</td> </td>
</tr> </tr>
<tr> <tr>
@ -95,7 +93,7 @@
<table class="form invisible"> <table class="form invisible">
<tbody> <tbody>
<tr> <tr>
<td> <td class="danger">
<strong>Permanently</strong> remove this list item and <strong>all</strong> its data? <strong>Permanently</strong> remove this list item and <strong>all</strong> its data?
</td> </td>
<td> <td>

View File

@ -6,9 +6,7 @@
<tbody> <tbody>
<tr> <tr>
<td rowspan="6" class="align-center"> <td rowspan="6" class="align-center">
<article class="media"> <?= $helper->picture("images/anime/{$item['hummingbird_id']}-original.webp", "jpg", [], ["width" => "390"]) ?>
<?= $helper->img($urlGenerator->assetUrl("images/anime/{$item['hummingbird_id']}.jpg")); ?>
</article>
</td> </td>
</tr> </tr>
<tr> <tr>
@ -49,13 +47,15 @@
</tbody> </tbody>
</table> </table>
</form> </form>
<form class="js-delete" action="<?= $url->generate($collection_type . '.collection.delete') ?>" method="post">
<fieldset> <fieldset>
<legend>Danger Zone</legend> <legend>Danger Zone</legend>
<form class="js-delete" action="<?= $url->generate($collection_type . '.collection.delete') ?>" method="post">
<table class="form invisible"> <table class="form invisible">
<tbody> <tbody>
<tr> <tr>
<td>&nbsp;</td> <td class="danger">
<strong>Permanently</strong> remove this list item and <strong>all</strong> its data?
</td>
<td> <td>
<input type="hidden" value="<?= $item['hummingbird_id'] ?>" name="hummingbird_id" /> <input type="hidden" value="<?= $item['hummingbird_id'] ?>" name="hummingbird_id" />
<button type="submit" class="danger">Delete Entry</button> <button type="submit" class="danger">Delete Entry</button>
@ -63,7 +63,7 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
</form>
</fieldset> </fieldset>
</form>
</main> </main>
<?php endif ?> <?php endif ?>

View File

@ -18,9 +18,7 @@
<tbody> <tbody>
<tr> <tr>
<td rowspan="9"> <td rowspan="9">
<article class="media"> <?= $helper->picture("images/manga/{$item['manga']['id']}-original.webp", "jpg", [], ["width" => "390"]) ?>
<?= $helper->img($urlGenerator->assetUrl('images/manga', "{$item['manga']['id']}.jpg")); ?>
</article>
</td> </td>
</tr> </tr>
<tr> <tr>
@ -96,7 +94,9 @@
<table class="form invisible"> <table class="form invisible">
<tbody> <tbody>
<tr> <tr>
<td>&nbsp;</td> <td class="danger">
<strong>Permanently</strong> remove this list item and <strong>all</strong> its data?
</td>
<td> <td>
<input type="hidden" value="<?= $item['id'] ?>" name="id"/> <input type="hidden" value="<?= $item['id'] ?>" name="id"/>
<input type="hidden" value="<?= $item['mal_id'] ?>" name="mal_id"/> <input type="hidden" value="<?= $item['mal_id'] ?>" name="mal_id"/>