diff options
author | Jakob Sack <kde@jakobsack.de> | 2011-04-16 14:59:10 +0200 |
---|---|---|
committer | Jakob Sack <kde@jakobsack.de> | 2011-04-16 14:59:10 +0200 |
commit | 4c74029489194bb007ccf5310381b9dde48aedb3 (patch) | |
tree | 2241f5e7b91acd57e6f22fbdaf224a14a3d76a02 /admin/templates | |
parent | 8465f76e7e1aa5512d62905cc60a10f0fe3f0e02 (diff) | |
download | nextcloud-server-4c74029489194bb007ccf5310381b9dde48aedb3.tar.gz nextcloud-server-4c74029489194bb007ccf5310381b9dde48aedb3.zip |
First sketch of a user administration
Diffstat (limited to 'admin/templates')
-rw-r--r-- | admin/templates/index.php | 9 | ||||
-rw-r--r-- | admin/templates/users.php | 67 |
2 files changed, 59 insertions, 17 deletions
diff --git a/admin/templates/index.php b/admin/templates/index.php index 9d0ffd84c61..fa32a67eadb 100644 --- a/admin/templates/index.php +++ b/admin/templates/index.php @@ -5,8 +5,15 @@ ?> <h1>Administration</h1> +<h2>System</h2> <ul> - <?php foreach($_["adminpages"] as $i): ?> + <?php foreach($_["syspages"] as $i): ?> + <li><a href="<?php echo $i["href"]; ?>"><?php echo $i["name"]; ?></a></li> + <?php endforeach; ?> +</ul> +<h2>Applications</h2> +<ul> + <?php foreach($_["apppages"] as $i): ?> <li><a href="<?php echo $i["href"]; ?>"><?php echo $i["name"]; ?></a></li> <?php endforeach; ?> </ul> diff --git a/admin/templates/users.php b/admin/templates/users.php index 7aa93baf496..88edc01aef2 100644 --- a/admin/templates/users.php +++ b/admin/templates/users.php @@ -9,36 +9,71 @@ <table> <thead> <tr> - <th></th> <th>Name</th> <th>Groups</th> + <th></th> </tr> <thead> <tbody> <?php foreach($_["users"] as $user): ?> <tr> - <td><input type="checkbox"></td> <td><?php echo $user["name"]; ?></td> <td><?php echo $user["groups"]; ?></td> + <td><a href="" class="edituser-button">edit</a> | <a class="removeuser-button" href="">remove</a></td> </tr> <?php endforeach; ?> </tbody> </table> +<a id="adduser-button" href="">New user</a> + <h2>Groups</h2> -<table> - <thead> - <tr> - <th>Name</th> - <th></th> - </tr> - <thead> - <tbody> - <?php foreach($_["groups"] as $group): ?> +<form> + <table> + <thead> <tr> - <td><?php echo $group["name"]; ?></td> - <td>remove</td> + <th>Name</th> + <th></th> </tr> - <?php endforeach; ?> - </tbody> -</table> + <thead> + <tbody> + <?php foreach($_["groups"] as $group): ?> + <tr> + <td><?php echo $group["name"] ?></td> + <td><a class="removegroup-button" href="">remove</a></td> + </tr> + <?php endforeach; ?> + <tr> + <td><input type="text" name="name" /></td> + <td><input type="submit" /></td> + </tr> + </tbody> + </table> +</form> + +<a id="addgroup-button" href="">Add group</a> + + +<div id="adduser-form" title="Add user"> + <form> + User name<br> + <input type="text" name="name" /><br> + Password<br> + <input type="password" name="password" /> + </form> +</div> + +<div id="edituser-form" title="Force new password"> + <form> + New password for $user<br> + <input type="password" name="password" /> + </form> +</div> + +<div id="removeuser-form" title="Remove user"> + Do you really want to delete user $user? +</div> + +<div id="removegroup-form" title="Remove Group"> + Do you really want to delete group $group? +</div> |