Commit | Line | Data |
---|---|---|
70980d8e TO |
1 | <!-- |
2 | Controller: ABListingCtrl | |
3 | Required vars: mailingABList | |
4 | --> | |
70980d8e | 5 | |
5ad42de8 TO |
6 | <span crm-ui-order="{var: 'myOrder', defaults: ['-created_date']}"></span> |
7 | ||
207819ec | 8 | <div crm-ui-accordion="{title: ts('Filter'), collapsed: true}"> |
5ad42de8 TO |
9 | <form name="filterForm"> |
10 | <span> | |
f9c5f498 | 11 | <input class="big crm-form-text" ng-model="filter.name" placeholder="{{:: ts('Name') }}"/> |
5ad42de8 TO |
12 | </span> |
13 | <span> | |
14 | <select crm-ui-select style="width: 10em;" ng-model="filter.status"> | |
f9c5f498 | 15 | <option value="">{{:: ts('- Status -') }}</option> |
03dc03e1 | 16 | <option ng-repeat="o in fields.status.options" value="{{o.key}}">{{o.value}}</option> |
5ad42de8 TO |
17 | </select> |
18 | </span> | |
19 | <span> | |
05aaa6ae | 20 | <select crm-ui-select style="width: 20em;" ng-model="filter.testing_criteria"> |
f9c5f498 | 21 | <option value="">{{:: ts('- Test Type -') }}</option> |
03dc03e1 | 22 | <option ng-repeat="o in fields.testing_criteria.options" value="{{o.key}}">{{o.value}}</option> |
5ad42de8 TO |
23 | </select> |
24 | </span> | |
25 | </form> | |
26 | </div> | |
27 | ||
e829aa6b | 28 | <div ng-show="mailingABList.length"> |
70980d8e TO |
29 | <table class="display"> |
30 | <thead> | |
31 | <tr> | |
f9c5f498 CW |
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> | |
34 | <th><a crm-ui-order-by="[myOrder, 'testing_criteria']">{{:: ts('Test Type') }}</a></th> | |
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> |
f9c5f498 CW |
46 | <a class="action-item crm-hover-button" ng-href="#/abtest/{{mailingAB.id}}" ng-show="mailingAB.status == 'Draft'">{{:: ts('Continue') }}</a> |
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 | ||
e829aa6b | 54 | <div ng-show="mailingABList.length === 0" class="messages status no-popup"> |
13a3d214 | 55 | <i class="crm-i fa-info-circle" aria-hidden="true"></i> |
f9c5f498 | 56 | {{:: ts('You have no A/B mailings') }} |
70980d8e TO |
57 | </div> |
58 | ||
59 | ||
60 | <div class="crm-submit-buttons"> | |
61 | <br> | |
13a3d214 | 62 | <a ng-href="#/abtest/new" class="button"><span><i class="crm-i fa-flask" aria-hidden="true"></i> {{:: ts('New A/B Test') }}</span></a> |
70980d8e | 63 | </div> |