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