CRM-15706 - More mailing help additions/fixes
[civicrm-core.git] / partials / crmMailingAB / list.html
CommitLineData
70980d8e
TO
1<!--
2Controller: ABListingCtrl
3Required vars: mailingABList
4-->
70980d8e 5
5ad42de8
TO
6<span crm-ui-order="{var: 'myOrder', defaults: ['-created_date']}"></span>
7
8<div crm-ui-accordion crm-title="ts('Filter')" crm-collapsed="true">
9 <form name="filterForm">
10 <span>
11 <input class="big crm-form-text" ng-model="filter.name" placeholder="{{ts('Name')}}"/>
12 </span>
13 <span>
14 <select crm-ui-select style="width: 10em;" ng-model="filter.status">
15 <option value="">{{ts('- Status -')}}</option>
16 <option ng-repeat="o in fields.status.options" ng-value="o.key">{{o.value}}</option>
17 </select>
18 </span>
19 <span>
05aaa6ae 20 <select crm-ui-select style="width: 20em;" ng-model="filter.testing_criteria">
5ad42de8 21 <option value="">{{ts('- Test Type -')}}</option>
05aaa6ae 22 <option ng-repeat="o in fields.testing_criteria.options" ng-value="o.key">{{o.value}}</option>
5ad42de8
TO
23 </select>
24 </span>
25 </form>
26</div>
27
70980d8e
TO
28<div ng-show="!$.isEmptyObject(mailingABList)">
29 <table class="display">
30 <thead>
31 <tr>
5ad42de8
TO
32 <th><a crm-ui-order-by="[myOrder, 'name']">{{ts('Name')}}</a></th>
33 <th><a crm-ui-order-by="[myOrder, 'status']">{{ts('Status')}}</a></th>
05aaa6ae 34 <th><a crm-ui-order-by="[myOrder, 'testing_criteria']">{{ts('Test Type')}}</a></th>
5ad42de8 35 <th><a crm-ui-order-by="[myOrder, 'created_date']">{{ts('Created')}}</a></th>
70980d8e
TO
36 <th></th>
37 </tr>
38 </thead>
39 <tbody>
5ad42de8 40 <tr ng-repeat="mailingAB in mailingABList | filter:filter | orderBy:myOrder.get()">
70980d8e 41 <td>{{mailingAB.name}}</td>
63430d3c 42 <td>{{crmMailingABStatus.getByName(mailingAB.status).label}}</td>
05aaa6ae 43 <td>{{crmMailingABCriteria.get(mailingAB.testing_criteria).label}}</td>
5ad42de8 44 <td>{{mailingAB.created_date}}</td>
70980d8e 45 <td>
63430d3c 46 <a class="action-item crm-hover-button" ng-href="#/abtest/{{mailingAB.id}}" ng-show="mailingAB.status == 'Draft'">{{ts('Continue')}}</a>
57194571 47 <a class="action-item crm-hover-button" ng-href="#/abtest/{{mailingAB.id}}" ng-show="mailingAB.status != 'Draft'">{{ts('Results')}}</a>
70980d8e
TO
48 </td>
49 </tr>
50 </tbody>
51 </table>
52</div>
53
54<div ng-show="$.isEmptyObject(mailingABList)" class="messages status no-popup">
55 <div class="icon inform-icon"></div>
63430d3c 56 {{ts('You have no A/B mailings')}}
70980d8e
TO
57</div>
58
59
60<div class="crm-submit-buttons">
61 <br>
52604b19 62 <a ng-href="#/abtest/new" class="button"><span><div class="icon ui-icon-circle-plus"></div>{{ts('New A/B Test')}}</span></a>
70980d8e 63</div>