Add page that edits a group.
[demoscenemusic.git] / src / main / resources / templates / admin.edit-group
1 <%include include/header title=="Edit Group">
2
3 <h1>Edit Group</h1>
4
5 <form action="admin.edit-group" method="post" accept-charset="utf-8">
6
7         <input type="hidden" name="id" value="<%group.id|html>"/>
8
9         <label>Name: <input type="text" name="name" value="<% group.name|html>"></label>
10         <button type="submit">Edit Group</button>
11
12         <%foreach group.properties property>
13
14                 <label>
15                         Property: <%property.key|html>
16                         <input type="text" name="value.<%property.key|html>" value="<%property.value|html>">
17                         <input type="checkbox" name="delete.<%property.key|html>">Delete
18                 </label>
19
20         <%/foreach>
21
22         <label>
23                 New Property:
24                 <input type="text" name="property" value="">
25                 <input type="text" name="value" value="">
26                 <button type="submit" name="new-property" value="true">Add Property</button>
27         </label>
28
29 </form>
30
31 <h2>Artists</h2>
32
33 <%foreach group.artists artist>
34         <%first>
35                 <ul>
36         <%/first>
37         <li><%artist.name|html> <a href="admin.edit-artist?id=<%artist.id|html>">edit</a></li>
38         <%last>
39                 </ul>
40         <%/last>
41 <%foreachelse>
42         <p>This group does not yet have any artists.</p>
43 <%/foreach>
44
45 <%include include/footer>