meta/Meta/views/genres.php

30 lines
851 B
PHP
Raw Normal View History

2012-09-13 19:16:51 -04:00
<p class="breadcrumbs">Genres</p>
<form class="add" action="<?= Meta\Base\site_url("genre/add") ?>" method="post">
<fieldset>
2012-08-31 16:18:23 -04:00
<legend>Add Genre</legend>
<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>&nbsp;</dt><dd>
<button type="submit" class="save">Add Genre</button></dd>
</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): ?>
<li>
<a href="<?= Meta\Base\site_url("genre/detail/{$id}") ?>">
<?= $name ?>
</a>
2015-06-04 14:30:42 -04:00
<span class="modify" data-id="<?= $id ?>" data-type="genre" data-parent="<?=$id ?>">
2015-06-04 16:25:47 -04:00
<button class="edit">Edit Genre</button>
<button class="delete">Delete Genre</button>
</span>
</li>
2012-08-31 16:18:23 -04:00
<?php endforeach ?>
</ul>