github.com/merlinepedra/gopphish-attack@v0.9.0/templates/users.html (about) 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"></div> 9 <div class="row"> 10 <button type="button" class="btn btn-primary" id="new_button" data-toggle="modal" data-backdrop="static" 11 data-user-id="-1" data-target="#modal"> 12 <i class="fa fa-plus"></i> New User</button> 13 </div> 14 15 <div id="loading"> 16 <i class="fa fa-spinner fa-spin fa-4x"></i> 17 </div> 18 <div class="row"> 19 <table id="userTable" class="table" style="display:none;"> 20 <thead> 21 <tr> 22 <th>Username</th> 23 <th>Role</th> 24 <th class="col-md-2 no-sort"></th> 25 </tr> 26 </thead> 27 <tbody> 28 </tbody> 29 </table> 30 </div> 31 </div> 32 <!-- Modal --> 33 <div class="modal fade" id="modal" tabindex="-1" role="dialog" aria-labelledby="modalLabel"> 34 <div class="modal-dialog" role="document"> 35 <div class="modal-content"> 36 <div class="modal-header"> 37 <button type="button" class="close" data-dismiss="modal" aria-label="Close"> 38 <span aria-hidden="true">×</span> 39 </button> 40 <h4 class="modal-title" id="groupModalLabel">New User</h4> 41 </div> 42 <div class="modal-body" id="modal_body"> 43 <div class="row" id="modal.flashes"></div> 44 <label class="control-label" for="username">Username:</label> 45 <div class="form-group"> 46 <input type="text" class="form-control" placeholder="Username" id="username" autofocus /> 47 </div> 48 <label class="control-label" for="password">Password:</label> 49 <div class="form-group"> 50 <input type="password" class="form-control" placeholder="Password" id="password" required /> 51 </div> 52 <label class="control-label" for="confirm_password">Confirm Password:</label> 53 <div class="form-group"> 54 <input type="password" class="form-control" placeholder="Confirm Password" id="confirm_password" 55 required /> 56 </div> 57 <label class="control-label" for="role">Role:</label> 58 <div class="form-group" id="role-select"> 59 <select class="form-control" placeholder="" id="role" /> 60 <option value="admin">Admin</option> 61 <option value="user">User</option> 62 </select> 63 </div> 64 </div> 65 <div class="modal-footer"> 66 <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> 67 <button type="button" class="btn btn-primary" id="modalSubmit">Save changes</button> 68 </div> 69 </div> 70 </div> 71 </div> 72 {{end}} {{define "scripts"}} 73 <script src="/js/dist/app/users.min.js"></script> 74 {{end}}