crmCxnManageCtrl - Style rows. Move links into dropdown.
authorTim Otten <totten@civicrm.org>
Sat, 5 Dec 2015 21:13:38 +0000 (13:13 -0800)
committerTim Otten <totten@civicrm.org>
Sun, 6 Dec 2015 01:14:30 +0000 (17:14 -0800)
ang/crmCxn/ManageCtrl.html

index 7437a4ab776d9b73c8a3dd20a29700fc64e8b5b9..b60d68eef44e3732f530e272d86ed1350b86a1b8 100644 (file)
     </tr>
     </thead>
     <tbody>
-    <tr ng-repeat="cxn in cxns  | orderBy:cxnOrder.get()">
+    <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><div ng-bind-html="cxn.app_meta.desc"></div></td>
       <td>{{cxn.is_active ? ts('Enabled') : ts('Disabled')}}</td>
       <td>
-        <!--
-        <a class="action-item crm-hover-button" ng-click="toggleCxn(cxn)">{{cxn.is_active ? ts('Disable') : ts('Enable') }}</a>
-        -->
-        <a class="action-item crm-hover-button" ng-click="openLink(cxn.app_meta, 'settings', {title: ts('%1: Settings (External)', {1: cxn.app_meta.title})})" ng-show="cxn.app_meta.links.settings">{{ts('Settings')}}</a>
-        <a class="action-item crm-hover-button" ng-click="openLink(cxn.app_meta, 'logs', {title: ts('%1: Logs (External)', {1: cxn.app_meta.title})})" ng-show="cxn.app_meta.links.logs">{{ts('Logs')}}</a>
-        <a class="action-item crm-hover-button" ng-click="openLink(cxn.app_meta, 'docs', {title: ts('%1: Documentation (External)', {1: cxn.app_meta.title})})" ng-show="cxn.app_meta.links.docs">{{ts('Docs')}}</a>
-        <a class="action-item crm-hover-button" ng-click="openLink(cxn.app_meta, 'support', {title: ts('%1: Support (External)', {1: cxn.app_meta.title})})" ng-show="cxn.app_meta.links.support">{{ts('Support')}}</a>
-        <a class="action-item crm-hover-button"
-           crm-confirm='{width: "65%", resizable: true, title: ts("Disconnect"), message: ts("Are you sure you want to disconnect \"%1?\". Doing so may permanently destroy data linkage.", {1: cxn.app_meta.title})}'
-           on-yes="unregister(cxn.app_meta)"
-          >{{ts('Disconnect')}}</a>
+        <span>
+            <!--
+            <a class="action-item crm-hover-button" ng-click="toggleCxn(cxn)">{{cxn.is_active ? ts('Disable') : ts('Enable') }}</a>
+            -->
+            <a class="action-item crm-hover-button" ng-click="openLink(cxn.app_meta, 'settings', {title: ts('%1: Settings (External)', {1: cxn.app_meta.title})})" ng-show="cxn.app_meta.links.settings">{{ts('Settings')}}</a>
+            <span class="btn-slide crm-hover-button">{{ts('more')}}
+              <ul class="panel" style="display: none;">
+                <li ng-show="cxn.app_meta.links.logs">
+                  <a class="action-item crm-hover-button" ng-click="openLink(cxn.app_meta, 'logs', {title: ts('%1: Logs (External)', {1: cxn.app_meta.title})})">
+                    {{ts('Logs')}}
+                  </a>
+                </li>
+                <li ng-show="cxn.app_meta.links.docs">
+                  <a class="action-item crm-hover-button" ng-click="openLink(cxn.app_meta, 'docs', {title: ts('%1: Documentation (External)', {1: cxn.app_meta.title})})">
+                    {{ts('Docs')}}
+                  </a>
+                </li>
+                <li ng-show="cxn.app_meta.links.support">
+                  <a class="action-item crm-hover-button" ng-click="openLink(cxn.app_meta, 'support', {title: ts('%1: Support (External)', {1: cxn.app_meta.title})})">
+                    {{ts('Support')}}
+                  </a>
+                </li>
+                <li>
+                  <a class="action-item crm-hover-button"
+                     crm-confirm='{width: "65%", resizable: true, title: ts("Disconnect"), message: ts("Are you sure you want to disconnect \"%1?\". Doing so may permanently destroy data linkage.", {1: cxn.app_meta.title})}'
+                     on-yes="unregister(cxn.app_meta)">
+                    {{ts('Disconnect')}}
+                  </a>
+                </li>
+              </ul>
+            </span>
+
+        </span>
       </td>
     </tr>
     </tbody>
   </table>
+  <br/>
 </div>
 
 <div ng-show="hasAvailApps()">