meta/old/Meta/views/genre_detail.php

31 lines
1018 B
PHP
Raw Normal View History

2012-08-31 16:18:23 -04:00
<p class="breadcrumbs">
<a href="<?= \Meta\Base\site_url('') ?>">Genres</a> > <?= $genre ?>
2012-08-31 16:18:23 -04:00
</p>
<form class="add" action="<?= \Meta\Base\site_url("genre/add_category") ?>" method="post">
<fieldset>
2012-08-31 16:18:23 -04:00
<legend>Add Category</legend>
<dl>
<!-- Weird tag wrapping is intentional for display: inline-block -->
<dt><label for="category">Category name:</label></dt><dd>
<input type="text" name="category" id="category" /></dd>
<dt><input type="hidden" name="genre_id" value="<?= $genre_id ?>" /></dt><dd>
<button type="submit" class="save">Add Category</button></dd>
</dl>
</fieldset>
2012-08-31 16:18:23 -04:00
</form>
2012-09-13 19:16:51 -04:00
<h3>Categories</h3>
<ul class="list">
2012-08-31 16:18:23 -04:00
<?php foreach($categories as $id => $cat): ?>
<li>
<a href="<?= \Meta\Base\site_url("category/detail/{$id}") ?>"><?= $cat ?></a>
2015-06-04 14:30:42 -04:00
<span class="modify" data-type="category" data-id="<?=$id ?>" data-parent="<?=$genre_id ?>">
2015-06-04 16:25:47 -04:00
<button class="edit">Edit Category</button>
<button class="delete">Delete Category</button>
</span>
</li>
2012-08-31 16:18:23 -04:00
<?php endforeach ?>
</ul>