2015-06-15 21:49:16 +00:00
{{define "body"}}
< div class = "container-fluid" >
< div class = "row" >
< div class = "col-sm-3 col-md-2 sidebar" >
< ul class = "nav nav-sidebar" >
2015-07-28 00:44:10 +00:00
< li > < a href = "/" > Dashboard< / a >
2015-06-15 21:49:16 +00:00
< / li >
2015-06-17 04:09:27 +00:00
< li > < a href = "/campaigns" > Campaigns< / a >
2015-06-15 21:49:16 +00:00
< / li >
2015-06-17 04:09:27 +00:00
< li > < a href = "/users" > Users & Groups< / a >
2015-06-15 21:49:16 +00:00
< / li >
2015-08-14 23:24:02 +00:00
< li class = "active" > < a href = "/templates" > Email Templates< / a >
2015-06-15 21:49:16 +00:00
< / li >
2015-06-17 04:09:27 +00:00
< li > < a href = "/landing_pages" > Landing Pages< / a >
2015-06-15 21:49:16 +00:00
< / li >
2016-02-20 22:39:23 +00:00
< li > < a href = "/sending_profiles" > Sending Profiles< / a >
< / li >
2015-06-17 04:09:27 +00:00
< li > < a href = "/settings" > Settings< / a >
2015-06-15 21:49:16 +00:00
< / li >
2016-02-20 22:39:23 +00:00
< li > < hr > < / li >
2017-01-14 23:33:37 +00:00
< li > < a href = "https://gophish.gitbooks.io/user-guide/content/" > User Guide< / a >
2016-02-20 22:39:23 +00:00
< / li >
2015-06-15 21:49:16 +00:00
< li > < a href = "/api/" > API Documentation< / a >
< / li >
< / ul >
< / div >
< / div >
< / div >
2015-06-24 04:02:29 +00:00
< div class = "col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main" >
< div class = "row" >
< h1 class = "page-header" >
Email Templates
< / h1 >
< / div >
2015-06-21 21:10:47 +00:00
< div id = "flashes" class = "row" > < / div >
2015-06-15 21:49:16 +00:00
< div class = "row" >
2015-08-14 23:24:02 +00:00
< button type = "button" class = "btn btn-primary" onclick = "edit(-1)" data-toggle = "modal" data-target = "#modal" > < i class = "fa fa-plus" > < / i > New Template< / button >
2015-06-15 21:49:16 +00:00
< / div >
2015-08-14 23:24:02 +00:00
< div id = "loading" >
< i class = "fa fa-spinner fa-spin fa-4x" > < / i >
< / div >
< div id = "emptyMessage" class = "row" style = "display:none;" >
2015-06-21 21:10:47 +00:00
< div class = "alert alert-info" >
2015-08-14 23:24:02 +00:00
No templates yet. Let's create one!
2015-06-15 21:49:16 +00:00
< / div >
< / div >
2015-06-24 04:02:29 +00:00
< div class = "row" >
< table id = "templateTable" class = "table" style = "display:none;" >
< thead >
< tr >
< th > Name< / th >
< th > Modified Date< / th >
2016-01-17 21:27:11 +00:00
< th class = "col-md-2 no-sort" > < / th >
2015-06-24 04:02:29 +00:00
< / tr >
< / thead >
< tbody >
< / tbody >
< / table >
< / div >
2015-06-15 21:49:16 +00:00
< / div >
2015-06-24 04:02:29 +00:00
<!-- Modal -->
< div class = "modal fade" id = "modal" tabindex = "-1" role = "dialog" aria-labelledby = "modalLabel" >
2017-02-20 00:43:08 +00:00
< div class = "modal-dialog" role = "document" >
< div class = "modal-content" >
<!-- New Template Modal -->
< div class = "modal-header" >
< button type = "button" class = "close" data-dismiss = "modal" aria-label = "Close" onclick = "dismiss()" > < span aria-hidden = "true" > × < / span > < / button >
< h4 class = "modal-title" id = "templateModalLabel" > New Template< / h4 >
2015-06-24 04:02:29 +00:00
< / div >
2017-02-20 00:43:08 +00:00
< div class = "modal-body" >
< div class = "row" id = "modal.flashes" > < / div >
< label class = "control-label" for = "name" > Name:< / label >
< div class = "form-group" >
< input type = "text" class = "form-control" ng-model = "template.name" placeholder = "Template name" id = "name" autofocus / >
< / div >
< div class = "form-group" >
< button class = "btn btn-danger" data-toggle = "modal" data-target = "#importEmailModal" > < i class = "fa fa-envelope" > < / i > Import Email< / button >
< / div >
2018-03-27 02:28:59 +00:00
< label class = "control-label" for = "envelope-sender" > Envelope Sender: < i class = "fa fa-question-circle" data-toggle = "tooltip" data-placement = "right" title = "This sender is shown to the user by most (all?) mailclients. Defaults to the SMTP-From as defined by Sender profile." > < / i > < / label >
< div class = "form-group" >
< input type = "text" class = "form-control" placeholder = "John Doe <john.doe@victim.com>" id = "envelope-sender" / >
< / div >
2017-02-20 00:43:08 +00:00
< label class = "control-label" for = "subject" > Subject:< / label >
< div class = "form-group" >
< input type = "text" class = "form-control" placeholder = "Email Subject" id = "subject" / >
< / div >
<!-- Nav tabs -->
< ul class = "nav nav-tabs" role = "tablist" >
< li class = "active" role = "text" > < a href = "#text" aria-controls = "text" role = "tab" data-toggle = "tab" > Text< / a > < / li >
< li role = "html" > < a href = "#html" aria-controls = "html" role = "tab" data-toggle = "tab" > HTML< / a > < / li >
< / ul >
<!-- Tab panes -->
< div class = "tab-content" >
< div role = "tabpanel" class = "tab-pane active" id = "text" >
< textarea rows = "10" id = "text_editor" class = "gophish-editor form-control" placeholder = "Plaintext" > < / textarea >
< / div >
< div role = "tabpanel" class = "tab-pane" id = "html" >
< textarea id = "html_editor" > < / textarea >
< / div >
2015-06-24 04:02:29 +00:00
< / div >
2017-02-20 00:43:08 +00:00
< div class = "checkbox checkbox-primary" >
< input id = "use_tracker_checkbox" type = "checkbox" checked >
< label for = "use_tracker_checkbox" > Add Tracking Image< / label >
2015-06-24 04:02:29 +00:00
< / div >
2017-02-20 00:43:08 +00:00
< span class = "btn btn-danger btn-file" > < i class = "fa fa-plus" > < / i > Add Files
< input id = "attachmentUpload" type = "file" onchange = "attach(this.files)" multiple >
< / span >
< br / >
< br / >
< table id = "attachmentsTable" class = "table" >
< thead >
< tr >
< th class = "col-md-1 no-sort" > < / th >
< th class = "col-md-10" > Name< / th >
< th class = "col-md-1 no-sort" > < / th >
< th class = "datatable_hidden no-sort" > Content< / th >
< th class = "datatable_hidden no-sort" > Type< / th >
< / tr >
< / thead >
< tbody >
< / tbody >
< / table >
< hr >
2015-06-24 04:02:29 +00:00
< / div >
2017-02-20 00:43:08 +00:00
< div class = "modal-footer" >
< button type = "button" data-dismiss = "modal" class = "btn btn-default" onclick = "dismiss()" > Cancel< / button >
< button type = "button" class = "btn btn-primary" id = "modalSubmit" > Save Template< / button >
2016-01-14 04:42:16 +00:00
< / div >
2015-06-24 04:02:29 +00:00
< / div >
< / div >
2015-09-15 04:42:29 +00:00
< / div >
<!-- Modal -->
< div class = "modal fade" id = "importEmailModal" tabindex = "-1" role = "dialog" aria-labelledby = "modalLabel" >
2017-02-20 00:43:08 +00:00
< div class = "modal-dialog" role = "document" >
< div class = "modal-content" >
<!-- New Email Modal -->
< div class = "modal-header" >
< button type = "button" class = "close" data-dismiss = "modal" aria-label = "Close" > < span aria-hidden = "true" > × < / span > < / button >
< h4 class = "modal-title" id = "importEmailModalLabel" > Import Email< / h4 >
< / div >
< div class = "modal-body" >
< div class = "row" id = "modal.flashes" > < / div >
< label class = "control-label" for = "email" > Email Content:< / label >
< div class = "form-group" >
2015-09-16 01:39:33 +00:00
< textarea rows = "10" id = "email_content" class = "gophish-editor form-control" placeholder = "Raw Email Source" > < / textarea >
2017-02-20 00:43:08 +00:00
< / div >
< div class = "checkbox checkbox-primary" >
< input id = "convert_links_checkbox" type = "checkbox" checked >
< label for = "convert_links_checkbox" > Change Links to Point to Landing Page< / label >
< / div >
2015-09-15 04:42:29 +00:00
< / div >
2017-02-20 00:43:08 +00:00
< div class = "modal-footer" >
< button type = "button" data-dismiss = "modal" class = "btn btn-default" > Cancel< / button >
< button type = "button" class = "btn btn-primary" id = "modalSubmit" onclick = "importEmail()" > Import< / button >
2016-03-11 02:35:33 +00:00
< / div >
2015-09-15 04:42:29 +00:00
< / div >
< / div >
2015-06-24 04:02:29 +00:00
< / div >
2015-06-15 21:49:16 +00:00
{{end}}
2015-06-21 21:10:47 +00:00
{{define "scripts"}}
2017-01-08 20:35:08 +00:00
< script src = "/js/src/vendor/ckeditor/ckeditor.js" > < / script >
< script src = "/js/src/vendor/ckeditor/adapters/jquery.js" > < / script >
< script src = "/js/dist/app/templates.min.js" > < / script >
2015-06-21 21:10:47 +00:00
{{end}}