2016-02-20 23:15:34 +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" >
< li > < a href = "/" > Dashboard< / a >
< / li >
< li > < a href = "/campaigns" > Campaigns< / a >
< / li >
< li > < a href = "/users" > Users & Groups< / a >
< / li >
< li > < a href = "/templates" > Email Templates< / a >
< / li >
< li > < a href = "/landing_pages" > Landing Pages< / a >
< / li >
< li class = "active" > < a href = "/sending_profiles" > Sending Profiles< / a >
< / li >
< li > < a href = "/settings" > Settings< / a >
< / li >
< li > < hr > < / li >
< li > < a href = "/gophish_user_guide.pdf" > User Guide< / a >
< / li >
< li > < a href = "/api/" > API Documentation< / a >
< / li >
< / ul >
< / div >
< / div >
< / div >
< div class = "col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main" >
< h1 class = "page-header" >
Sending Profiles
< / h1 >
< div id = "flashes" class = "row" > < / div >
< div class = "row" >
2016-02-21 04:10:53 +00:00
< button type = "button" class = "btn btn-primary" onclick = "edit(-1)" data-toggle = "modal" data-target = "#newProfileModal" > < i class = "fa fa-plus" > < / i > New Profile< / button >
2016-02-20 23:15:34 +00:00
< / div >
< div id = "loading" >
< i class = "fa fa-spinner fa-spin fa-4x" > < / i >
< / div >
< div id = "emptyMessage" class = "row" style = "display:none;" >
< div class = "alert alert-info" >
2016-02-21 04:10:53 +00:00
No profiles created yet. Let's create one!
2016-02-20 23:15:34 +00:00
< / div >
< / div >
< div class = "row" >
2016-02-21 04:10:53 +00:00
< table id = "profileTable" class = "table" style = "display:none;" >
2016-02-20 23:15:34 +00:00
< thead >
< tr >
< th > Name< / th >
2016-02-21 04:10:53 +00:00
< th > Interface Type< / th >
2016-02-20 23:15:34 +00:00
< th > Last Modified Date< / th >
< th class = "col-md-2 no-sort" > < / th >
< / tr >
< / thead >
< tbody >
< / tbody >
< / table >
< / div >
< / div >
<!-- Modal -->
2016-02-21 04:10:53 +00:00
< div class = "modal fade" id = "newProfileModal" tabindex = "-1" role = "dialog" aria-labelledby = "modalLabel" >
2016-02-20 23:15:34 +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" > < span aria-hidden = "true" > × < / span > < / button >
2016-02-21 04:10:53 +00:00
< h4 class = "modal-title" id = "profileModalLabel" > New Sending Profile< / h4 >
2016-02-20 23:15:34 +00:00
< / div >
< div class = "modal-body" >
< div class = "row" id = "modal.flashes" > < / div >
< label class = "control-label" for = "name" > Name:< / label >
< div class = "form-group" >
2016-02-21 04:10:53 +00:00
< input type = "text" class = "form-control" placeholder = "Profile name" id = "name" autofocus / >
2016-02-20 23:15:34 +00:00
< / div >
2016-02-21 04:10:53 +00:00
< label class = "control-label" for = "name" > Interface Type:< / label >
2016-02-20 23:15:34 +00:00
< div class = "form-group" >
2016-02-21 04:10:53 +00:00
< input type = "text" class = "form-control" value = "SMTP" id = "interface_type" disabled / >
2016-02-20 23:15:34 +00:00
< / div >
2016-02-21 04:10:53 +00:00
< label class = "control-label" for = "name" > From:< / label >
< div class = "form-group" >
2016-02-21 16:40:26 +00:00
< input type = "text" class = "form-control" placeholder = "First Last <test@example.com>" id = "from" autofocus required / >
2016-02-20 23:15:34 +00:00
< / div >
2016-02-21 04:10:53 +00:00
< label class = "control-label" for = "name" > Host:< / label >
2016-02-20 23:15:34 +00:00
< div class = "form-group" >
2016-02-21 16:40:26 +00:00
< input type = "text" class = "form-control" placeholder = "smtp.example.com:25" id = "host" autofocus required / >
2016-02-21 04:10:53 +00:00
< / div >
< label class = "control-label" for = "name" > Username:< / label >
< div class = "form-group" >
< input type = "text" class = "form-control" placeholder = "Username" id = "username" autofocus / >
< / div >
< label class = "control-label" for = "name" > Password:< / label >
< div class = "form-group" >
< input type = "text" class = "form-control" placeholder = "Password" id = "password" autofocus / >
< / div >
< div class = "checkbox checkbox-primary" >
< input id = "ignore_cert_errors" type = "checkbox" checked >
< label for = "ignore_cert_errors" > Ignore Certificate Errors < i class = "fa fa-question-circle" data-toggle = "tooltip" data-placement = "right" title = "Ignore common certificate errors such as self-signed certs (exposes you to MiTM attacks - use carefully!)" > < / i > < / label >
2016-02-20 23:15:34 +00:00
< / div >
2016-02-21 16:40:26 +00:00
<!-- <button type="button" data - toggle="modal" data - target="#sendTestEmailModal" class="btn btn - primary"><i class="fa fa - envelope"></i> Send Test Email</button> -->
<!-- disable sendTestEmail functionality on sending profile page until update handling of /util/send_test_email -->
2016-02-20 23:15:34 +00:00
< / div >
< div class = "modal-footer" >
2016-02-21 04:10:53 +00:00
< button type = "button" data-dismiss = "modal" class = "btn btn-default" onclick = "dismiss()" > Cancel< / button >
< button type = "button" class = "btn btn-primary" id = "modalSubmit" > Save Profile< / button >
2016-02-20 23:15:34 +00:00
< / div >
< / div >
< / div >
< / div >
2016-02-21 16:40:26 +00:00
<!-- Send Test Email Modal -->
<!-- <div class="modal" id="sendTestEmailModal" tabindex=" - 1" role="dialog" aria - labelledby="modalLabel">
< 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 = "sendTestEmailModalTitle" > Send Test Email< / h4 >
< / div >
< div class = "modal-body" >
< div class = "row" id = "sendTestEmailModal.flashes" > < / div >
< div class = "row" >
< div class = "col-sm-12" >
< label class = "control-label" for = "to" > Send Test Email to:< / label >
< / div >
< br >
< div class = "col-sm-2" >
< input type = "text" class = "form-control" placeholder = "First Name" name = "to_first_name" >
< / div >
< div class = "col-sm-2" >
< input type = "text" class = "form-control" placeholder = "Last Name" name = "to_last_name" >
< / div >
< div class = "col-sm-4" >
< input type = "email" class = "form-control" placeholder = "Email" name = "to_email" required >
< / div >
< div class = "col-sm-4" >
< input type = "text" class = "form-control" placeholder = "Position" name = "to_position" >
< / div >
< / div >
< / div >
< div class = "modal-footer" >
< button type = "button" data-dismiss = "modal" class = "btn btn-default" > Cancel< / button >
< button type = "button" class = "btn btn-primary" id = "sendTestModalSubmit" onclick = "sendTestEmail()" > < i class = "fa fa-envelope" > < / i > Send< / button >
< / div >
< / div >
< / div >
< / div > -->
<!-- disable sendTestEmail functionality on sending profile page until update handling of /util/send_test_email -->
2016-02-20 23:15:34 +00:00
{{end}}
{{define "scripts"}}
< script src = "/js/ckeditor/ckeditor.js" > < / script >
< script src = "/js/ckeditor/adapters/jquery.js" > < / script >
< script src = "/js/app/sending_profiles.js" > < / script >
{{end}}