From 030dce01025e464c0d15b7509161e747f72b60b5 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 29 Oct 2014 19:15:11 -0700 Subject: [PATCH] CRM-15578 - crmMailing2 - Skeleton for new page --- CRM/Mailing/Info.php | 10 +++- js/angular-crm-ui.js | 64 ++++++++++++++++++++++++++ js/angular-crmMailing2.js | 59 ++++++++++++++++++++++++ partials/crmMailing2/attachments.html | 1 + partials/crmMailing2/edit.html | 47 +++++++++++++++++++ partials/crmMailing2/headerFooter.html | 1 + partials/crmMailing2/mailing.html | 1 + partials/crmMailing2/preview.html | 1 + partials/crmMailing2/publication.html | 1 + partials/crmMailing2/responses.html | 1 + partials/crmMailing2/review.html | 1 + partials/crmMailing2/schedule.html | 1 + partials/crmMailing2/summary.html | 1 + partials/crmMailing2/tracking.html | 1 + 14 files changed, 189 insertions(+), 1 deletion(-) create mode 100644 js/angular-crmMailing2.js create mode 100644 partials/crmMailing2/attachments.html create mode 100644 partials/crmMailing2/edit.html create mode 100644 partials/crmMailing2/headerFooter.html create mode 100644 partials/crmMailing2/mailing.html create mode 100644 partials/crmMailing2/preview.html create mode 100644 partials/crmMailing2/publication.html create mode 100644 partials/crmMailing2/responses.html create mode 100644 partials/crmMailing2/review.html create mode 100644 partials/crmMailing2/schedule.html create mode 100644 partials/crmMailing2/summary.html create mode 100644 partials/crmMailing2/tracking.html diff --git a/CRM/Mailing/Info.php b/CRM/Mailing/Info.php index 7eb682851f..d8d9a2ac0d 100644 --- a/CRM/Mailing/Info.php +++ b/CRM/Mailing/Info.php @@ -59,7 +59,15 @@ class CRM_Mailing_Info extends CRM_Core_Component_Info { $result = array(); $result['crmMailing'] = array( 'ext' => 'civicrm', - 'js' => array('js/angular-Mailing.js' , 'js/angularsanitize.js' , 'packages/ckeditor/ckeditor.js'), + 'js' => array( + 'js/angular-Mailing.js' , + 'js/angularsanitize.js' , + 'packages/ckeditor/ckeditor.js' + ), + ); + $result['crmMailing2'] = array( + 'ext' => 'civicrm', + 'js' => array('js/angular-crmMailing2.js'), ); $result['crmMailingAB'] = array( 'ext' => 'civicrm', diff --git a/js/angular-crm-ui.js b/js/angular-crm-ui.js index 793750e8d2..502db37919 100644 --- a/js/angular-crm-ui.js +++ b/js/angular-crm-ui.js @@ -3,6 +3,19 @@ var idCount = 0; angular.module('crmUi', []) + + // example
...content...
+ .directive('crmUiAccordion', function() { + return { + scope: { + crmTitle: '@' + }, + template: '
(Accordion: {{$parent.$eval(crmTitle)}})
', + transclude: true, + link: function (scope, element, attrs) {} + }; + }) + // example:
...