From 831adbd64e970d43195eb1b5a6cedd67d3942eae Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 7 May 2016 16:59:06 -0400 Subject: [PATCH] CRM-18344 - Show attachments on CiviMail review panel --- ang/crmMailing/BlockReview.html | 6 +++--- ang/crmMailing/BlockReview.js | 6 +++++- ang/crmMailing/EditMailingCtrl/2step.html | 2 +- ang/crmMailing/EditMailingCtrl/wizard.html | 2 +- ang/crmMailing/EditMailingCtrl/workflow.html | 2 +- 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/ang/crmMailing/BlockReview.html b/ang/crmMailing/BlockReview.html index 6a2e2aad3d..49b9232a64 100644 --- a/ang/crmMailing/BlockReview.html +++ b/ang/crmMailing/BlockReview.html @@ -1,6 +1,6 @@
@@ -24,15 +24,15 @@ Required vars: mailing
{{ts('HTML')}} {{ts('Plain Text')}} -
-
+
{{item.file.name}}
+
{{ts('None')}}
diff --git a/ang/crmMailing/BlockReview.js b/ang/crmMailing/BlockReview.js index 1a0220f328..94968e3eb4 100644 --- a/ang/crmMailing/BlockReview.js +++ b/ang/crmMailing/BlockReview.js @@ -3,13 +3,17 @@ angular.module('crmMailing').directive('crmMailingBlockReview', function (crmMailingPreviewMgr) { return { scope: { - crmMailing: '@' + crmMailing: '@', + crmMailingAttachments: '@' }, templateUrl: '~/crmMailing/BlockReview.html', link: function (scope, elm, attr) { scope.$parent.$watch(attr.crmMailing, function(newValue){ scope.mailing = newValue; }); + scope.$parent.$watch(attr.crmMailingAttachments, function(newValue){ + scope.attachments = newValue; + }); scope.crmMailingConst = CRM.crmMailing; scope.ts = CRM.ts(null); scope.previewMailing = function previewMailing(mailing, mode) { diff --git a/ang/crmMailing/EditMailingCtrl/2step.html b/ang/crmMailing/EditMailingCtrl/2step.html index ea6bccc168..da35ce2bfe 100644 --- a/ang/crmMailing/EditMailingCtrl/2step.html +++ b/ang/crmMailing/EditMailingCtrl/2step.html @@ -43,7 +43,7 @@
-
+
diff --git a/ang/crmMailing/EditMailingCtrl/wizard.html b/ang/crmMailing/EditMailingCtrl/wizard.html index d8dbd1a342..01f35e4379 100644 --- a/ang/crmMailing/EditMailingCtrl/wizard.html +++ b/ang/crmMailing/EditMailingCtrl/wizard.html @@ -48,7 +48,7 @@