crmCxnManageCtrl - Provide informational dialog
authorTim Otten <totten@civicrm.org>
Sat, 5 Dec 2015 22:00:52 +0000 (14:00 -0800)
committerTim Otten <totten@civicrm.org>
Sun, 6 Dec 2015 01:14:30 +0000 (17:14 -0800)
ang/crmCxn/AboutCtrl.html [new file with mode: 0644]
ang/crmCxn/AboutCtrl.js [new file with mode: 0644]
ang/crmCxn/ManageCtrl.html

diff --git a/ang/crmCxn/AboutCtrl.html b/ang/crmCxn/AboutCtrl.html
new file mode 100644 (file)
index 0000000..8757449
--- /dev/null
@@ -0,0 +1,14 @@
+<div ng-controller="CrmCxnConfirmAboutCtrl">
+  <div crm-ui-accordion="{title: ts('About'), collapsed: false}">
+    <div ng-bind-html="appMeta.desc"></div>
+  </div>
+  <div crm-ui-accordion="{title: ts('Permissions: Summary'), collapsed: true}">
+    <div ng-bind-html="appMeta.perm.desc"></div>
+  </div>
+  <div crm-ui-accordion="{title: ts('Permissions: Details'), collapsed: true}">
+    <div crm-cxn-perm-table="{perm: appMeta.perm}"></div>
+  </div>
+  <div crm-ui-accordion="{title: ts('Advanced'), collapsed: true}">
+    <div crm-cxn-adv-table="{appMeta: appMeta}"></div>
+  </div>
+</div>
diff --git a/ang/crmCxn/AboutCtrl.js b/ang/crmCxn/AboutCtrl.js
new file mode 100644 (file)
index 0000000..f9b9491
--- /dev/null
@@ -0,0 +1,5 @@
+(function(angular, $, _) {
+  angular.module('crmCxn').controller('CrmCxnConfirmAboutCtrl', function($scope) {
+    $scope.ts = CRM.ts(null);
+  });
+})(angular, CRM.$, CRM._);
index b65c27635b3f8ad8f68b6af91d06b388c3df3fb1..64e9c9469f27397da768d9441c70da37ee064adf 100644 (file)
     </thead>
     <tbody>
     <tr ng-repeat="cxn in cxns  | orderBy:cxnOrder.get()" ng-class-even="'even-row even'" ng-class-odd="'odd-row odd'">
-      <td>{{cxn.app_meta.title}}</td>
+      <td>
+        <a class="action-item"
+           crm-confirm='{width: "65%", resizable: true, title:ts("%1: About", {1: cxn.app_meta.title}), templateUrl: "~/crmCxn/AboutCtrl.html", export: {appMeta: cxn.app_meta}}'
+            >{{cxn.app_meta.title}}</a>
+      </td>
       <td><div ng-bind-html="cxn.app_meta.desc"></div></td>
       <td>{{cxn.is_active ? ts('Enabled') : ts('Disabled')}}</td>
       <td>
     </thead>
     <tbody>
     <tr ng-repeat="appMeta in appMetas | orderBy:availOrder.get()" ng-show="!findCxnByAppId(appMeta.appId)">
-      <td>{{appMeta.title}}</td>
+      <td>
+        <a crm-confirm='{width: "65%", resizable: true, title:ts("%1: About", {1: appMeta.title}), templateUrl: "~/crmCxn/AboutCtrl.html", export: {appMeta: appMeta}}'
+            >{{appMeta.title}}</a>
+      </td>
       <td><div ng-bind-html="appMeta.desc"></div></td>
       <td>
         <a class="action-item crm-hover-button"