2017-02-15 16:30:14 -05:00
|
|
|
<?php if ($auth->isAuthenticated()): ?>
|
2016-01-04 16:58:33 -05:00
|
|
|
<main>
|
|
|
|
<h1>
|
2017-01-05 22:24:45 -05:00
|
|
|
Edit <?= $item['manga']['titles'][0] ?>
|
2016-01-04 16:58:33 -05:00
|
|
|
</h1>
|
|
|
|
<form action="<?= $action ?>" method="post">
|
|
|
|
<table class="form">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2017-01-05 22:24:45 -05:00
|
|
|
<th>
|
|
|
|
<h3><?= $escape->html(array_shift($item['manga']['titles'])) ?></h3>
|
|
|
|
<?php foreach($item['manga']['titles'] as $title): ?>
|
|
|
|
<h4><?= $escape->html($title) ?></h4>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</th>
|
2016-01-04 16:58:33 -05:00
|
|
|
<th>
|
|
|
|
<article class="media">
|
|
|
|
<?= $helper->img($item['manga']['image']); ?>
|
|
|
|
</article>
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td><label for="status">Reading Status</label></td>
|
|
|
|
<td>
|
|
|
|
<select name="status" id="status">
|
2017-01-09 20:36:48 -05:00
|
|
|
<?php foreach($status_list as $val => $status): ?>
|
|
|
|
<option <?php if($item['reading_status'] === $val): ?>selected="selected"<?php endif ?>
|
|
|
|
value="<?= $val ?>"><?= $status ?></option>
|
2016-01-04 16:58:33 -05:00
|
|
|
<?php endforeach ?>
|
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><label for="series_rating">Rating</label></td>
|
|
|
|
<td>
|
|
|
|
<input type="number" min="0" max="10" maxlength="2" name="new_rating" value="<?= $item['user_rating'] ?>" id="series_rating" size="2" /> / 10
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><label for="chapters_read">Chapters Read</label></td>
|
|
|
|
<td>
|
|
|
|
<input type="number" min="0" name="chapters_read" id="chapters_read" value="<?= $item['chapters']['read'] ?>" /> / <?= $item['chapters']['total'] ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2017-01-05 22:24:45 -05:00
|
|
|
<? /*<tr>
|
2016-01-04 16:58:33 -05:00
|
|
|
<td><label for="volumes_read">Volumes Read</label></td>
|
|
|
|
<td>
|
|
|
|
<input type="number" min="0" name="volumes_read" id="volumes_read" value="<?= $item['volumes']['read'] ?>" /> / <?= $item['volumes']['total'] ?>
|
|
|
|
</td>
|
2017-01-05 22:24:45 -05:00
|
|
|
</tr> */ ?>
|
2016-01-04 16:58:33 -05:00
|
|
|
<tr>
|
|
|
|
<td><label for="rereading_flag">Rereading?</label></td>
|
|
|
|
<td>
|
2017-01-31 12:52:43 -05:00
|
|
|
<input type="checkbox" name="rereading" id="rereading_flag"
|
2016-01-04 16:58:33 -05:00
|
|
|
<?php if($item['rereading'] === TRUE): ?>checked="checked"<?php endif ?>
|
|
|
|
/>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><label for="reread_count">Reread Count</label></td>
|
|
|
|
<td>
|
|
|
|
<input type="number" min="0" id="reread_count" name="reread_count" value="<?= $item['reread'] ?>" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><label for="notes">Notes</label></td>
|
|
|
|
<td>
|
|
|
|
<textarea name="notes" id="notes"><?= $escape->html($item['notes']) ?></textarea>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td> </td>
|
|
|
|
<td>
|
|
|
|
<input type="hidden" value="<?= $item['id'] ?>" name="id" />
|
2017-03-29 13:29:03 -04:00
|
|
|
<input type="hidden" value="<?= $item['mal_id'] ?>" name="mal_id" />
|
2016-01-04 16:58:33 -05:00
|
|
|
<input type="hidden" value="<?= $item['manga']['slug'] ?>" name="manga_id" />
|
|
|
|
<input type="hidden" value="<?= $item['user_rating'] ?>" name="old_rating" />
|
|
|
|
<input type="hidden" value="true" name="edit" />
|
|
|
|
<button type="submit">Submit</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</form>
|
2016-04-14 17:00:34 -04:00
|
|
|
<fieldset>
|
|
|
|
<legend>Danger Zone</legend>
|
|
|
|
<form class="js-delete" action="<?= $url->generate('manga.delete') ?>" method="post">
|
|
|
|
<table class="form invisible">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td> </td>
|
|
|
|
<td>
|
|
|
|
<input type="hidden" value="<?= $item['id'] ?>" name="id" />
|
2017-03-29 13:29:03 -04:00
|
|
|
<input type="hidden" value="<?= $item['mal_id'] ?>" name="mal_id" />
|
2016-04-14 17:00:34 -04:00
|
|
|
<button type="submit" class="danger">Delete Entry</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
</fieldset>
|
2016-01-04 16:58:33 -05:00
|
|
|
</main>
|
|
|
|
<?php endif ?>
|