🎣 Open-Source Phishing Toolkit
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
4.2 KiB

  1. {{define "body"}}
  2. <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
  3. <div class="row">
  4. <h1 class="page-header">
  5. {{.Title}}
  6. </h1>
  7. </div>
  8. <div id="flashes" class="row">
  9. {{template "flashes" .Flashes}}
  10. </div>
  11. <div class="row">
  12. <button type="button" class="btn btn-primary" id="new_button" data-toggle="modal" data-backdrop="static"
  13. data-user-id="-1" data-target="#modal">
  14. <i class="fa fa-plus"></i> New User</button>
  15. </div>
  16. &nbsp;
  17. <div id="loading">
  18. <i class="fa fa-spinner fa-spin fa-4x"></i>
  19. </div>
  20. <div class="row">
  21. <table id="userTable" class="table" style="display:none;">
  22. <thead>
  23. <tr>
  24. <th>Username</th>
  25. <th>Role</th>
  26. <th>Last Login</th>
  27. <th class="col-md-2 no-sort"></th>
  28. </tr>
  29. </thead>
  30. <tbody>
  31. </tbody>
  32. </table>
  33. </div>
  34. </div>
  35. <!-- Modal -->
  36. <div class="modal fade" id="modal" tabindex="-1" role="dialog" aria-labelledby="modalLabel">
  37. <div class="modal-dialog" role="document">
  38. <div class="modal-content">
  39. <div class="modal-header">
  40. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  41. <span aria-hidden="true">&times;</span>
  42. </button>
  43. <h4 class="modal-title" id="groupModalLabel">New User</h4>
  44. </div>
  45. <div class="modal-body" id="modal_body">
  46. <div class="row" id="modal.flashes"></div>
  47. <label class="control-label" for="username">Username:</label>
  48. <div class="form-group">
  49. <input type="text" class="form-control" placeholder="Username" id="username" autofocus />
  50. </div>
  51. <label class="control-label" for="password">Password:</label>
  52. <div class="form-group">
  53. <input type="password" class="form-control" autocomplete="new-password" placeholder="Password" id="password" required />
  54. <div class="hidden" id="password-strength-container">
  55. <div class="progress" id="password-strength">
  56. <div id="password-strength-bar" class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
  57. </div>
  58. <span id="password-strength-description"></span>
  59. </div>
  60. </div>
  61. <label class="control-label" for="confirm_password">Confirm Password:</label>
  62. <div class="form-group">
  63. <input type="password" class="form-control" placeholder="Confirm Password" id="confirm_password"
  64. required />
  65. </div>
  66. <div class="checkbox checkbox-primary">
  67. <input id="force_password_change_checkbox" type="checkbox" checked>
  68. <label for="force_password_change_checkbox">Require the user to set a new password</label>
  69. </div>
  70. <div class="checkbox checkbox-primary">
  71. <input id="account_locked_checkbox" type="checkbox">
  72. <label for="account_locked_checkbox">Account Locked</label>
  73. </div>
  74. <label class="control-label" for="role">Role:</label>
  75. <div class="form-group" id="role-select">
  76. <select class="form-control" placeholder="" id="role" />
  77. <option value="admin">Admin</option>
  78. <option value="user">User</option>
  79. </select>
  80. </div>
  81. </div>
  82. <div class="modal-footer">
  83. <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  84. <button type="button" class="btn btn-primary" id="modalSubmit">Save changes</button>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. {{end}} {{define "scripts"}}
  90. <script src="/js/dist/app/passwords.min.js"></script>
  91. <script src="/js/dist/app/users.min.js"></script>
  92. {{end}}