//-----------------------------------------
// 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 = {
<td>{{currentABTest.date}} Date   {{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 :  <input placeholder = "abcd@civicrm.org" type="text" ng-model="sparestuff.emailadd">