JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
make footer editable in cms
[wfpl-cms.git] / admin_users.html
1 <!DOCTYPE html>
2
3 <html lang="en">
4 <head>
5         <meta charset="utf-8" />
6         <title><!--~$title show {~-->~$host~ Admin: Manage Accounts<!--~}~--></title>
7 </head>
8
9 <body>
10 <!--~$body show {~-->
11
12         <!--~form {~-->
13                 <h1>~$host~ Admin Control Panel</h1>
14
15                 <h2><!--~id unset {~-->Add a new account<!--~}~--><!--~id {~-->Edit account "~name html~"<!--~}~--></h2>
16
17                 <form action="admin_users" method="post"><!--~id {~--><div style="display: none"><input type="hidden" name="edit_id" value="~id attr~"></div><!--~}~-->
18
19                         <div class="caption">Role</div>
20                         <div class="field"><select name="role"><!--~role options~--></select></div>
21
22                         <div class="caption">Name (optional)</div>
23                         <div class="field"><input type="text" name="name" value="~name attr~"></div>
24
25                         <div class="caption">Username</div>
26                         <div class="field_notes">This is used to log in. It is not case sensitive, and symbols/spaces/etc are ignored.</div>
27                         <div class="field~username_bad {~ field_error~}~"><input type="text" name="username" value="~username attr~"></div>
28
29                         <div class="caption">Password</div>
30                         <!--~id unset {~--><div class="field_notes">If this is left blank, the user will be unable to log in.</div><!--~}~-->
31                         <!--~id {~--><div class="field_notes">Leave this blank to leave the password unchanged.</div><!--~}~-->
32                         <div class="field_notes">Password suggestions: ~password_suggestions {~<code class="password_suggestion">~password_suggestions html~</code>~ sep {~ ~}~~}~</div>
33                         <div class="field~password_bad {~ field_error~}~">
34                                 <input type="password" name="pass1" value=""><br>
35                                 <input type="password" name="pass2" value="">
36                         </div>
37
38                         <div class="caption"></div>
39                         <div class="field"><input type="submit" name="save" value="Save"></div>
40
41                 </form>
42
43                 <div class="caption">&nbsp;</div>
44                 <div class="field"><a href="admin_users~id {~?id=~id~~}~">Cancel</a></div>
45         <!--~}~-->
46
47         <!--~listings {~-->
48                 <h1>~$host~ Admin Control Panel</h1>
49
50                 <h2>Manage Accounts</h2>
51
52                 <p>On this page you can manage who can log into this site, and what sort of things they have permission to do once logged in.</p>
53
54                 <!--~rows once_if {~-->
55                         <p><a href="admin_users?new=1">[Add a new account]</a></p>
56
57                         <table cellspacing="0" cellpadding="4" border="0" summary="" class="evenodd">
58                                 <tr>
59                                         <th><a href="?sort=~sorting-by-role~role">Role</a></th>
60                                         <th><a href="?sort=~sorting-by-name~name">Name</a></th>
61                                         <th><a href="?sort=~sorting-by-username~username">Username</a></th>
62                                         <th><a href="?sort=~sorting-by-last_login~last_login">Last Login</a></th>
63                                         <th><a href="?sort=~sorting-by-last_active~last_active">Last Active</a></th>
64                                         <th>&nbsp;</th>
65                                 </tr><!--~rows {~-->
66                                 <tr>
67                                         <td class="listing"><a href="admin_users?edit_id=~id~">~role html~<!--~role empty {~--><em>(blank)</em><!--~}~--></a></td>
68                                         <td class="listing"><a href="admin_users?edit_id=~id~">~name html~<!--~name empty {~--><em>(blank)</em><!--~}~--></a></td>
69                                         <td class="listing"><a href="admin_users?edit_id=~id~">~username html~<!--~username empty {~--><em>(blank)</em><!--~}~--></a></td>
70                                         <td class="listing"><a href="admin_users?edit_id=~id~" class="unix_date">~last_login html~</a></td>
71                                         <td class="listing"><a href="admin_users?edit_id=~id~" class="unix_time">~last_active html~</a></td>
72                                         <td><a href="admin_users?admin_users_delete_id=~id~" onclick="return confirm('Permanently delete?')">[delete this account]</a></td>
73                                 </tr><!--~}~-->
74
75                         </table>
76                         <p><a href="?download_csv=1">Download as CSV file</a></p>
77                 <!--~}~-->
78                 <!--~rows once_else {~-->
79                         <p>No accounts in database.</p>
80                 <!--~}~-->
81
82                 <p><a href="admin_users?new=1">[Add a new account]</a></p>
83         <!--~}~-->
84
85 <!--~}~-->
86 </body>
87 </html>