basic user management working.
[photos] / src / main / java / org / wamblee / photos / wicket / AdminPage.html
index 4a1ce899c2e45f6f9d8937f416f30aa3d423f33e..5567558e0fa67a3cc77fac6b7d413525b9703dc0 100644 (file)
@@ -15,6 +15,7 @@
         <h1>Groups</h1>
 
 
+        <h2>Delete groups</h2>
         <table>
             <tr>
                 <th>Group</th>
@@ -25,6 +26,9 @@
                 <td><a href="#" wicket:id="groupDelete">delete</a></td>
             </tr>
         </table>
+
+        <h2>Create group</h2>
+
         <form method="post" wicket:id="groupCreate">
             <table>
                 <tr>
             </table>
         </form>
 
+        <h1>Users</h1>
+
+        <h2>Delete users, change passwords, delete users from groups</h2>
+
+        <table>
+            <tr>
+                <th>User</th>
+                <th>Groups</th>
+                <th>Actions</th>
+            </tr>
+            <tr wicket:id="user">
+                <td><span wicket:id="name">username</span></td>
+                <td><span wicket:id="groups"><span wicket:id="group">groupname</span>&nbsp;(<a href="#"
+                                                                                               wicket:id="remove">del</a>) &nbsp;</span>
+                </td>
+                <td>
+                    <a href="#" wicket:id="delete">delete</a>
+
+                    <form wicket:id="changePasswordForm" method="post">
+                        <table>
+                            <tr>
+                                <td><input type="password" wicket:id="password"/></td>
+                                <td><input type="submit" value="Submit"/></td>
+                            </tr>
+                        </table>
+                    </form>
+                </td>
+            </tr>
+        </table>
+
+        <h2>Create user</h2>
+
+        <form wicket:id="createUserForm">
+            <table>
+                <tr>
+                    <th>Username</th>
+                    <td><input type="text" wicket:id="user" value=""/></td>
+                </tr>
+                <tr>
+                    <th>Password</th>
+                    <td><input type="password" wicket:id="password"/></td>
+                </tr>
+                <!--
+                <tr>
+                    <th>Group</th>
+                    <td>
+                        <select wicket:id="group">
+                            <option>group1</option>
+                            <option>group2</option>
+                        </select>
+                    </td>
+                </tr>
+                -->
+                <tr>
+                    <th></th>
+                    <th><input type="submit" value="Create user"/></th>
+                </tr>
+            </table>
+        </form>
+
+
+        <h2>Add user to group</h2>
+
     </div>
 </wicket:extend>