source: trunk/templates/admin/showusers.tmpl@ 862

Last change on this file since 862 was 789, checked in by Kris Deugau, 9 years ago

/trunk

Add an ACL flag for merge operations. This is not automatically included
in the "Admin" priviledge per request, since a merge operation can
potentially wipe virtually the entire dataset. See #8.

File size: 1.9 KB
RevLine 
[484]1Notes:
2<ul>
[789]3<li>Admin users automatically get all other priviledges except "merge".
[484]4<li>Everyone has basic read access.
5</ul>
6<hr>Add new user:<form action="admin.cgi" method="POST">
[513]7<fieldset><legend class="noshow">&nbsp;</legend>
[484]8Username: <input name=username><br>
9Password: <input name=password> <input type=checkbox name=preenc>Password is pre-encrypted (MUST be crypt() encrypted)<br>
10<input type=submit value='Add user'><input type=hidden name=action value=newuser>
11</fieldset></form>
12
13<hr>Users with access:
14
15<table border="1">
16<tr><td></td><td align="center" colspan="3">General access</td></tr>
[789]17<tr><td>Username</td><td>Add new</td><td>Change</td><td>Delete</td><td>Systems/Networking</td><td>Merge</td><td>Admin user</td></tr>
[484]18
19<TMPL_LOOP name=userlist>
20<tr>
21<form action="admin.cgi" method="POST">
[513]22<fieldset><legend class="noshow">&nbsp;</legend>
[484]23<input type="hidden" name="action" value="updacl">
24<td><TMPL_VAR NAME=username><input type="hidden" name="username" value="<TMPL_VAR NAME=username>"></td>
25<td><input type=checkbox name="add"<TMPL_IF can_add> checked="checked"</TMPL_IF>></td>
26<td><input type=checkbox name="change"<TMPL_IF can_change> checked="checked"</TMPL_IF>></td>
27<td><input type=checkbox name="del"<TMPL_IF can_del> checked="checked"</TMPL_IF>></td>
28<td><input type=checkbox name="sysnet"<TMPL_IF sysnet> checked="checked"</TMPL_IF>></td>
[789]29<td><input type=checkbox name="merge"<TMPL_IF can_merge> checked="checked"</TMPL_IF>></td>
[484]30<td><input type=checkbox name="admin"<TMPL_IF is_admin> checked="checked"</TMPL_IF>></td>
31<td><input type=submit value="Update"></td>
32</fieldset></form>
33<td>
34<form action="admin.cgi" method="POST">
[513]35<fieldset><legend class="noshow">&nbsp;</legend>
[484]36<input type=hidden name=action value=deluser>
37<input type=hidden name=username value="<TMPL_VAR NAME=username>">
38<input type=submit value="Delete user">
39</fieldset></form>
40</td>
41<td><TMPL_VAR NAME=acl></td>
42</tr>
43</TMPL_LOOP>
44</table>
Note: See TracBrowser for help on using the repository browser.