github.com/merlinepedra/gophish1@v0.9.0/templates/landing_pages.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          Landing Pages
     5      </h1>
     6      <div id="flashes" class="row"></div>
     7      <div class="row">
     8          <button type="button" class="btn btn-primary" onclick="edit(-1)" data-toggle="modal" data-backdrop="static"
     9              data-target="#modal"><i class="fa fa-plus"></i> New Page</button>
    10      </div>
    11      &nbsp;
    12      <div id="loading">
    13          <i class="fa fa-spinner fa-spin fa-4x"></i>
    14      </div>
    15      <div id="emptyMessage" class="row" style="display:none;">
    16          <div class="alert alert-info">
    17              No pages created yet. Let's create one!
    18          </div>
    19      </div>
    20      <div class="row">
    21          <table id="pagesTable" class="table" style="display:none;">
    22              <thead>
    23                  <tr>
    24                      <th>Name</th>
    25                      <th>Last Modified Date</th>
    26                      <th class="col-md-2 no-sort"></th>
    27                  </tr>
    28              </thead>
    29              <tbody>
    30              </tbody>
    31          </table>
    32      </div>
    33  </div>
    34  <!-- Modal -->
    35  <div class="modal fade" id="modal" tabindex="-1" role="dialog" aria-labelledby="modalLabel">
    36      <div class="modal-dialog" role="document">
    37          <div class="modal-content">
    38              <!-- New Template Modal -->
    39              <div class="modal-header">
    40                  <button type="button" class="close" data-dismiss="modal" aria-label="Close" onclick="dismiss()"><span
    41                          aria-hidden="true">&times;</span></button>
    42                  <h4 class="modal-title" id="modalLabel">New Landing Page</h4>
    43              </div>
    44              <div class="modal-body">
    45                  <div class="row" id="modal.flashes"></div>
    46                  <label class="control-label" for="name">Name:</label>
    47                  <div class="form-group">
    48                      <input type="text" class="form-control" placeholder="Page name" id="name" autofocus />
    49                  </div>
    50                  <div class="form-group">
    51                      <button class="btn btn-danger" data-toggle="modal" data-backdrop="static" data-target="#importSiteModal"><i
    52                              class="fa fa-globe"></i>
    53                          Import Site</button>
    54                  </div>
    55                  <!-- Nav tabs -->
    56                  <ul class="nav nav-tabs" role="tablist">
    57                      <li class="active" role="html"><a href="#html" aria-controls="html" role="tab" data-toggle="tab">HTML</a></li>
    58                  </ul>
    59                  <!-- Tab panes -->
    60                  <div class="tab-content">
    61                      <div role="tabpanel" class="tab-pane active" id="html">
    62                          <textarea id="html_editor"></textarea>
    63                      </div>
    64                  </div>
    65                  <div class="checkbox checkbox-primary">
    66                      <input id="capture_credentials_checkbox" type="checkbox">
    67                      <label for="capture_credentials_checkbox">Capture Submitted Data <i class="fa fa-question-circle"
    68                              data-toggle="tooltip" data-placement="right" title="If the landing page contains a form, submitted input (except passwords!) will be captured."></i></label>
    69                  </div>
    70                  <div class="checkbox checkbox-primary" id="capture_passwords">
    71                      <input id="capture_passwords_checkbox" type="checkbox">
    72                      <label for="capture_passwords_checkbox">Capture Passwords</label>
    73                      <div class="alert alert-warning">
    74                          <i class="fa fa-exclamation-circle"></i> <b>Warning:</b> Credentials are currently <b>not
    75                              encrypted</b>. This means that captured passwords are stored in the database as cleartext.
    76                          Be careful with this!
    77                      </div>
    78                  </div>
    79                  <div id="redirect_url">
    80                      <label class="control-label" for="redirect_url_input">Redirect to: <i class="fa fa-question-circle"
    81                              data-toggle="tooltip" data-placement="right" title="This option lets you redirect the user to a page after credentials are submitted."></i></label>
    82                      <div class="form-group">
    83                          <input id="redirect_url_input" class="form-control" placeholder="http://example.com" />
    84                      </div>
    85                  </div>
    86              </div>
    87              <div class="modal-footer">
    88                  <button type="button" data-dismiss="modal" class="btn btn-default" onclick="dismiss()">Cancel</button>
    89                  <button type="button" class="btn btn-primary" id="modalSubmit">Save Page</button>
    90              </div>
    91          </div>
    92      </div>
    93  </div>
    94  <!-- Modal -->
    95  <div class="modal fade" id="importSiteModal" tabindex="-1" role="dialog" aria-labelledby="importSiteModalLabel">
    96      <div class="modal-dialog" role="document">
    97          <div class="modal-content">
    98              <!-- New Template Modal -->
    99              <div class="modal-header">
   100                  <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
   101                  <h4 class="modal-title" id="importSiteModalLabel">Import Site</h4>
   102              </div>
   103              <div class="modal-body">
   104                  <div class="row" id="modal.flashes"></div>
   105                  <label class="control-label" for="url">URL:</label>
   106                  <div class="form-group">
   107                      <input type="text" class="form-control" placeholder="http://google.com" id="url" autofocus />
   108                  </div>
   109              </div>
   110              <div class="modal-footer">
   111                  <button type="button" data-dismiss="modal" class="btn btn-default">Cancel</button>
   112                  <button type="button" class="btn btn-primary" id="modalSubmit" onclick="importSite()">Import</button>
   113              </div>
   114          </div>
   115      </div>
   116  </div>
   117  {{end}}
   118  {{define "scripts"}}
   119  <script src="/js/src/vendor/ckeditor/ckeditor.js"></script>
   120  <script src="/js/src/vendor/ckeditor/adapters/jquery.js"></script>
   121  <script src="/js/dist/app/autocomplete.min.js"></script>
   122  <script src="/js/dist/app/landing_pages.min.js"></script>
   123  {{end}}