JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
add admin page to edit logins
[wfpl-cms.git] / admin_admins.html
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5         <meta charset="utf-8" />
6         <title><!--~$title show {~-->Accounts<!--~}~--></title>
7         <link rel="stylesheet" href="style.css" type="text/css">
8 </head>
9
10 <body>
11 <!--~$body show {~-->
12
13         <!--~form {~-->
14                 <h2><!--~new_msg {~-->Add a new account<!--~}~--><!--~edit_msg {~-->Edit account "~username html~"<!--~}~--></h2>
15
16                 <form action="~$basename~" method="post"><!--~editing {~--><div style="display: none"><input type="hidden" name="edit_id" value="~id attr~"></div><!--~}~-->
17
18                         <div class="caption">Name (optional)</div>
19                         <div class="field"><input type="text" name="name" value="~name attr~"></div>
20
21                         <div class="caption">Username (required)</div>
22                         <div class="field_notes">This is used to log in, and is case sensitive, so you may want to stick with all lowercase</div>
23                         <div class="field"><input type="text" name="username" value="~username attr~"></div>
24
25                         <div class="caption">Password (case sensitive)</div>
26                         <div class="field_notes">To disable this account, make this password blank.</div>
27                         <!--~editing {~--><div class="field_notes">Below you'll see only the encrypted version of the password. This is the only thing that's stored on the server, so if somebody has forgotten their password, the only thing that can be done about it is setting a new password using this field. If you do not edit this field, their password is unchanged.</div><!--~}~-->
28                         <div class="field"><input type="text" name="password" value="~password attr~"></div>
29
30                         <div class="caption">Role</div>
31                         <div class="field"><select name="privs"><!--~privs options~--></select></div>
32
33                         <div class="caption">&nbsp;</div>
34                         <div class="field"><input type="submit" name="save" value="Save"></div>
35
36                 </form>
37
38                 <div class="caption">&nbsp;</div>
39                 <div class="field"><!--~id {~--><a href="admin_admins?id=~id~">Cancel</a><!--~}~--><!--~id unset {~--><a href="admin_admins">Cancel</a><!--~}~--></div>
40         <!--~}~-->
41
42         <!--~listings once {~-->
43                 <h2>Accounts Listing</h2>
44
45                 <!--~listings once_if {~-->
46                         <p><a href="admin_admins?new=1">[Add a new account]</a></p>
47
48                         <table cellspacing="0" cellpadding="4" border="1" summary="">
49                                 <tr><th>Name</th><th>Username</th><th>Role</th><th>&nbsp;</th></tr><!--~listings {~-->
50                                 <tr>
51                                         <td class="listing"><a href="admin_admins?edit_id=~id~">~name html~<!--~name empty {~--><em>(blank)</em><!--~}~--></a></td>
52                                         <td class="listing"><a href="admin_admins?edit_id=~id~">~username html~<!--~username empty {~--><em>(blank)</em><!--~}~--></a></td>
53                                         <td class="listing"><a href="admin_admins?edit_id=~id~">~privs html~<!--~privs empty {~--><em>(blank)</em><!--~}~--></a></td>
54                                         <td><a href="admin_admins?admin_admins_delete_id=~id~" onclick="return confirm('Permanently delete?')">[delete this account]</a></td>
55                                 </tr><!--~}~-->
56
57                         </table>
58                 <!--~}~-->
59                 <!--~listings once_else {~-->
60                         <p>No accounts in database.</p>
61                 <!--~}~-->
62
63                 <p><a href="admin_admins?new=1">[Add a new account]</a></p>
64         <!--~}~-->
65
66 <!--~}~-->
67 </body>
68 </html>