basic user management working.
[photos] / src / main / java / org / wamblee / photos / wicket / AdminPage.html
1 <html
2         xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
3 <head>
4     <title>Wicket Quickstart Archetype Homepage</title>
5 </head>
6 <body>
7 <strong>Wicket Quickstart Archetype Homepage</strong>
8 <br/>
9 <br/>
10
11 <wicket:extend>
12
13
14     <div id="admin">
15         <h1>Groups</h1>
16
17
18         <h2>Delete groups</h2>
19         <table>
20             <tr>
21                 <th>Group</th>
22                 <th>Action</th>
23             </tr>
24             <tr wicket:id="groupDelete">
25                 <td><span wicket:id="groupName">groupname</span></td>
26                 <td><a href="#" wicket:id="groupDelete">delete</a></td>
27             </tr>
28         </table>
29
30         <h2>Create group</h2>
31
32         <form method="post" wicket:id="groupCreate">
33             <table>
34                 <tr>
35                     <td><input type="text" wicket:id="groupName" value=""/></td>
36                     <td><input type="submit" value="Create Group"/></td>
37                 </tr>
38             </table>
39         </form>
40
41         <h1>Users</h1>
42
43         <h2>Delete users, change passwords, delete users from groups</h2>
44
45         <table>
46             <tr>
47                 <th>User</th>
48                 <th>Groups</th>
49                 <th>Actions</th>
50             </tr>
51             <tr wicket:id="user">
52                 <td><span wicket:id="name">username</span></td>
53                 <td><span wicket:id="groups"><span wicket:id="group">groupname</span>&nbsp;(<a href="#"
54                                                                                                wicket:id="remove">del</a>) &nbsp;</span>
55                 </td>
56                 <td>
57                     <a href="#" wicket:id="delete">delete</a>
58
59                     <form wicket:id="changePasswordForm" method="post">
60                         <table>
61                             <tr>
62                                 <td><input type="password" wicket:id="password"/></td>
63                                 <td><input type="submit" value="Submit"/></td>
64                             </tr>
65                         </table>
66                     </form>
67                 </td>
68             </tr>
69         </table>
70
71         <h2>Create user</h2>
72
73         <form wicket:id="createUserForm">
74             <table>
75                 <tr>
76                     <th>Username</th>
77                     <td><input type="text" wicket:id="user" value=""/></td>
78                 </tr>
79                 <tr>
80                     <th>Password</th>
81                     <td><input type="password" wicket:id="password"/></td>
82                 </tr>
83                 <!--
84                 <tr>
85                     <th>Group</th>
86                     <td>
87                         <select wicket:id="group">
88                             <option>group1</option>
89                             <option>group2</option>
90                         </select>
91                     </td>
92                 </tr>
93                 -->
94                 <tr>
95                     <th></th>
96                     <th><input type="submit" value="Create user"/></th>
97                 </tr>
98             </table>
99         </form>
100
101
102         <h2>Add user to group</h2>
103
104     </div>
105 </wicket:extend>
106
107 </body>
108 </html>