Show all artist properties on admin interface.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 26 Jul 2012 09:52:50 +0000 (11:52 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 26 Jul 2012 09:52:50 +0000 (11:52 +0200)
src/main/resources/templates/admin.edit-artist

index 783a5ff..23d945e 100644 (file)
@@ -7,6 +7,12 @@
        <label>Name: <input type="text" name="name" value="<% artist.name|html>"/></label>
        <button type="submit">Edit Artist</button>
 
+       <%foreach artist.properties property>
+
+               <label>Property: <input type="text" name="property.<%loop.count>" value="<%property.key|html>"/> <input type="text" name="value.<%loop.count>" value="<%property.value|html>"/>
+
+       <%/foreach>
+
 </form>
 
 <%include include/footer>
\ No newline at end of file