Fix calendar background defect
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
id="refreshViewElement"></a>
|
id="refreshViewElement"></a>
|
||||||
|
|
||||||
<div class="flex flex-grow flex-col bg-white sm:rounded shadow overflow-hidden">
|
<div class="flex flex-grow flex-col bg-white sm:rounded shadow overflow-hidden">
|
||||||
<div class="">
|
|
||||||
<div class="flex items-center justify-between pt-2 pb-2">
|
<div class="flex items-center justify-between pt-2 pb-2">
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<div class="flex ml-6">
|
<div class="flex ml-6">
|
||||||
@@ -37,24 +36,20 @@
|
|||||||
person['PersonName']}}</span>
|
person['PersonName']}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div class="mr-4">
|
||||||
<select id="workout-view-picker" data-te-select-init data-te-select-filter="true"
|
<select id="workout-view-picker" data-te-select-init data-te-select-filter="true" data-te-select-size="lg"
|
||||||
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>
|
||||||
<option value="all">All</option>
|
<option value="all">All</option>
|
||||||
</select>
|
</select>
|
||||||
<script>
|
<script>
|
||||||
te.Select.getOrCreateInstance(document.querySelector("#workout-view-picker")).setValue({{ selected_view | safe }});
|
te.Select.getOrCreateInstance(document.querySelector("#workout-view-picker")).setValue("{{ selected_view | safe }}");
|
||||||
</script>
|
</script>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% if selected_view == 'month' %}
|
{% if selected_view == 'month' %}
|
||||||
<div class="flex flex-col px-2 py-2 -mb-px">
|
<div class="flex flex-col px-2 py-2 -mb-px">
|
||||||
<div class="grid grid-cols-7 pl-2 pr-2">
|
<div class="grid grid-cols-7 pl-2 pr-2">
|
||||||
@@ -111,7 +106,8 @@
|
|||||||
class="flex flex-col xl:flex-row items-start lg:items-center flex-shrink-0 px-0 sm:px-0.5 md:px-0.5 lg:px-0.5 text-xs">
|
class="flex flex-col xl:flex-row items-start lg:items-center flex-shrink-0 px-0 sm:px-0.5 md:px-0.5 lg:px-0.5 text-xs">
|
||||||
<span class="ml-0 sm:ml-0.5 md:ml-2 lg:ml-2 font-medium leading-none truncate">{{
|
<span class="ml-0 sm:ml-0.5 md:ml-2 lg:ml-2 font-medium leading-none truncate">{{
|
||||||
topset['ExerciseName'] }}</span>
|
topset['ExerciseName'] }}</span>
|
||||||
<span class="ml-0 sm:ml-0.5 md:ml-2 lg:ml-2 font-light leading-none">{{ topset['Repetitions'] }} x
|
<span class="ml-0 sm:ml-0.5 md:ml-2 lg:ml-2 font-light leading-none">{{ topset['Repetitions'] }}
|
||||||
|
x
|
||||||
{{
|
{{
|
||||||
topset['Weight']
|
topset['Weight']
|
||||||
}}kg</span>
|
}}kg</span>
|
||||||
@@ -176,7 +172,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{{ render_partial('partials/stats.html', stats=person['Stats']) }}
|
{{ render_partial('partials/stats.html', stats=person['Stats']) }}
|
||||||
|
|
||||||
<button
|
<button
|
||||||
|
|||||||
Reference in New Issue
Block a user