summaryrefslogtreecommitdiff
path: root/UI/Admin/main.html
blob: 56f4b2f8d82a4890fc99b682fb50e3488a31f0bb (plain)
  1. <?lsmb block main?>
  2. <div class="admin">
  3. <!-- first, a list of all active users -->
  4. <center>
  5. <strong><font size="16"> Administration</font></strong>
  6. </center>
  7. <?lsmb if message?>
  8. <strong><font color="red"><?lsmb message?></font></strong>
  9. <?lsmb end?>
  10. <form name="userlist" method="POST" action="admin.pl">
  11. <table>
  12. <tr>
  13. <td></td>
  14. <td>User ID</td>
  15. <td>Username</td>
  16. <td>Active</td>
  17. <td>Date Added</td>
  18. </tr>
  19. <?lsmb FOREACH user = users.all ?>
  20. <tr>
  21. <td></td>
  22. <td>
  23. <a href="/admin.pl?action=edit_user&amp;user=<?lsmb user.id?>">
  24. <?lsmb user.id?>
  25. </a>
  26. </td>
  27. <td>
  28. <?lsmb user.username?>
  29. </td>
  30. <td>
  31. <?lsmb user.active?>
  32. </td>
  33. <td>
  34. <?lsmb user.creation_date?>
  35. </td>
  36. </tr>
  37. <?lsmb end?>
  38. </table>
  39. <hr/>
  40. <div class="buttons">
  41. <button name="method" value="new_user">New User</button>
  42. <button name="method" value="new_group">New Group</button>
  43. <button name="method" value="delete_user">Delete User</button>
  44. <button name="method" value="delete_group">Delete Group</button>
  45. </div>
  46. </form>
  47. </div>
  48. <?end?>