github.com/merlinepedra/gopphish-attack@v0.9.0/templates/webhooks.html (about) 1 {{define "body"}} 2 <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main"> 3 <h1 class="page-header"> 4 {{.Title}} 5 </h1> 6 <div id="flashes" class="row"></div> 7 <div class="row"> 8 <button type="button" class="btn btn-primary" id="new_button" data-toggle="modal" data-backdrop="static" 9 data-webhook-id="-1" data-target="#modal"> 10 <i class="fa fa-plus"></i> New Webhook</button> 11 </div> 12 13 <div id="loading"> 14 <i class="fa fa-spinner fa-spin fa-4x"></i> 15 </div> 16 <div class="row"> 17 <table id="webhookTable" class="table" style="display:none;"> 18 <thead> 19 <tr> 20 <th class="col-md-2 no-sort">Title</th> 21 <th class="col-md-2 no-sort">Url</th> 22 <th class="col-md-2 no-">Is active</th> 23 <th class="col-md-2 no-sort"></th> 24 </tr> 25 </thead> 26 <tbody> 27 </tbody> 28 </table> 29 </div> 30 </div> 31 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">Add or Edit Webhook</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="title">Name:</label> 45 <div class="form-group"> 46 <input type="text" class="form-control" placeholder="Name" id="name" required autofocus /> 47 </div> 48 49 <label class="control-label" for="url">URL:</label> 50 <div class="form-group"> 51 <input type="text" class="form-control" placeholder="https://example.com/webhook1" id="url" required /> 52 </div> 53 54 <label class="control-label" for="secret">Secret:</label> 55 <div class="form-group"> 56 <input type="text" class="form-control" placeholder="Secret" id="secret" required /> 57 </div> 58 59 <div class="checkbox checkbox-primary"> 60 <input type="checkbox" id="is_active" value="true" /> 61 <label for="is_active">Is active <i class="fa fa-question-circle" 62 data-toggle="tooltip" data-placement="right" 63 title="Data is sent only to the active webhooks"></i> 64 </label> 65 </div> 66 </div> 67 <div class="modal-footer"> 68 <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> 69 <button type="button" class="btn btn-primary" id="modalSubmit">Save changes</button> 70 </div> 71 </div> 72 </div> 73 </div> 74 75 76 {{end}} {{define "scripts"}} 77 <script src="/js/dist/app/webhooks.min.js"></script> 78 {{end}}