Commit | Line | Data |
---|---|---|
3ad2ea69 TO |
1 | <!-- |
2 | Implicit Controller: CrmMailingABEditCtrl | |
3 | --> | |
ac72f987 DG |
4 | <div class="messages help"> |
5 | <div class="msg-title crm-title">{{ts('A/B Test Results')}}: {{abtest.ab.name}}</div> | |
12778d8d | 6 | {{ts('This report displays the current results for your A/B test. You can return to this page to view the latest statistics by navigating to "Manage A/B Tests" and clicking "Results".')}} |
ac72f987 | 7 | </div> |
57194571 | 8 | <div ng-controller="CrmMailingABReportCtrl"> |
8f0fcb3e | 9 | <table class="crm-mailing-ab-table"> |
deea897f TO |
10 | <thead> |
11 | <tr ng-show="abtest.ab.status == 'Testing'"> | |
12 | <td></td> | |
13 | <td ng-repeat="am in getActiveMailings()"> | |
77ec5a8d | 14 | <button crm-icon="fa-trophy" ng-click="selectWinner(am.name)">{{ts('Select as Final')}}</button> |
deea897f | 15 | </td> |
c65ef09e | 16 | <td></td> |
deea897f TO |
17 | </tr> |
18 | </thead> | |
19 | ||
20 | <thead> | |
21 | <tr> | |
908f0f77 TO |
22 | <th>{{ts('Delivery')}}</th> |
23 | <th ng-repeat="am in getActiveMailings()" class="crm-mailing-ab-col">{{am.title}}</th> | |
c65ef09e | 24 | <th ng-show="abtest.ab.status == 'Testing'">{{ts('Final')}}</th> |
908f0f77 TO |
25 | </tr> |
26 | </thead> | |
27 | ||
28 | <tbody> | |
29 | <tr> | |
30 | <td>{{ts('Status')}}</td> | |
31 | <td ng-repeat="am in getActiveMailings()"> | |
32 | <span ng-repeat="job in am.mailing.jobs" ng-hide="job.is_test == 1 || job.parent_id != null">{{job.status}}</span> | |
33 | </td> | |
c65ef09e | 34 | <td ng-show="abtest.ab.status == 'Testing'">{{ts('Not selected')}}</td> |
908f0f77 TO |
35 | </tr> |
36 | <tr> | |
37 | <td>{{ts('Scheduled')}}</td> | |
38 | <td ng-repeat="am in getActiveMailings()"> | |
39 | <div ng-repeat="job in am.mailing.jobs" ng-hide="job.is_test == 1 || job.parent_id != null">{{job.scheduled_date}}</div> | |
40 | </td> | |
c65ef09e | 41 | <td ng-show="abtest.ab.status == 'Testing'"></td> |
908f0f77 TO |
42 | </tr> |
43 | <tr> | |
44 | <td>{{ts('Started at')}}</td> | |
45 | <td ng-repeat="am in getActiveMailings()"> | |
46 | <div ng-repeat="job in am.mailing.jobs" ng-hide="job.is_test == 1 || job.parent_id != null">{{job.start_date || ts('Not started')}}</div> | |
47 | </td> | |
c65ef09e | 48 | <td ng-show="abtest.ab.status == 'Testing'"></td> |
908f0f77 TO |
49 | </tr> |
50 | <tr> | |
51 | <td>{{ts('Completed at')}}</td> | |
52 | <td ng-repeat="am in getActiveMailings()"> | |
53 | <div ng-repeat="job in am.mailing.jobs" ng-hide="job.is_test == 1 || job.parent_id != null">{{job.end_date || ts('Not completed')}}</div> | |
54 | </td> | |
c65ef09e | 55 | <td ng-show="abtest.ab.status == 'Testing'"></td> |
908f0f77 TO |
56 | </tr> |
57 | </tbody> | |
58 | ||
59 | <thead> | |
60 | <tr> | |
61 | <th>{{ts('Performance')}}</th> | |
deea897f | 62 | <th ng-repeat="am in getActiveMailings()" class="crm-mailing-ab-col">{{am.title}}</th> |
c65ef09e | 63 | <th ng-show="abtest.ab.status == 'Testing'">{{ts('Final')}}</th> |
deea897f TO |
64 | </tr> |
65 | </thead> | |
66 | <tbody> | |
67 | <tr ng-repeat="statType in statTypes"> | |
68 | <td>{{statType.title}}</td> | |
69 | <td ng-repeat="am in getActiveMailings()"> | |
8f685a33 TO |
70 | <a |
71 | class="crm-hover-button action-item" | |
72 | ng-href="{{statUrl(am.mailing, statType, 'search')}}" | |
73 | ng-if="checkPerm('view all contacts')" | |
74 | title="{{ts('Search for contacts using \'%1\'', {1: statType.title})}}" | |
77ec5a8d | 75 | crm-icon="fa-search" |
8f685a33 TO |
76 | ></a> |
77 | <a | |
78 | class="crm-hover-button action-item" | |
79 | ng-href="{{statUrl(am.mailing, statType, 'events')}}" | |
80 | title="{{ts('Browse events of type \'%1\'', {1: statType.title})}}" | |
81 | >{{stats[am.name][statType.name] || ts('n/a')}}</a> | |
deea897f | 82 | </td> |
c65ef09e | 83 | <td ng-show="abtest.ab.status == 'Testing'"></td> |
deea897f TO |
84 | </tr> |
85 | </tbody> | |
86 | ||
360aaa75 TO |
87 | <thead> |
88 | <tr> | |
89 | <th>{{ts('Details')}}</th> | |
e038321f | 90 | <th ng-repeat="am in getActiveMailings()" class="crm-mailing-ab-col">{{am.title}}</th> |
c65ef09e | 91 | <th ng-show="abtest.ab.status == 'Testing'">{{ts('Final')}}</th> |
360aaa75 TO |
92 | </tr> |
93 | </thead> | |
deea897f | 94 | |
360aaa75 | 95 | <tbody> |
deea897f TO |
96 | <tr> |
97 | <td>{{ts('Mailing Name')}}</td> | |
e038321f | 98 | <td ng-repeat="am in getActiveMailings()"> |
deea897f | 99 | {{am.mailing.name}} |
e038321f | 100 | </td> |
c65ef09e | 101 | <td ng-show="abtest.ab.status == 'Testing'"></td> |
32b8b0bf | 102 | </tr> |
deea897f TO |
103 | <tr> |
104 | <td>{{ts('From')}}</td> | |
e038321f | 105 | <td ng-repeat="am in getActiveMailings()"> |
deea897f | 106 | "{{am.mailing.from_name}}" <{{am.mailing.from_email}}> |
e038321f | 107 | </td> |
c65ef09e | 108 | <td ng-show="abtest.ab.status == 'Testing'"></td> |
32b8b0bf | 109 | </tr> |
deea897f TO |
110 | <tr> |
111 | <td>{{ts('Subject')}}</td> | |
e038321f | 112 | <td ng-repeat="am in getActiveMailings()"> |
deea897f | 113 | {{am.mailing.subject}} |
7173e315 | 114 | </td> |
c65ef09e | 115 | <td ng-show="abtest.ab.status == 'Testing'"></td> |
e2bfadbe | 116 | </tr> |
deea897f TO |
117 | <tr ng-controller="ViewRecipCtrl"> |
118 | <td>{{ts('Recipients')}}</td> | |
e038321f | 119 | <td ng-repeat="am in getActiveMailings()"> |
deea897f TO |
120 | <div ng-show="getIncludesAsString(am.mailing)"> |
121 | <strong>{{ts('Include:')}}</strong> {{getIncludesAsString(am.mailing)}} | |
122 | </div> | |
123 | <div ng-show="getExcludesAsString(am.mailing)"> | |
124 | <strong>{{ts('Exclude:')}}</strong> <s>{{getExcludesAsString(am.mailing)}}</s> | |
125 | </div> | |
126 | </td> | |
c65ef09e | 127 | <td ng-show="abtest.ab.status == 'Testing'"></td> |
deea897f TO |
128 | </tr> |
129 | <tr> | |
130 | <td>{{ts('Content')}}</td> | |
131 | <td ng-repeat="am in getActiveMailings()"> | |
77ec5a8d AH |
132 | <a crm-icon="fa-television" class="crm-hover-button action-item" ng-click="previewMailing(am.name,'html')" ng-show="am.mailing.body_html">{{ts('HTML')}}</a> |
133 | <a crm-icon="fa-file-text-o" class="crm-hover-button action-item" ng-click="previewMailing(am.name,'text')" ng-show="am.mailing.body_text">{{ts('Text')}}</a> | |
deea897f | 134 | </td> |
c65ef09e | 135 | <td ng-show="abtest.ab.status == 'Testing'"></td> |
deea897f TO |
136 | </tr> |
137 | <tr> | |
138 | <td>{{ts('Attachments')}}</td> | |
139 | <td ng-repeat="am in getActiveMailings()"> | |
140 | <div ng-repeat="file in am.attachments.files"><a ng-href="{{file.url}}" target="_blank">{{file.name}}</a></div> | |
141 | </td> | |
c65ef09e | 142 | <td ng-show="abtest.ab.status == 'Testing'"></td> |
deea897f TO |
143 | </tr> |
144 | <tr> | |
145 | <td>{{ts('Tracking')}}</td> | |
146 | <td ng-repeat="am in getActiveMailings()"> | |
147 | <div crm-mailing-review-bool crm-on="am.mailing.url_tracking=='1'" crm-title="ts('Click Throughs')"></div> | |
148 | <div crm-mailing-review-bool crm-on="am.mailing.open_tracking=='1'" crm-title="ts('Opens')"></div> | |
149 | </td> | |
c65ef09e | 150 | <td ng-show="abtest.ab.status == 'Testing'"></td> |
deea897f TO |
151 | </tr> |
152 | <tr> | |
153 | <td>{{ts('Responding')}}</td> | |
154 | <td ng-repeat="am in getActiveMailings()"> | |
155 | <div crm-mailing-review-bool crm-on="am.mailing.override_verp=='0'" crm-title="ts('Track Replies')"></div> | |
156 | <div crm-mailing-review-bool crm-on="am.mailing.override_verp=='0' && mailing.forward_replies=='1'" crm-title="ts('Forward Replies')"></div> | |
157 | <div ng-controller="PreviewComponentCtrl"> | |
77ec5a8d AH |
158 | <div ng-show="am.mailing.override_verp == '0' && mailing.auto_responder"><a crm-icon="fa-envelope" class="crm-hover-button action-item" ng-click="previewComponent(ts('Auto-Respond'), am.mailing.reply_id)">{{ts('Auto-Respond')}}</a></div> |
159 | <div><a crm-icon="fa-envelope" class="crm-hover-button action-item" ng-click="previewComponent(ts('Opt-out'), am.mailing.optout_id)">{{ts('Opt-out')}}</a></div> | |
160 | <div><a crm-icon="fa-envelope" class="crm-hover-button action-item" ng-click="previewComponent(ts('Resubscribe'), am.mailing.resubscribe_id)">{{ts('Resubscribe')}}</a></div> | |
161 | <div><a crm-icon="fa-envelope" class="crm-hover-button action-item" ng-click="previewComponent(ts('Unsubscribe'), am.mailing.unsubscribe_id)">{{ts('Unsubscribe')}}</a></div> | |
deea897f TO |
162 | </div> |
163 | </td> | |
c65ef09e | 164 | <td ng-show="abtest.ab.status == 'Testing'"></td> |
deea897f TO |
165 | </tr> |
166 | <tr> | |
167 | <td>{{ts('Publication')}}</td> | |
168 | <td ng-repeat="am in getActiveMailings()"> | |
169 | {{am.mailing.visibility}} | |
32b8b0bf | 170 | </td> |
c65ef09e | 171 | <td ng-show="abtest.ab.status == 'Testing'"></td> |
360aaa75 TO |
172 | </tr> |
173 | </tbody> | |
deea897f | 174 | |
360aaa75 TO |
175 | </table> |
176 | ||
35d9db5c | 177 | <!-- |
360aaa75 TO |
178 | <div crm-ui-tab-set> |
179 | <div crm-ui-tab id="tab-opens" crm-title="ts('Opens (WIP)')"> | |
180 | <div crm-mailing-ab-stats="{criteria: 'open', split_count: 5}" crm-abtest="abtest"></div> | |
181 | </div> | |
182 | <div crm-ui-tab id="tab-clicks" crm-title="ts('Total Clicks (WIP)')"> | |
183 | <div crm-mailing-ab-stats="{criteria: 'total unique clicks', split_count: 5}" crm-abtest="abtest"></div> | |
184 | </div> | |
185 | </div> | |
35d9db5c | 186 | --> |
360aaa75 TO |
187 | |
188 | </div> |