Make it possible to edit the remix information of a track.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 28 Jul 2012 10:17:22 +0000 (12:17 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 28 Jul 2012 10:17:22 +0000 (12:17 +0200)
src/main/java/net/pterodactylus/demoscenemusic/page/admin/EditTrackPage.java
src/main/resources/templates/admin.edit-track

index c1f999f..af02681 100644 (file)
@@ -72,6 +72,10 @@ public class EditTrackPage extends AdminBasePage {
                                if (name.length() > 0) {
                                        track.setName(name);
                                }
+                               String remix = request.getServletRequest().getParameter("remix").trim();
+                               if (remix.length() > 0) {
+                                       track.setRemix(remix);
+                               }
 
                                /* process properties. */
                                processProperties(request, track);
index 2cbc3a9..e83ee90 100644 (file)
                Name:
                <input type="text" name="name" value="<%track.name|html>"/>
        </div>
+       <div>
+               Remix:
+               <input type="text" name="remix" value="<%track.remix|html>"/>
+       </div>
        <button type="submit">Edit Artist</button>
 
        <%foreach track.properties property>