BirdNET-stream/www/templates/utils/calendar.html.twig

9 lines
538 B
Twig
Raw Normal View History

2022-08-16 07:05:49 +02:00
<div class="date-selector container row">
2022-08-16 19:28:19 +02:00
<label for="date">{{ "Date" | trans }}</label>
2022-08-16 07:05:49 +02:00
<button class="previous-date-button button">&lt;</button>
<input type="date" id="date" name="date" value="{{ date ? date : "now" | date("Y-m-d") }}" required title="{{ "Enter a date in this format YYYY-MM-DD" | trans }}"/>
2022-08-16 07:05:49 +02:00
<button class="next-date-button button prevent">&gt;</button>
2022-08-16 19:28:19 +02:00
<a href="/{{ endpoint }}/{{ date ? date : " now" | date("Y-m-d") }}/" class="button main">{{ "Go" | trans }}</a>
</div>
{{ encore_entry_script_tags('date') }}