Add page that lets the user edit and delete targets.
[WoTNS.git] / src / main / resources / templates / manage.html
1 <h1>Manage “<%ownIdentity.nickname|html>”</h1>
2 <%foreach ownIdentity.targets target>
3         <%first>
4                 <h2>Existing Targets</h2>
5         <%/first>
6         <form action="editTarget.html" method="post">
7                 <input type="hidden" name="formPassword" value="<%formPassword|html>"/>
8                 <input type="hidden" name="ownIdentity" value="<%ownIdentity.id|html>"/>
9                 <input type="hidden" name="name" value="<%target.key|html>"/>
10                 <%target.key|html>:
11                 <input type="text" name="target" value="<%target.value|html>"/>
12                 <button type="submit" name="edit" value="true">Save</button>
13                 <button type="submit" name="delete" value="true">Delete</button>
14         </form>
15 <%/foreach>
16 <h2>Add Target</h2>
17 <form action="addTarget.html" method="post">
18         <input type="hidden" name="formPassword" value="<%formPassword|html>"/>
19         <input type="hidden" name="ownIdentity" value="<%ownIdentity.id|html>"/>
20         <input type="text" name="name" value=""/>
21         <input type="text" name="target" value=""/>
22         <button type="submit" name="add">Add</button>
23 </form>