2020-08-27 21:55:47 +02:00
|
|
|
{% from 'oscar/macros.html' import custom_select_class %}
|
2020-06-25 18:29:13 +02:00
|
|
|
<label class="visually-hidden" for="time-range">{{ _('Time range') }}</label>
|
2020-08-27 21:55:47 +02:00
|
|
|
<select name="time_range" id="time-range" class="{{ custom_select_class(rtl) }} form-control" accesskey="t">{{- "" -}}
|
2016-07-24 12:12:09 +02:00
|
|
|
<option id="time-range-anytime" value="" {{ "selected" if time_range=="" or not time_range else ""}}>
|
2019-08-06 11:41:16 +02:00
|
|
|
{{- _('Anytime') -}}
|
|
|
|
</option>{{- "" -}}
|
2016-07-24 12:12:09 +02:00
|
|
|
<option id="time-range-day" value="day" {{ "selected" if time_range=="day" else ""}}>
|
2019-08-06 11:41:16 +02:00
|
|
|
{{- _('Last day') -}}
|
|
|
|
</option>{{- "" -}}
|
2016-07-24 12:12:09 +02:00
|
|
|
<option id="time-range-week" value="week" {{ "selected" if time_range=="week" else ""}}>
|
2019-08-06 11:41:16 +02:00
|
|
|
{{- _('Last week') -}}
|
|
|
|
</option>{{- "" -}}
|
2016-07-24 12:12:09 +02:00
|
|
|
<option id="time-range-month" value="month" {{ "selected" if time_range=="month" else ""}}>
|
2019-08-06 11:41:16 +02:00
|
|
|
{{- _('Last month') -}}
|
|
|
|
</option>{{- "" -}}
|
2016-12-11 16:36:32 +01:00
|
|
|
<option id="time-range-year" value="year" {{ "selected" if time_range=="year" else ""}}>
|
2019-08-06 11:41:16 +02:00
|
|
|
{{- _('Last year') -}}
|
|
|
|
</option>{{- "" -}}
|
2016-07-24 12:12:09 +02:00
|
|
|
</select>
|