diff options
Diffstat (limited to 'UI')
-rw-r--r-- | UI/Admin/edit_group.html | 28 | ||||
-rw-r--r-- | UI/Admin/edit_user.html | 14 |
2 files changed, 38 insertions, 4 deletions
diff --git a/UI/Admin/edit_group.html b/UI/Admin/edit_group.html index 94a795c1..53dd4449 100644 --- a/UI/Admin/edit_group.html +++ b/UI/Admin/edit_group.html @@ -2,16 +2,36 @@ <?lsmb IF user.username ?> - <center><b>Edit User</b></center> + <center><b>Edit Group</b></center> <?lsmb ELSE ?> - <center><b>Create User</b></center> + <center><b>Create Group</b></center> <?lsmb ENDIF ?> <form name="submit_user" action="/admin.pl?"> - - + <table> + <tr> + <td>Name:</td> + <td><input type="textarea" name="name" value="<?lsmb user.username?>"/></td> + </tr> + <tr> + <td>Description:</td> + <td><textarea cols="25" rows="4"><? lsmb user.description ?></textarea></td> + </tr> + </table> + <hr/> + <table> + <tr> + <?lsmb FOREACH group IN groups ?> + <?lsmb IF loop.count % 8 == 0?> + </tr> + <tr> + <?lsmb END?> + <td><input type="checkbox" name="<?lsmb loop.index?>" value="1"/><?lsmb group.rolname?></td> + <?lsmb END?> + </tr> + </table> </form>
\ No newline at end of file diff --git a/UI/Admin/edit_user.html b/UI/Admin/edit_user.html index a7c25529..4602f8fa 100644 --- a/UI/Admin/edit_user.html +++ b/UI/Admin/edit_user.html @@ -146,6 +146,20 @@ </table> <table> + + <!-- Groups section --> + <tr> + <?lsmb FOREACH group IN groups ?> + <?lsmb IF loop.count % 8 == 0?> + </tr> + <tr> + <?lsmb END?> + <td><input type="checkbox" name="<?lsmb loop.index?>" value="1"/><?lsmb group.rolname?></td> + <?lsmb END?> + </tr> + </table> + + <table> <tr> <td><button value="new_user">Submit</button></td> <td><button name="method" value="cancel">Cancel</td> |