blob: c0dfa3d70cfd999d4073119c85ec01c0619483f4 (
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
|
<div class="controls">
{% if period != 'range' %}
{{ 'Insights_ControlComparedToDescription'|translate }}
{% if period == 'day' %}
<select size="1" name="comparedToXPeriodsAgo">
<option value="1" {% if properties.compared_to_x_periods_ago == 1 %}selected{% endif %}>
{{ 'Insights_DayComparedToPreviousDay'|translate }}
</option>
<option value="7" {% if properties.compared_to_x_periods_ago == 7 %}selected{% endif %}>
{{ 'Insights_DayComparedToPreviousWeek'|translate }}
</option>
<option value="365" {% if properties.compared_to_x_periods_ago == 365 %}selected{% endif %}>
{{ 'Insights_DayComparedToPreviousYear'|translate }}
</option>
</select>
{% elseif period == 'month' %}
<select size="1" name="comparedToXPeriodsAgo">
<option value="1" {% if properties.compared_to_x_periods_ago == 1 %}selected{% endif %}>
{{ 'Insights_MonthComparedToPreviousMonth'|translate }}
</option>
<option value="12" {% if properties.compared_to_x_periods_ago == 12 %}selected{% endif %}>
{{ 'Insights_MonthComparedToPreviousYear'|translate }}
</option>
</select>
{% elseif period == 'week' %}
{{ 'Insights_WeekComparedToPreviousWeek'|translate }}
{% elseif period == 'year' %}
{{ 'Insights_YearComparedToPreviousYear'|translate }}
{% endif %}
{% endif %}
<hr class="controlSeparator" />
{{ 'Insights_Filter'|translate }}
<select size="1" name="filterBy" title="{{ 'Insights_ControlFilterByDescription'|translate|e('html_attr') }}">
<option {% if not properties.filter_by %}selected{% endif %} value="all">
{{ 'General_All'|translate }}
</option>
<option {% if properties.filter_by == 'movers' %}selected{% endif %} value="movers">
{{ 'Insights_FilterOnlyMovers'|translate }}
</option>
<option {% if properties.filter_by == 'new' %}selected{% endif %} value="new">
{{ 'Insights_FilterOnlyNew'|translate }}
</option>
<option {% if properties.filter_by == 'disappeared' %}selected{% endif %} value="disappeared">
{{ 'Insights_FilterOnlyDisappeared'|translate }}
</option>
</select>
<select size="1" name="showIncreaseOrDecrease" title="Show increaser and/or decreaser">
<option value="both" {% if properties.limit_increaser and properties.limit_decreaser %}selected{%endif%}>
{{ 'Insights_FilterIncreaserAndDecreaser'|translate }}
</option>
<option value="increase" {% if properties.limit_increaser and not properties.limit_decreaser %}selected{%endif%}>
{{ 'Insights_FilterOnlyIncreaser'|translate }}
</option>
<option value="decrease" {% if not properties.limit_increaser and properties.limit_decreaser %}selected{%endif%}>
{{ 'Insights_FilterOnlyDecreaser'|translate }}
</option>
</select>
</div>
|