diff --git a/static/css/main.css b/static/css/main.css index 11910e9c..777f04d7 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -276,3 +276,7 @@ height: 100%; border-radius: 5px; } + +.ct-series-a .ct-slice-donut { + stroke:#1abc9c !important; +} diff --git a/static/js/app/campaign_results.js b/static/js/app/campaign_results.js new file mode 100644 index 00000000..69495a6c --- /dev/null +++ b/static/js/app/campaign_results.js @@ -0,0 +1,90 @@ +// labels is a map of campaign statuses to +// CSS classes +var labels = { + "In progress" : "label-primary", + "Queued" : "label-info", + "Completed" : "label-success", + "Error" : "label-danger" +} + +var campaign = {} + +// Save attempts to POST to /campaigns/ +function save(){ + var campaign = { + name: $("#name").val(), + template:{ + name: $("#template").val() + }, + smtp: { + from_address: $("input[name=from]").val(), + host: $("input[name=host]").val(), + username: $("input[name=username]").val(), + password: $("input[name=password]").val(), + }, + groups: [{name : "Test group"}] + } + // Submit the campaign + api.campaigns.post(campaign) + .success(function(data){ + successFlash("Campaign successfully launched!") + load() + }) + .error(function(data){ + $("#modal\\.flashes").empty().append("
Phishing Success Overview
Average Phishing Results
- +