github.com/bluestoneag/bluephish@v0.1.0/templates/templates.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              Email Templates
     6          </h1>
     7      </div>
     8      <div id="flashes" class="row"></div>
     9      <div class="row">
    10          <button type="button" class="btn btn-primary" onclick="edit(-1)" data-toggle="modal" data-backdrop="static"
    11              data-target="#modal"><i class="fa fa-plus"></i> New Template</button>
    12      </div>
    13      &nbsp;
    14      <div id="loading">
    15          <i class="fa fa-spinner fa-spin fa-4x"></i>
    16      </div>
    17      <div id="emptyMessage" class="row" style="display:none;">
    18          <div class="alert alert-info">
    19              No templates yet. Let's create one!
    20          </div>
    21      </div>
    22      <div class="row">
    23          <table id="templateTable" class="table" style="display:none;">
    24              <thead>
    25                  <tr>
    26                      <th>Name</th>
    27                      <th>Modified Date</th>
    28                      <th class="col-md-2 no-sort"></th>
    29                  </tr>
    30              </thead>
    31              <tbody>
    32              </tbody>
    33          </table>
    34      </div>
    35  </div>
    36  <!-- Modal -->
    37  <div class="modal fade" id="modal" tabindex="-1" role="dialog" aria-labelledby="modalLabel">
    38      <div class="modal-dialog" role="document">
    39          <div class="modal-content">
    40              <!-- New Template Modal -->
    41              <div class="modal-header">
    42                  <button type="button" class="close" data-dismiss="modal" aria-label="Close" onclick="dismiss()"><span
    43                          aria-hidden="true">&times;</span></button>
    44                  <h4 class="modal-title" id="templateModalLabel">New Template</h4>
    45              </div>
    46              <div class="modal-body">
    47                  <div class="row" id="modal.flashes"></div>
    48                  <label class="control-label" for="name">Name:</label>
    49                  <div class="form-group">
    50                      <input type="text" class="form-control" ng-model="template.name" placeholder="Template name" id="name"
    51                          autofocus />
    52                  </div>
    53                  <div class="form-group">
    54                      <button class="btn btn-danger" data-toggle="modal" data-backdrop="static" data-target="#importEmailModal"><i
    55                              class="fa fa-envelope"></i>
    56                          Import Email</button>
    57                  </div>
    58                  <label class="control-label" for="subject">Subject:</label>
    59                  <div class="form-group">
    60                      <input type="text" class="form-control" placeholder="Email Subject" id="subject" />
    61                  </div>
    62                  <!-- Nav tabs -->
    63                  <ul class="nav nav-tabs" role="tablist">
    64                      <li class="active" role="text"><a href="#text" aria-controls="text" role="tab" data-toggle="tab">Text</a></li>
    65                      <li role="html"><a href="#html" aria-controls="html" role="tab" data-toggle="tab">HTML</a></li>
    66                  </ul>
    67                  <!-- Tab panes -->
    68                  <div class="tab-content">
    69                      <div role="tabpanel" class="tab-pane active" id="text">
    70                          <textarea rows="10" id="text_editor" class="gophish-editor form-control" placeholder="Plaintext"></textarea>
    71                      </div>
    72                      <div role="tabpanel" class="tab-pane" id="html">
    73                          <textarea id="html_editor"></textarea>
    74                      </div>
    75                  </div>
    76                  <div class="checkbox checkbox-primary">
    77                      <input id="use_tracker_checkbox" type="checkbox" checked>
    78                      <label for="use_tracker_checkbox">Add Tracking Image</label>
    79                  </div>
    80                  <span class="btn btn-danger btn-file"><i class="fa fa-plus"></i> Add Files
    81                      <input id="attachmentUpload" type="file" onchange="attach(this.files)" multiple>
    82                  </span>
    83                  <br />
    84                  <br />
    85                  <table id="attachmentsTable" class="table">
    86                      <thead>
    87                          <tr>
    88                              <th class="col-md-1 no-sort"></th>
    89                              <th class="col-md-10">Name</th>
    90                              <th class="col-md-1 no-sort"></th>
    91                              <th class="datatable_hidden no-sort">Content</th>
    92                              <th class="datatable_hidden no-sort">Type</th>
    93                          </tr>
    94                      </thead>
    95                      <tbody>
    96                      </tbody>
    97                  </table>
    98                  <hr>
    99              </div>
   100              <div class="modal-footer">
   101                  <button type="button" data-dismiss="modal" class="btn btn-default" onclick="dismiss()">Cancel</button>
   102                  <button type="button" class="btn btn-primary" id="modalSubmit">Save Template</button>
   103              </div>
   104          </div>
   105      </div>
   106  </div>
   107  <!-- Modal -->
   108  <div class="modal fade" id="importEmailModal" tabindex="-1" role="dialog" aria-labelledby="modalLabel">
   109      <div class="modal-dialog" role="document">
   110          <div class="modal-content">
   111              <!-- New Email Modal -->
   112              <div class="modal-header">
   113                  <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
   114                  <h4 class="modal-title" id="importEmailModalLabel">Import Email</h4>
   115              </div>
   116              <div class="modal-body">
   117                  <div class="row" id="modal.flashes"></div>
   118                  <label class="control-label" for="email">Email Content:</label>
   119                  <div class="form-group">
   120                      <textarea rows="10" id="email_content" class="gophish-editor form-control" placeholder="Raw Email Source"></textarea>
   121                  </div>
   122                  <div class="checkbox checkbox-primary">
   123                      <input id="convert_links_checkbox" type="checkbox" checked>
   124                      <label for="convert_links_checkbox">Change Links to Point to Landing Page</label>
   125                  </div>
   126              </div>
   127              <div class="modal-footer">
   128                  <button type="button" data-dismiss="modal" class="btn btn-default">Cancel</button>
   129                  <button type="button" class="btn btn-primary" id="modalSubmit" onclick="importEmail()">Import</button>
   130              </div>
   131          </div>
   132      </div>
   133  </div>
   134  {{end}}
   135  {{define "scripts"}}
   136  <script src="/js/src/vendor/ckeditor/ckeditor.js"></script>
   137  <script src="/js/src/vendor/ckeditor/adapters/jquery.js"></script>
   138  <script src="/js/dist/app/autocomplete.min.js"></script>
   139  <script src="/js/dist/app/templates.min.js"></script>
   140  {{end}}