List tracks on artist page, add form to add a new track.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 27 Jul 2012 14:26:57 +0000 (16:26 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 27 Jul 2012 14:26:57 +0000 (16:26 +0200)
src/main/resources/templates/admin.edit-artist

index 3734264..c63d238 100644 (file)
 
 </form>
 
+<h2>Tracks</h2>
+
+<%foreach artist.tracks track>
+       <%first>
+               <ul>
+       <%/first>
+       <li><%track.name|html> <a href="admin.edit-track?id=<%track.id|html>">edit</a></li>
+       <%last>
+               </ul>
+       <%/last>
+<%foreachelse>
+       <p>This artist does not yet have any tracks.</p>
+<%/foreach>
+
+<h2>Add a New Track</h2>
+
+<%include include/admin.add-track>
+
 <%include include/footer>
\ No newline at end of file