partials/abtesting/tab4.html - Altered interface so that elements now look like buttons.
authorVitor <vitor@futurefirst.org.uk>
Tue, 30 Sep 2014 13:33:16 +0000 (14:33 +0100)
committerVitor <vitor@futurefirst.org.uk>
Tue, 30 Sep 2014 13:33:16 +0000 (14:33 +0100)
js/angular-crmMailingAB.js
partials/abtesting/tab4.html

index 910d3fdfdeffd1581e582d8200bcdbc1f7e8fd09..8993a0d223d81ce7616fed36c90a7be80f7ab4de 100755 (executable)
 //-----------------------------------------
   // Add a new record by name.
   // Ex: <crmAddName crm-options="['Alpha','Beta','Gamma']" crm-var="newItem" crm-on-add="callMyCreateFunction(newItem)" />
+  /**
+   * This controler lists the existing ABtests
+   * used on /partials/abtesting/list.html
+   * @returns mailingABList - object that contains the existing AB mailings
+   * @returns testing_criteria - array that has the name of the different test types
+   */
   crmMailingAB.controller('ABListingCtrl', function ($scope, crmApi, mailingABList) {
     $scope.mailingABList = mailingABList.values;
     $scope.testing_criteria = {
index caada6782eb95cb251acc2526eefa22fe5ee268b..56d8d2b8787535660e23e53ffeedbfcd966ebd69 100755 (executable)
         <td>{{currentABTest.date}} Date &nbsp {{currentABTest.time}} Time</td>
       </tr>
     </table>
-    <h3 ng-click="pre()">Preview Mail</h3>
+    <span class="crm-button">
+      <input type="button" value="Preview Mail" ng-click="pre()">
+    </span>
+    <br><br>
     <div ng-show="preview" id="prevmail">
       <div ui-jq="tabs" id="settings">
         <ul>
         <div id="frag2" ng-bind-html="deliberatelyTrustDangerousSnippetb();"></div>
       </div>
     </div>
-    <h3 ng-click="sendTestMailing();">Send Test Emails</h3>
+    <span class="crm-button">
+      <input type="button" value="Send Test Emails" ng-click="sendTestMailing();">
+    </span>
+    <br><br>
 
     <div ng-show="sendtest" id="sendtest">
       Email-id : &nbsp<input placeholder = "abcd@civicrm.org" type="text" ng-model="sparestuff.emailadd">