2014-05-27 18:18:57 +00:00
<!-- New Campaign Modal -->
< div class = "modal-header" >
< button type = "button" class = "close" ng-click = "cancel()" > × < / button >
< h4 class = "modal-title" id = "campaignModalLabel" > New Campaign< / h4 >
< / div >
< div class = "modal-body" >
< div class = "form-group" >
< label for = "name" > Name:< / label >
< input type = "text" class = "form-control" ng-model = "campaign.name" id = "name" placeholder = "Campaign name" autofocus >
< br / >
< label class = "control-label" for = "template" > Template:< / label >
2014-06-03 18:27:20 +00:00
< input type = "text" class = "form-control" placeholder = "Template Name" id = "template" typeahead = "template.name for template in templates | filter:{name:$viewValue}" typeahead-editable = "false" ng-model = "campaign.template.name" / >
2014-05-27 18:18:57 +00:00
< br / >
2014-06-03 18:27:20 +00:00
< accordian >
< accordion-group >
< accordion-heading >
SMTP Options < i class = "pull-right glyphicon" ng-class = "{'glyphicon-chevron-down': isOpen, 'glyphicon-chevron-right': !isOpen}" > < / i >
< / accordion-heading >
< label class = "control-label" for = "from" > From:< / label >
2014-06-05 04:54:46 +00:00
< input type = "text" class = "form-control" ng-model = "campaign.smtp.from_address" placeholder = "First Last <test@example.com>" id = "form" >
2014-06-03 18:27:20 +00:00
< br / >
2014-06-05 04:54:46 +00:00
< label class = "control-label" for = "smtp_server" > Host:< / label >
< input type = "text" class = "form-control" ng-model = "campaign.smtp.host" placeholder = "smtp.example.com:25" id = "smtp_server" >
2014-06-03 18:27:20 +00:00
< br / >
< label class = "control-label" for = "smtp_server" > Username:< / label >
< input type = "text" class = "form-control" ng-model = "campaign.smtp.username" placeholder = "host:port" id = "smtp_server" >
< br / >
< label class = "control-label" for = "smtp_server" > Password:< / label >
< input type = "password" class = "form-control" ng-model = "campaign.smtp.password" id = "smtp_server" >
< br / >
< / accordion-group >
< / accordion >
2014-05-27 18:18:57 +00:00
< label class = "control-label" for = "users" > Groups:< / label >
< form ng-submit = "addGroup(group)" >
< div class = "input-group" >
< input type = "text" class = "form-control" placeholder = "Group Name" id = "users" typeahead = "group.name for group in groups | filter:{name:$viewValue}" typeahead-editable = "false" ng-model = "group.name" / >
< span class = "input-group-btn" >
< button class = "btn btn-primary" > < i class = "fa fa-plus" > < / i > Add< / button >
< / span >
< / div >
< / form >
< br / >
< table ng-table = "editGroupTableParams" class = "table table-hover table-striped table-condensed" >
< tbody >
< tr ng-repeat = "group in $data" class = "editable-row" >
< td > {{group.name}}
< span ng-click = "removeGroup(group)" class = "remove-row" > < i class = "fa fa-trash-o" > < / i >
< / span >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
< / div >
< div class = "modal-footer" >
< button type = "button" class = "btn btn-default" ng-click = "cancel()" > Cancel< / button >
< button type = "button" class = "btn btn-primary" data-dismiss = "modal" ng-click = "saveCampaign(campaign)" type = "submit" > Launch Campaign< / button >
< / div >
< / div >
< / div >
< / div >