Remove already selected values from selext boxes.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 31 Jul 2012 19:07:09 +0000 (21:07 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 31 Jul 2012 19:07:09 +0000 (21:07 +0200)
src/main/resources/templates/admin.edit-artist
src/main/resources/templates/admin.edit-track

index 2eb47c4..8741540 100644 (file)
@@ -55,7 +55,7 @@
        <div>
                Add Group:
                <select name="group">
-                       <%foreach dataManager.allGroups group|sort>
+                       <%foreach dataManager.allGroups group|sort|remove value=artist.groups>
                                <option value="<%group.id|html>"><%group.name|html></option>
                        <%/foreach>
                </select>
index f9ee353..20eb76f 100644 (file)
@@ -62,7 +62,7 @@
        <div>
                Add Artist:
                <select name="artist">
-                       <%foreach dataManager.allArtists artist|sort>
+                       <%foreach dataManager.allArtists artist|sort|remove value=track.artists>
                                <option value="<%artist.id|html>"><%artist.name|html></option>
                        <%/foreach>
                </select>
@@ -95,7 +95,7 @@
        <div>
                Add Release:
                <select name="party">
-                       <%foreach dataManager.allParties party|sort>
+                       <%foreach dataManager.allParties party|sort|remove value=track.parties>
                                <option value="<%party.id|html>"><%party.name|html></option>
                        <%/foreach>
                </select>