blob: 3efd62acb2cd0953b9e1ca4f10d6d1bd726e8ee3 (
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
|
<div class="controls">
{{ 'Insights_ControlGrowthDescription'|translate }}
<select size="1" name="minGrowthPercent">
{% for i in range(0, 1, 1) %}
<option {% if i == properties.min_growth_percent %}selected{% endif %} value="{{ i }}">{{ i }}%</option>
{% endfor %}
{% for i in range(5, 100, 5) %}
<option {% if i == properties.min_growth_percent %}selected{% endif %} value="{{ i }}">{{ i }}%</option>
{% endfor %}
{% for i in range(200, 1000, 100) %}
<option {% if i == properties.min_growth_percent %}selected{% endif %} value="{{ i }}">{{ i }}%</option>
{% endfor %}
</select>
{% 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="">
{{ '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>
|