time-range.html 1017 B

1234567891011121314151617181920
  1. {% from 'oscar/macros.html' import custom_select_class %}
  2. <label class="visually-hidden" for="time-range">{{ _('Time range') }}</label>
  3. <select name="time_range" id="time-range" class="{{ custom_select_class(rtl) }} form-control" accesskey="t">{{- "" -}}
  4. <option id="time-range-anytime" value="" {{ "selected" if time_range=="" or not time_range else ""}}>
  5. {{- _('Anytime') -}}
  6. </option>{{- "" -}}
  7. <option id="time-range-day" value="day" {{ "selected" if time_range=="day" else ""}}>
  8. {{- _('Last day') -}}
  9. </option>{{- "" -}}
  10. <option id="time-range-week" value="week" {{ "selected" if time_range=="week" else ""}}>
  11. {{- _('Last week') -}}
  12. </option>{{- "" -}}
  13. <option id="time-range-month" value="month" {{ "selected" if time_range=="month" else ""}}>
  14. {{- _('Last month') -}}
  15. </option>{{- "" -}}
  16. <option id="time-range-year" value="year" {{ "selected" if time_range=="year" else ""}}>
  17. {{- _('Last year') -}}
  18. </option>{{- "" -}}
  19. </select>