2017-02-15 16:30:14 -05:00
|
|
|
<?php if ($auth->isAuthenticated()): ?>
|
2015-07-02 14:04:04 -04:00
|
|
|
<main>
|
2017-09-14 16:18:13 -04:00
|
|
|
<h2>Add <?= ucfirst($collection_type) ?> to your Collection</h2>
|
2015-07-02 14:04:04 -04:00
|
|
|
<form action="<?= $action_url ?>" method="post">
|
2016-01-04 10:53:03 -05:00
|
|
|
<section>
|
2016-02-09 20:12:39 -05:00
|
|
|
<div class="cssload-loader" hidden="hidden">
|
|
|
|
<div class="cssload-inner cssload-one"></div>
|
|
|
|
<div class="cssload-inner cssload-two"></div>
|
|
|
|
<div class="cssload-inner cssload-three"></div>
|
|
|
|
</div>
|
2017-09-14 16:18:13 -04:00
|
|
|
<label for="search">Search for <?= $collection_type ?> by name: <input type="search" id="search" name="search" /></label>
|
2015-07-02 14:04:04 -04:00
|
|
|
<section id="series_list" class="media-wrap">
|
|
|
|
</section>
|
2016-01-04 10:53:03 -05:00
|
|
|
</section>
|
|
|
|
<br />
|
2018-08-14 11:36:26 -04:00
|
|
|
<table class="invisible form">
|
2016-01-04 10:53:03 -05:00
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td><label for="media_id">Media</label></td>
|
|
|
|
<td>
|
|
|
|
<select name="media_id" id="media_id">
|
|
|
|
<?php foreach($media_items as $id => $name): ?>
|
|
|
|
<option value="<?= $id ?>"><?= $name ?></option>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><label for="notes">Notes</label></td>
|
|
|
|
<td><textarea id="notes" name="notes"></textarea></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td> </td>
|
|
|
|
<td>
|
|
|
|
<button type="submit">Save</button>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2015-07-02 14:04:04 -04:00
|
|
|
</form>
|
|
|
|
</main>
|
2017-09-14 16:18:13 -04:00
|
|
|
<script defer="defer" src="<?= $urlGenerator->assetUrl("js.php/g/{$collection_type}_collection") ?>"></script>
|
2015-07-02 14:04:04 -04:00
|
|
|
<?php endif ?>
|