blob: 64cb2456b43dcf6893539d700cd840c36562cc5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
|
<div piwik-content-block
content-title="{{ 'ScheduledReports_CreateAndScheduleReport'|translate|e('html_attr') }}"
class="entityAddContainer"
ng-show="manageScheduledReport.showReportForm">
<div class='clear'></div>
<form id='addEditReport' piwik-form ng-submit="manageScheduledReport.submitReport()">
<div piwik-field uicontrol="text" name="website"
title="{{ 'General_Website'|translate|e('html_attr') }}"
disabled="true"
value="{{ siteName|rawSafeDecoded }}">
</div>
<div piwik-field uicontrol="textarea" name="report_description"
title="{{ 'General_Description'|translate|e('html_attr') }}"
ng-model="manageScheduledReport.report.description"
inline-help="{{ 'ScheduledReports_DescriptionOnFirstPage'|translate|e('html_attr') }}">
</div>
{% if segmentEditorActivated %}
<div id="reportSegmentInlineHelp" class="inline-help-node">
{% set SegmentEditor_DefaultAllVisits %}{{ 'SegmentEditor_DefaultAllVisits'|translate }}{% endset %}
{% set SegmentEditor_AddNewSegment %}{{ 'SegmentEditor_AddNewSegment'|translate }}{% endset %}
{{ 'ScheduledReports_Segment_Help'|translate('<a href="./" rel="noreferrer noopener" target="_blank">','</a>',SegmentEditor_DefaultAllVisits,SegmentEditor_AddNewSegment)|raw }}
</div>
<div piwik-field uicontrol="select" name="report_segment"
ng-model="manageScheduledReport.report.idsegment"
options="{{ savedSegmentsById|json_encode }}"
title="{{ 'SegmentEditor_ChooseASegment'|translate|e('html_attr') }}"
inline-help="#reportSegmentInlineHelp">
</div>
{% endif %}
<div id="emailScheduleInlineHelp" class="inline-help-node">
{{ 'ScheduledReports_WeeklyScheduleHelp'|translate }}
<br/>
{{ 'ScheduledReports_MonthlyScheduleHelp'|translate }}
</div>
<div piwik-field uicontrol="select" name="report_period"
options="{{ periods|json_encode }}"
ng-model="manageScheduledReport.report.period"
title="{{ 'ScheduledReports_EmailSchedule'|translate|e('html_attr') }}"
inline-help="#emailScheduleInlineHelp">
</div>
<div piwik-field uicontrol="select" name="report_hour"
options="manageScheduledReport.reportHours"
ng-change="manageScheduledReport.updateReportHourUtc()"
ng-model="manageScheduledReport.report.hour"
{% if timezoneOffset != 0 %}inline-help="#reportHourHelpText"{% endif %}
title="{{ 'ScheduledReports_ReportHour'|translate('X')|e('html_attr') }}">
</div>
{% if timezoneOffset != 0 %}
<div id="reportHourHelpText" class="inline-help-node">
<span ng-bind="manageScheduledReport.report.hourUtc"></span>
</div>
{% endif %}
<div piwik-field uicontrol="select" name="report_type"
options="{{ reportTypeOptions|json_encode }}"
ng-model="manageScheduledReport.report.type"
ng-change="manageScheduledReport.changedReportType()"
{% if reportTypes|length == 1 %}disabled="true"{% endif %}
title="{{ 'ScheduledReports_ReportType'|translate|e('html_attr') }}">
</div>
{% for reportType, reportFormats in reportFormatsByReportTypeOptions %}
<div piwik-field uicontrol="select" name="report_format"
class="{{ reportType }}"
ng-model="manageScheduledReport.report.format{{ reportType }}"
ng-show="manageScheduledReport.report.type == '{{ reportType }}'"
options="{{ reportFormats|json_encode }}"
title="{{ 'ScheduledReports_ReportFormat'|translate|e('html_attr') }}">
</div>
{% endfor %}
{{ postEvent("Template.reportParametersScheduledReports") }}
<div ng-show="manageScheduledReport.report.type == 'email' && manageScheduledReport.report.formatemail !== 'csv'">
<div piwik-field uicontrol="select" name="display_format" class="email"
ng-model="manageScheduledReport.report.displayFormat"
options="{{ displayFormats|json_encode }}"
introduction="{{ 'ScheduledReports_AggregateReportsFormat'|translate|e('html_attr') }}">
</div>
<div piwik-field uicontrol="checkbox" name="report_evolution_graph"
class="report_evolution_graph"
ng-model="manageScheduledReport.report.evolutionGraph"
ng-show="manageScheduledReport.report.displayFormat == '2' || manageScheduledReport.report.displayFormat == '3'"
title="{{ 'ScheduledReports_EvolutionGraph'|translate(5)|e('html_attr') }}">
</div>
</div>
<div class="row">
<h3 class="col s12">{{ 'ScheduledReports_ReportsIncluded'|translate }}</h3>
</div>
{% for reportType, reportsByCategory in reportsByCategoryByReportType %}
<div name='reportsList' class='row {{ reportType }}'
ng-show="manageScheduledReport.report.type == '{{ reportType }}'">
{% if allowMultipleReportsByReportType[reportType] %}
{% set reportInputType='checkbox' %}
{% else %}
{% set reportInputType='radio' %}
{% endif %}
{% set countCategory=0 %}
{% set newColumnAfter=(reportsByCategory|length + 1)//2 %}
<div class='col s12 m6'>
{% for category, reports in reportsByCategory %}
{% if countCategory >= newColumnAfter and newColumnAfter != 0 %}
{% set newColumnAfter=0 %}
</div>
<div class='col s12 m6'>
{% endif %}
<h3 class='reportCategory'>{{ category }}</h3>
<ul class='listReports'>
{% for report in reports %}
<li>
<input type='{{ reportInputType }}' id="{{ reportType }}{{ report.uniqueId }}" report-unique-id='{{ report.uniqueId }}'
name='{{ reportType }}Reports'/>
<label for="{{ reportType }}{{ report.uniqueId }}">
{{ report.name|rawSafeDecoded }}
{% if report.uniqueId=='MultiSites_getAll' %}
<div class="entityInlineHelp">{{ 'ScheduledReports_ReportIncludeNWebsites'|translate(countWebsites)
}}</div>
{% endif %}
</label>
</li>
{% endfor %}
{% set countCategory=countCategory+1 %}
</ul>
<br/>
{% endfor %}
</div>
</div>
{% endfor %}
<input type="hidden" id="report_idreport" ng-model="manageScheduledReport.editingReportId">
<div ng-value="manageScheduledReport.saveButtonTitle"
onconfirm="manageScheduledReport.submitReport()"
piwik-save-button></div>
<div class='entityCancel'>
{{ 'General_OrCancel'|translate("<a class='entityCancelLink' ng-click='manageScheduledReport.showListOfReports()'>","</a>")|raw }}
</div>
</form>
</div>
|