2012-09-13 19:16:51 -04:00
|
|
|
<p class="breadcrumbs">Genres</p>
|
2012-06-13 13:49:10 -04:00
|
|
|
|
2012-09-13 19:16:51 -04:00
|
|
|
<form class="add" action="<?= miniMVC\site_url("genre/add") ?>" method="post">
|
2012-06-13 13:49:10 -04:00
|
|
|
<fieldset>
|
2012-08-31 16:18:23 -04:00
|
|
|
<legend>Add Genre</legend>
|
2012-06-13 13:49:10 -04:00
|
|
|
<dl>
|
|
|
|
<!-- Weird tag wrapping is intentional for display: inline-block -->
|
|
|
|
<dt><label for="genre">Genre name:</label></dt><dd>
|
|
|
|
<input type="text" name="genre" id="genre" /></dd>
|
|
|
|
|
|
|
|
<dt> </dt><dd>
|
2012-09-10 11:45:39 -04:00
|
|
|
<button type="submit" class="save">Add Genre</button></dd>
|
2012-06-13 13:49:10 -04:00
|
|
|
</dl>
|
|
|
|
</fieldset>
|
2012-08-31 16:18:23 -04:00
|
|
|
</form>
|
|
|
|
|
2012-09-13 19:16:51 -04:00
|
|
|
<h3>Genres</h3>
|
|
|
|
<ul class="list">
|
2012-08-31 16:18:23 -04:00
|
|
|
<?php foreach($genres as $id => $name): ?>
|
2012-09-10 11:45:39 -04:00
|
|
|
<li>
|
2015-06-04 14:30:42 -04:00
|
|
|
<a href="<?= miniMVC\site_url("genre/detail/{$id}") ?>">
|
2012-09-10 11:45:39 -04:00
|
|
|
<?= $name ?>
|
|
|
|
</a>
|
2015-06-04 14:30:42 -04:00
|
|
|
<span class="modify" data-id="<?= $id ?>" data-type="genre" data-parent="<?=$id ?>">
|
2012-09-10 11:45:39 -04:00
|
|
|
<button class="edit">Edit</button>
|
|
|
|
<button class="delete">Delete</button>
|
|
|
|
</span>
|
|
|
|
</li>
|
2012-08-31 16:18:23 -04:00
|
|
|
<?php endforeach ?>
|
|
|
|
</ul>
|