2015-08-12 02:12:09 +00:00
{{define "body"}}
2015-06-15 21:49:16 +00:00
< div class = "container-fluid" >
< div class = "row" >
< div class = "col-sm-3 col-md-2 sidebar" >
< ul class = "nav nav-sidebar" >
2017-02-13 12:07:08 +00:00
< li > < a href = "/" > {{T "Dashboard"}}< / a >
2015-06-15 21:49:16 +00:00
< / li >
2017-02-13 12:07:08 +00:00
< li > < a href = "/campaigns" > {{T "Campaigns"}}< / a >
2015-06-15 21:49:16 +00:00
< / li >
2017-02-14 18:18:55 +00:00
< li > < a href = "/users" > {{T "Users & Groups"}}< / a >
2015-06-15 21:49:16 +00:00
< / li >
2017-02-13 12:07:08 +00:00
< li > < a href = "/templates" > {{T "Email Templates"}}< / a >
2015-06-15 21:49:16 +00:00
< / li >
2017-02-13 12:07:08 +00:00
< li class = "active" > < a href = "/landing_pages" > {{T "Landing Pages"}}< / a >
2015-06-15 21:49:16 +00:00
< / li >
2017-02-13 12:07:08 +00:00
< li > < a href = "/sending_profiles" > {{T "Sending Profiles"}}< / a >
2016-02-20 22:39:23 +00:00
< / li >
2017-02-13 12:07:08 +00:00
< li > < a href = "/settings" > {{T "Settings"}}< / a >
2015-06-15 21:49:16 +00:00
< / li >
2016-02-20 22:39:23 +00:00
< li > < hr > < / li >
2017-02-13 12:07:08 +00:00
< li > < a href = "https://gophish.gitbooks.io/user-guide/content/" > {{T "User Guide"}}< / a >
2016-02-20 22:39:23 +00:00
< / li >
2017-02-13 12:07:08 +00:00
< li > < a href = "/api/" > {{T "API Documentation"}}< / a >
2015-06-15 21:49:16 +00:00
< / li >
< / ul >
< / div >
< / div >
< / div >
2015-08-12 02:12:09 +00:00
< div class = "col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main" >
2015-06-15 21:49:16 +00:00
< h1 class = "page-header" >
2017-02-13 12:07:08 +00:00
{{T "Landing Pages"}}
2015-06-15 21:49:16 +00:00
< / h1 >
2015-08-12 02:12:09 +00:00
< div id = "flashes" class = "row" > < / div >
2015-06-15 21:49:16 +00:00
< div class = "row" >
2017-02-13 12:07:08 +00:00
< button type = "button" class = "btn btn-primary" onclick = "edit(-1)" data-toggle = "modal" data-target = "#modal" > < i class = "fa fa-plus" > < / i > {{T "New Page"}}< / button >
2015-06-15 21:49:16 +00:00
< / div >
2015-08-12 02:12:09 +00:00
< div id = "loading" >
< i class = "fa fa-spinner fa-spin fa-4x" > < / i >
< / div >
2015-08-26 02:03:12 +00:00
< div id = "emptyMessage" class = "row" style = "display:none;" >
< div class = "alert alert-info" >
2017-02-13 12:07:08 +00:00
{{T "No pages created yet. Let's create one!"}}
2015-06-15 21:49:16 +00:00
< / div >
< / div >
2015-08-12 02:12:09 +00:00
< div class = "row" >
< table id = "pagesTable" class = "table" style = "display:none;" >
< thead >
< tr >
2017-02-13 12:07:08 +00:00
< th > {{T "Name"}}< / th >
< th > {{T "Last Modified Date"}}< / th >
2016-01-17 21:27:11 +00:00
< th class = "col-md-2 no-sort" > < / th >
2015-06-15 21:49:16 +00:00
< / tr >
2015-08-12 02:12:09 +00:00
< / thead >
< tbody >
2015-06-15 21:49:16 +00:00
< / tbody >
< / table >
< / div >
< / div >
2015-08-23 20:20:28 +00:00
<!-- Modal -->
2016-02-22 11:57:03 +00:00
< div class = "modal fade" id = "modal" tabindex = "-1" role = "dialog" aria-labelledby = "modalLabel" >
2015-08-23 20:20:28 +00:00
< div class = "modal-dialog" role = "document" >
< div class = "modal-content" >
<!-- New Template Modal -->
< div class = "modal-header" >
2016-02-21 22:51:01 +00:00
< button type = "button" class = "close" data-dismiss = "modal" aria-label = "Close" onclick = "dismiss()" > < span aria-hidden = "true" > × < / span > < / button >
2017-02-13 12:07:08 +00:00
< h4 class = "modal-title" id = "modalLabel" > {{T "New Landing Page"}}< / h4 >
2015-08-23 20:20:28 +00:00
< / div >
< div class = "modal-body" >
< div class = "row" id = "modal.flashes" > < / div >
2017-02-13 12:07:08 +00:00
< label class = "control-label" for = "name" > {{T "Name"}}:< / label >
2015-08-23 20:20:28 +00:00
< div class = "form-group" >
2017-02-13 12:07:08 +00:00
< input type = "text" class = "form-control" placeholder = "{{T " Page name " } } " id = "name" autofocus / >
2015-08-23 20:20:28 +00:00
< / div >
< div class = "form-group" >
2017-02-13 12:07:08 +00:00
< button class = "btn btn-danger" data-toggle = "modal" data-target = "#importSiteModal" > < i class = "fa fa-globe" > < / i > {{T "Import Site"}}< / button >
2015-08-23 20:20:28 +00:00
< / div >
<!-- Nav tabs -->
< ul class = "nav nav-tabs" role = "tablist" >
< li class = "active" 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 = "html" >
< textarea id = "html_editor" > < / textarea >
< / div >
< / div >
2016-02-13 22:11:45 +00:00
< div class = "checkbox checkbox-primary" >
< input id = "capture_credentials_checkbox" type = "checkbox" >
2017-02-13 12:07:08 +00:00
< label for = "capture_credentials_checkbox" > {{T "Capture Submitted Data"}} < i class = "fa fa-question-circle" data-toggle = "tooltip" data-placement = "right" title = "{{T " If the landing page contains a form , submitted input ( except passwords ! ) will be captured . " } } " > < / i > < / label >
2016-02-13 22:11:45 +00:00
< / div >
< div class = "checkbox checkbox-primary" id = "capture_passwords" >
< input id = "capture_passwords_checkbox" type = "checkbox" >
2017-02-13 12:07:08 +00:00
< label for = "capture_passwords_checkbox" > {{T "Capture Passwords"}}< / label >
2016-02-13 22:11:45 +00:00
< div class = "alert alert-warning" >
2017-02-13 12:07:08 +00:00
< i class = "fa fa-exclamation-circle" > < / i > {{T "< b > Warning:< / b > Credentials are currently < b > not encrypted< / b > . This means that captured passwords are stored in the database as cleartext. Be careful with this!"}}
2016-02-13 22:11:45 +00:00
< / div >
< / div >
2016-03-19 01:19:13 +00:00
< div id = "redirect_url" >
2017-02-13 12:07:08 +00:00
< label class = "control-label" for = "redirect_url_input" > {{T "Redirect to"}}: < i class = "fa fa-question-circle" data-toggle = "tooltip" data-placement = "right" title = "{{T " This option lets you redirect the user to a page after credentials are submitted . " } } " > < / i > < / label >
2016-03-19 01:19:13 +00:00
< div class = "form-group" >
2017-02-13 12:07:08 +00:00
< input id = "redirect_url_input" class = "form-control" placeholder = "{{T " http: / / example . com " } } " / >
2016-03-19 01:19:13 +00:00
< / div >
< / div >
2015-08-23 20:20:28 +00:00
< / div >
< div class = "modal-footer" >
2017-02-13 12:07:08 +00:00
< button type = "button" data-dismiss = "modal" class = "btn btn-default" onclick = "dismiss()" > {{T "Cancel"}}< / button >
< button type = "button" class = "btn btn-primary" id = "modalSubmit" > {{T "Save Page"}}< / button >
2015-08-23 20:20:28 +00:00
< / div >
< / div >
2015-08-25 23:56:58 +00:00
< / div >
2015-08-23 20:20:28 +00:00
< / div >
2015-08-24 01:58:48 +00:00
<!-- Modal -->
2016-02-22 11:57:03 +00:00
< div class = "modal fade" id = "importSiteModal" tabindex = "-1" role = "dialog" aria-labelledby = "importSiteModalLabel" >
2015-08-24 01:58:48 +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 >
2017-02-13 12:07:08 +00:00
< h4 class = "modal-title" id = "importSiteModalLabel" > {{T "Import Site"}}< / h4 >
2015-08-24 01:58:48 +00:00
< / div >
< div class = "modal-body" >
< div class = "row" id = "modal.flashes" > < / div >
2017-02-13 12:07:08 +00:00
< label class = "control-label" for = "url" > {{T "URL"}}:< / label >
2015-08-24 01:58:48 +00:00
< div class = "form-group" >
2017-02-13 12:07:08 +00:00
< input type = "text" class = "form-control" placeholder = "{{T " http: / / google . com " } } " id = "url" autofocus / >
2015-08-24 01:58:48 +00:00
< / div >
< / div >
< div class = "modal-footer" >
2017-02-13 12:07:08 +00:00
< button type = "button" data-dismiss = "modal" class = "btn btn-default" > {{T "Cancel"}}< / button >
< button type = "button" class = "btn btn-primary" id = "modalSubmit" onclick = "importSite()" > {{T "Import"}}< / button >
2015-08-24 01:58:48 +00:00
< / div >
< / div >
2015-08-25 23:56:58 +00:00
< / div >
2015-08-24 01:58:48 +00:00
< / div >
2015-08-12 02:12:09 +00:00
{{end}}
{{define "scripts"}}
2017-02-13 12:50:01 +00:00
< script >
localizedDatas = {
"Page edited successfully!": "{{T "Page edited successfully!"}}",
"Page added successfully!": "{{T "Page added successfully!"}}",
"Delete": "{{T "Delete"}}",
"No URL Specified!": "{{T "No URL Specified!"}}",
"Copy of": "{{T "Copy of"}}",
"Edit Page": "{{T "Edit Page"}}",
"Copy Page": "{{T "Copy Page"}}",
"Delete Page": "{{T "Delete Page"}}",
"Error fetching pages": "{{T "Error fetching pages"}}",
}
< / script >
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/landing_pages.min.js" > < / script >
2015-08-12 02:12:09 +00:00
{{end}}