From aafc090b2d697a9c2fac785b6bc252e8390590e3 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Sun, 14 Dec 2014 13:49:41 -0800 Subject: [PATCH] CRM-15578 - crmMailingAB2 - Make crmMailingAbBlockMailing more consistent+flexible --- js/angular-crmMailingAB2-services.js | 9 ++- partials/crmMailingAB2/edit.html | 3 +- partials/crmMailingAB2/joint-mailing.html | 78 ++++++++++++++++++++++- 3 files changed, 87 insertions(+), 3 deletions(-) diff --git a/js/angular-crmMailingAB2-services.js b/js/angular-crmMailingAB2-services.js index a26897100d..33d489c819 100644 --- a/js/angular-crmMailingAB2-services.js +++ b/js/angular-crmMailingAB2-services.js @@ -18,7 +18,14 @@ }; }); - // CrmMailingAB is a data-model which combines an AB test (APIv3 "MailingAB") and three mailings (APIv3 "Mailing"). + // CrmMailingAB is a data-model which combines an AB test (APIv3 "MailingAB"), three mailings (APIv3 "Mailing"), + // and three sets of attachments (APIv3 "Attachment"). + // + // example: + // var abtest = new CrmMailingAB(123); + // abtest.load().then(function(){ + // alert("Mailing A is named "+abtest.mailings.a.name); + // }); angular.module('crmMailingAB2').factory('CrmMailingAB', function (crmApi, crmMailingMgr, $q, CrmAttachments) { function CrmMailingAB(id) { this.id = id; diff --git a/partials/crmMailingAB2/edit.html b/partials/crmMailingAB2/edit.html index d9eaab3c1f..e2ed4bd3a5 100644 --- a/partials/crmMailingAB2/edit.html +++ b/partials/crmMailingAB2/edit.html @@ -43,7 +43,8 @@ msg_template_id: 1, fromAddressA: 1, fromAddressB: 1, - replyTo: 1, + replyToA: 1, + replyToB: 1, subject: 1 }" crm-abtest="abtest"> diff --git a/partials/crmMailingAB2/joint-mailing.html b/partials/crmMailingAB2/joint-mailing.html index 18be406363..8836c34295 100644 --- a/partials/crmMailingAB2/joint-mailing.html +++ b/partials/crmMailingAB2/joint-mailing.html @@ -1,10 +1,20 @@
+ +
+ + + + +
+
+
+
+ + +
+
+ +
+
+ + + +
+
+ + + +
+ + + +
-- 2.25.1