Scroll to top when month is selected in year view
This commit is contained in:
@@ -41,8 +41,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mr-4">
|
<div class="mr-4">
|
||||||
<select id="workout-view-picker" data-te-select-init data-te-select-size="lg"
|
<select id="workout-view-picker" data-te-select-init data-te-select-size="lg" name="view"
|
||||||
name="view" hx-get="{{ url_for('get_calendar', person_id=person['PersonId']) }}" hx-target="#container"
|
hx-get="{{ url_for('get_calendar', person_id=person['PersonId']) }}" hx-target="#container"
|
||||||
hx-vals='{"date": "{{ selected_date }}"}' hx-push-url="true">
|
hx-vals='{"date": "{{ selected_date }}"}' hx-push-url="true">
|
||||||
<option value="month" {% if selected_view=='month' %}selected{% endif %}>Month</option>
|
<option value="month" {% if selected_view=='month' %}selected{% endif %}>Month</option>
|
||||||
<option value="year" {% if selected_view=='year' %}selected{% endif %}>Year</option>
|
<option value="year" {% if selected_view=='year' %}selected{% endif %}>Year</option>
|
||||||
@@ -138,7 +138,8 @@
|
|||||||
<div>
|
<div>
|
||||||
<div class="bg-grey-lighter font-semibold text-center cursor-pointer"
|
<div class="bg-grey-lighter font-semibold text-center cursor-pointer"
|
||||||
hx-get="{{ url_for('get_calendar', person_id=person['PersonId']) }}" hx-target="#container"
|
hx-get="{{ url_for('get_calendar', person_id=person['PersonId']) }}" hx-target="#container"
|
||||||
hx-vals='{"date": "{{ first_day_of_month }}", "view": "month"}' hx-push-url="true">{{
|
hx-vals='{"date": "{{ first_day_of_month }}", "view": "month"}' hx-push-url="true"
|
||||||
|
_="on click go to the top of the body">{{
|
||||||
first_day_of_month | strftime('%B %Y') }}
|
first_day_of_month | strftime('%B %Y') }}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in New Issue
Block a user