From 24fa24b7e8dc8ed7fc7e19a0d26d747ca325eab8 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Sat, 5 Dec 2015 13:43:36 -0800 Subject: [PATCH] crmCxnManageCtrl - Display appId and appUrl --- ang/crmCxn/AdvTable.html | 18 ++++++++++++++++++ ang/crmCxn/AdvTable.js | 20 ++++++++++++++++++++ ang/crmCxn/ConfirmConnectCtrl.html | 3 +++ ang/crmCxn/ConfirmReconnectCtrl.html | 4 ++++ 4 files changed, 45 insertions(+) create mode 100644 ang/crmCxn/AdvTable.html create mode 100644 ang/crmCxn/AdvTable.js diff --git a/ang/crmCxn/AdvTable.html b/ang/crmCxn/AdvTable.html new file mode 100644 index 0000000000..7080fdd7a9 --- /dev/null +++ b/ang/crmCxn/AdvTable.html @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + +
{{ts('Property')}}{{ts('Value')}}
App ID{{appMeta.appId}}
App URL{{appMeta.appUrl}}
diff --git a/ang/crmCxn/AdvTable.js b/ang/crmCxn/AdvTable.js new file mode 100644 index 0000000000..3ea2bc39e0 --- /dev/null +++ b/ang/crmCxn/AdvTable.js @@ -0,0 +1,20 @@ +(function(angular, $, _) { + + // This directive formats the data in appMeta as a nice table. + // example:
+ angular.module('crmCxn').directive('crmCxnAdvTable', function crmCxnAdvTable() { + return { + restrict: 'EA', + scope: { + crmCxnAdvTable: '=' + }, + templateUrl: '~/crmCxn/AdvTable.html', + link: function(scope, element, attrs) { + scope.ts = CRM.ts(null); + scope.$watch('crmCxnAdvTable', function(crmCxnAdvTable){ + scope.appMeta = crmCxnAdvTable.appMeta; + }); + } + }; + }); +})(angular, CRM.$, CRM._); diff --git a/ang/crmCxn/ConfirmConnectCtrl.html b/ang/crmCxn/ConfirmConnectCtrl.html index 599be449ed..eadee337aa 100644 --- a/ang/crmCxn/ConfirmConnectCtrl.html +++ b/ang/crmCxn/ConfirmConnectCtrl.html @@ -9,4 +9,7 @@
+
+
+
diff --git a/ang/crmCxn/ConfirmReconnectCtrl.html b/ang/crmCxn/ConfirmReconnectCtrl.html index d9555d4339..04f7252c6b 100644 --- a/ang/crmCxn/ConfirmReconnectCtrl.html +++ b/ang/crmCxn/ConfirmReconnectCtrl.html @@ -15,4 +15,8 @@
+
+
+
+ -- 2.25.1