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-06-24 04:02:29 +00:00
< li > < a href = "/" > Dashboard< / a >
2015-06-15 21:49:16 +00:00
< / li >
2015-06-24 04:02:29 +00:00
< li class = "active" > < 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-06-17 04:09:27 +00:00
< li > < 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 >
2015-06-17 04:09:27 +00:00
< li > < a href = "/settings" > Settings< / a >
2015-06-15 21:49:16 +00:00
< / li >
< li > < a href = "/api/" > API Documentation< / a >
< / li >
< / ul >
< / div >
< / div >
< / div >
2015-06-17 03:22:51 +00:00
< div class = "col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main" >
2015-06-24 04:02:29 +00:00
< div class = "row" >
< h1 class = "page-header" >
Campaigns
< / h1 >
< / div >
2015-06-17 03:22:51 +00:00
< div id = "flashes" class = "row" > < / div >
2015-06-15 21:49:16 +00:00
< div class = "row" >
2015-06-30 04:52:26 +00:00
< button type = "button" class = "btn btn-primary" data-toggle = "modal" data-target = "#modal" onclick = "edit('new')" > < i class = "fa fa-plus" > < / i > New Campaign< / button >
2015-06-15 21:49:16 +00:00
< / div >
2015-07-30 03:31:39 +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-17 03:22:51 +00:00
< div class = "alert alert-info" >
No campaigns created 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 = "campaignTable" class = "table" style = "display:none;" >
< thead >
< tr >
< th > Name< / th >
2015-07-08 03:31:21 +00:00
< th > Created Date< / th >
2015-06-24 04:02:29 +00:00
< th > Status< / 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-16 23:38:43 +00:00
<!-- Modal -->
2015-06-18 03:44:05 +00:00
< div class = "modal fade" id = "modal" tabindex = "-1" role = "dialog" aria-labelledby = "myModalLabel" >
2015-06-16 23:38:43 +00:00
< div class = "modal-dialog" role = "document" >
< div class = "modal-content" >
< 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 = "campaignModalLabel" > New Campaign< / h4 >
< / div >
< div class = "modal-body" >
2015-06-17 03:22:51 +00:00
< div class = "row" id = "modal.flashes" > < / div >
2015-06-16 23:38:43 +00:00
< div class = "form-group" >
< label for = "name" > Name:< / label >
< input type = "text" class = "form-control" id = "name" placeholder = "Campaign name" autofocus >
2015-10-23 03:29:10 +00:00
< label class = "control-label" for = "template" > Email Template:< / label >
2015-09-16 03:57:47 +00:00
< input type = "text" class = "typeahead form-control" placeholder = "Template Name" id = "template" / >
< br >
2015-10-23 03:29:10 +00:00
< label class = "control-label" for = "page" > Landing Page:< / label >
< input type = "text" class = "typeahead form-control" placeholder = "Landing Page" id = "page" / >
< br >
2015-10-23 00:54:01 +00:00
< label class = "control-label" for = "url" > URL: < i class = "fa fa-question-circle" data-toggle = "tooltip" data-placement = "right" title = "Location of gophish listener (must be reachable by targets!)" > < / i > < / label >
< input type = "text" class = "form-control" placeholder = "http://192.168.1.1" id = "url" / >
< br / >
2015-06-16 23:38:43 +00:00
< div class = "panel panel-default" >
< div class = "panel-heading" role = "tab" >
< a role = "button" class = "collapsed" data-toggle = "collapse" href = "#smtpPanel" aria-expanded = "false" aria-controls = "#smtpPanel" >
SMTP Options < i class = "pull-right glyphicon" > < / i >
< / a >
< / div >
< div class = "panel-collapse collapse" id = "smtpPanel" role = "tabpanel" >
< div class = "panel-body" >
< label class = "control-label" for = "from" > From:< / label >
2015-06-17 03:22:51 +00:00
< input type = "text" class = "form-control" placeholder = "First Last <test@example.com>" value = "" name = "from" >
2015-06-16 23:38:43 +00:00
< br / >
< label class = "control-label" for = "smtp_server" > Host:< / label >
2015-06-17 03:22:51 +00:00
< input type = "text" class = "form-control" placeholder = "smtp.example.com:25" value = "" name = "host" >
2015-06-16 23:38:43 +00:00
< br / >
< label class = "control-label" for = "smtp_server" > Username:< / label >
2015-06-17 03:22:51 +00:00
< input type = "text" class = "form-control" placeholder = "Username" value = "" name = "username" >
2015-06-16 23:38:43 +00:00
< br / >
< label class = "control-label" for = "smtp_server" > Password:< / label >
2015-06-17 03:22:51 +00:00
< input type = "password" class = "form-control" placeholder = "Password" value = "" name = "password" >
2015-06-16 23:38:43 +00:00
< br / >
< / div >
< / div >
< / div >
< label class = "control-label" for = "users" > Groups:< / label >
2015-07-07 03:26:08 +00:00
< form id = "groupForm" >
2015-06-16 23:38:43 +00:00
< div class = "input-group" >
2015-07-07 03:26:08 +00:00
< input type = "text" class = "typeahead form-control" placeholder = "Group Name" id = "groupSelect" / >
2015-06-16 23:38:43 +00:00
< span class = "input-group-btn" >
2015-06-30 04:52:26 +00:00
< button class = "btn btn-primary typeahead-button" > < i class = "fa fa-plus" > < / i > Add< / button >
2015-06-16 23:38:43 +00:00
< / span >
< / div >
< / form >
< br / >
2015-06-30 04:52:26 +00:00
< table id = "groupTable" class = "table table-hover table-striped table-condensed" >
< thead >
< th > Group Name< / th >
2016-01-17 21:27:11 +00:00
< th class = "no-sort" > < / th >
2015-06-16 23:38:43 +00:00
< tbody >
< / tbody >
< / table >
< / div >
< / div >
< div class = "modal-footer" >
< button type = "button" class = "btn btn-default" data-dismiss = "modal" > Close< / button >
2016-01-21 01:00:32 +00:00
< button type = "button" class = "btn btn-primary" onclick = "launch()" > < i class = "fa fa-envelope" > < / i > Launch Campaign< / button >
2015-06-16 23:38:43 +00:00
< / div >
< / div >
< / div >
< / div >
2015-06-15 21:49:16 +00:00
{{end}}
2015-06-16 03:51:18 +00:00
{{define "scripts"}}
2015-06-30 04:52:26 +00:00
< script src = "/js/hogan.js" > < / script >
< script src = "/js/typeahead.min.js" > < / script >
2015-06-16 03:51:18 +00:00
< script src = "/js/app/campaigns.js" > < / script >
{{end}}