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