2017-02-15 16:30:14 -05:00
|
|
|
<?php if ($auth->isAuthenticated()): ?>
|
2015-07-02 14:04:04 -04:00
|
|
|
<main>
|
2016-01-04 10:53:03 -05:00
|
|
|
<h2>Edit Anime Collection Item</h2>
|
2015-07-02 14:04:04 -04:00
|
|
|
<form action="<?= $action_url ?>" method="post">
|
2018-11-09 10:38:35 -05:00
|
|
|
<table class="invisible form">
|
2016-01-04 10:53:03 -05:00
|
|
|
<tbody>
|
|
|
|
<tr>
|
2018-11-02 10:48:20 -04:00
|
|
|
<td rowspan="6" class="align-center">
|
2019-05-08 14:18:18 -04:00
|
|
|
<?= $helper->picture("images/anime/{$item['hummingbird_id']}-original.webp", "jpg", [], ["width" => "390"]) ?>
|
2018-08-10 20:09:28 -04:00
|
|
|
</td>
|
|
|
|
</tr>
|
2018-08-21 17:09:42 -04:00
|
|
|
<tr>
|
2018-11-02 10:48:20 -04:00
|
|
|
<td class="align-right"><label for="title">Title</label></td>
|
|
|
|
<td class="align-left">
|
2019-01-22 10:21:58 -05:00
|
|
|
<input type="text" id="title" name="title" value="<?= $item['title'] ?>" />
|
2018-08-21 17:09:42 -04:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2019-01-22 10:21:58 -05:00
|
|
|
<td class="align-right"><label for="alternate_title">Alternate Title</label></td>
|
2018-11-02 10:48:20 -04:00
|
|
|
<td class="align-left">
|
2019-01-22 10:21:58 -05:00
|
|
|
<input type="text" id="alternate_title" name="alternate_title" value="<?= $item['alternate_title'] ?>"/>
|
2018-08-21 17:09:42 -04:00
|
|
|
</td>
|
|
|
|
</tr>
|
2018-08-10 20:09:28 -04:00
|
|
|
<tr>
|
2018-11-02 10:48:20 -04:00
|
|
|
<td class="align-right"><label for="media_id">Media</label></td>
|
|
|
|
<td class="align-left">
|
2020-04-30 15:30:52 -04:00
|
|
|
<?php include '_media-select-list.php' ?>
|
2016-01-04 10:53:03 -05:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><label for="notes">Notes</label></td>
|
|
|
|
<td><textarea id="notes" name="notes"><?= $escape->html($item['notes']) ?></textarea></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td> </td>
|
|
|
|
<td>
|
|
|
|
<?php if($action === 'Edit'): ?>
|
|
|
|
<input type="hidden" name="hummingbird_id" value="<?= $item['hummingbird_id'] ?>" />
|
|
|
|
<?php endif ?>
|
|
|
|
<button type="submit">Save</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2015-07-02 14:04:04 -04:00
|
|
|
</form>
|
2019-05-08 14:18:18 -04:00
|
|
|
<form class="js-delete" action="<?= $url->generate($collection_type . '.collection.delete') ?>" method="post">
|
|
|
|
<fieldset>
|
|
|
|
<legend>Danger Zone</legend>
|
2016-04-14 19:10:03 -04:00
|
|
|
<table class="form invisible">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
2019-05-08 14:18:18 -04:00
|
|
|
<td class="danger">
|
|
|
|
<strong>Permanently</strong> remove this list item and <strong>all</strong> its data?
|
|
|
|
</td>
|
2016-04-14 19:10:03 -04:00
|
|
|
<td>
|
|
|
|
<input type="hidden" value="<?= $item['hummingbird_id'] ?>" name="hummingbird_id" />
|
|
|
|
<button type="submit" class="danger">Delete Entry</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2019-05-08 14:18:18 -04:00
|
|
|
</fieldset>
|
|
|
|
</form>
|
2015-07-02 14:04:04 -04:00
|
|
|
</main>
|
|
|
|
<?php endif ?>
|