First extremely basic, kind-of-working version.
[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="name" value="<%target.key|html>"/>
9                 <%target.key|html>:
10                 <input type="text" name="target" value="<%target.value|html>"/>
11                 <button type="submit" name="edit">Save</button>
12                 <button type="submit" name="delete">Delete</button>
13         </form>
14 <%/foreach>
15 <h2>Add Target</h2>
16 <form action="addTarget.html" method="post">
17         <input type="hidden" name="formPassword" value="<%formPassword|html>"/>
18         <input type="hidden" name="ownIdentity" value="<%ownIdentity.id|html>"/>
19         <input type="text" name="name" value=""/>
20         <input type="text" name="target" value=""/>
21         <button type="submit" name="add">Add</button>
22 </form>