431 lines
20 KiB
HTML
431 lines
20 KiB
HTML
<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">
|
|
<div class="flex ml-6">
|
|
<button hx-get="{{ url_for('get_calendar', person_id=person['PersonId']) }}" hx-target="#container"
|
|
hx-vals='{"date": "{{ previous_date }}"}' hx-include="[name='view']">
|
|
<svg class="w-6 h-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
|
|
stroke="currentColor" data-darkreader-inline-stroke=""
|
|
style="--darkreader-inline-stroke:currentColor;">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7">
|
|
</path>
|
|
</svg>
|
|
</button>
|
|
<button hx-get="{{ url_for('get_calendar', person_id=person['PersonId']) }}" hx-target="#container"
|
|
hx-vals='{"date": "{{ next_date }}"}' hx-include="[name='view']">
|
|
<svg class="w-6 h-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
|
|
stroke="currentColor" data-darkreader-inline-stroke=""
|
|
style="--darkreader-inline-stroke:currentColor;">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7">
|
|
</path>
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
<h2 class="ml-2 text-xl font-bold leading-none">{{ strftime(selected_date, '%B, %Y') }}</h2>
|
|
</div>
|
|
<select
|
|
class="block appearance-none w-40 bg-gray-200 border border-gray-200 text-gray-700 py-3 px-4 pr-8 rounded leading-tight focus:outline-none focus:bg-white focus:border-gray-500 mr-5"
|
|
name="view">
|
|
<option value="month">Month</option>
|
|
<option value="year">Year</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="flex flex-col px-2 py-2 -mb-px">
|
|
<div class="grid grid-cols-7 pl-2 pr-2">
|
|
|
|
<div class="p-2 h-10 text-center font-bold">
|
|
<span class="xl:block lg:block md:block sm:block hidden">Sunday</span>
|
|
<span class="xl:hidden lg:hidden md:hidden sm:hidden block">Sun</span>
|
|
</div>
|
|
<div class="p-2 h-10 text-center font-bold">
|
|
<span class="xl:block lg:block md:block sm:block hidden">Monday</span>
|
|
<span class="xl:hidden lg:hidden md:hidden sm:hidden block">Mon</span>
|
|
</div>
|
|
<div class="p-2 h-10 text-center font-bold">
|
|
<span class="xl:block lg:block md:block sm:block hidden">Tuesday</span>
|
|
<span class="xl:hidden lg:hidden md:hidden sm:hidden block">Tue</span>
|
|
</div>
|
|
<div class="p-2 h-10 text-center font-bold">
|
|
<span class="xl:block lg:block md:block sm:block hidden">Wednesday</span>
|
|
<span class="xl:hidden lg:hidden md:hidden sm:hidden block">Wed</span>
|
|
</div>
|
|
<div class="p-2 h-10 text-center font-bold">
|
|
<span class="xl:block lg:block md:block sm:block hidden">Thursday</span>
|
|
<span class="xl:hidden lg:hidden md:hidden sm:hidden block">Thu</span>
|
|
</div>
|
|
<div class="p-2 h-10 text-center font-bold">
|
|
<span class="xl:block lg:block md:block sm:block hidden">Friday</span>
|
|
<span class="xl:hidden lg:hidden md:hidden sm:hidden block">Fri</span>
|
|
</div>
|
|
<div class="p-2 h-10 text-center font-bold">
|
|
<span class="xl:block lg:block md:block sm:block hidden">Saturday</span>
|
|
<span class="xl:hidden lg:hidden md:hidden sm:hidden block">Sat</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="grid grid-cols-7 overflow-hidden flex-1 pl-2 pr-2 w-full">
|
|
|
|
<div class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold">1</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer">
|
|
<button class="flex items-center flex-shrink-0 h-5 px-1 text-xs">
|
|
<span class="ml-2 font-medium leading-none truncate">Squat</span>
|
|
<span class="ml-2 font-light leading-none">5x50kg</span>
|
|
|
|
</button>
|
|
<button class="flex items-center flex-shrink-0 h-5 px-1 text-xs">
|
|
<span class="ml-2 font-medium leading-none truncate">DB Seal row</span>
|
|
<span class="ml-2 font-light leading-none">12x20kg</span>
|
|
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold">2</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer">
|
|
<button class="flex items-center flex-shrink-0 h-5 px-1 text-xs hover:bg-gray-200">
|
|
<span class="ml-2 font-medium leading-none truncate">Squat</span>
|
|
<span class="ml-2 font-light leading-none">5x50kg</span>
|
|
|
|
</button>
|
|
<button class="flex items-center flex-shrink-0 h-5 px-1 text-xs hover:bg-gray-200">
|
|
<span class="ml-2 font-medium leading-none truncate">DB Seal row</span>
|
|
<span class="ml-2 font-light leading-none">12x20kg</span>
|
|
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold">3</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer"></div>
|
|
</div>
|
|
|
|
|
|
<div class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold">4</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer"></div>
|
|
</div>
|
|
|
|
|
|
<div class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold">6</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer"></div>
|
|
</div>
|
|
|
|
|
|
<div class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold">7</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer">
|
|
<button class="flex items-center flex-shrink-0 h-5 px-1 text-xs hover:bg-gray-200">
|
|
<span class="ml-2 font-medium leading-none truncate">Squat</span>
|
|
<span class="ml-2 font-light leading-none">5x50kg</span>
|
|
|
|
</button>
|
|
<button class="flex items-center flex-shrink-0 h-5 px-1 text-xs hover:bg-gray-200">
|
|
<span class="ml-2 font-medium leading-none truncate">DB Seal row</span>
|
|
<span class="ml-2 font-light leading-none">12x20kg</span>
|
|
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold text-sm">8</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer"></div>
|
|
</div>
|
|
|
|
|
|
|
|
<!-- line 1 -->
|
|
|
|
<div class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold">9</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer"></div>
|
|
</div>
|
|
|
|
|
|
<div class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold">10</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer"></div>
|
|
</div>
|
|
|
|
|
|
<div class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold">12</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer">
|
|
<button class="flex items-center flex-shrink-0 h-5 px-1 text-xs hover:bg-gray-200">
|
|
<span class="ml-2 font-medium leading-none truncate">Squat</span>
|
|
<span class="ml-2 font-light leading-none">5x50kg</span>
|
|
|
|
</button>
|
|
<button class="flex items-center flex-shrink-0 h-5 px-1 text-xs hover:bg-gray-200">
|
|
<span class="ml-2 font-medium leading-none truncate">DB Seal row</span>
|
|
<span class="ml-2 font-light leading-none">12x20kg</span>
|
|
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold">13</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer"></div>
|
|
</div>
|
|
|
|
|
|
<div
|
|
class="rounded-md border-4 border-green-50 border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold">14</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer"></div>
|
|
</div>
|
|
|
|
|
|
<div class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold">15</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer"></div>
|
|
</div>
|
|
|
|
|
|
<div class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold text-sm">16</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer"></div>
|
|
</div>
|
|
|
|
|
|
<!-- line 1 -->
|
|
|
|
<!-- line 2 -->
|
|
|
|
<div class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold">16</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer">
|
|
<button class="flex items-center flex-shrink-0 h-5 px-1 text-xs hover:bg-gray-200">
|
|
<span class="ml-2 font-medium leading-none truncate">Squat</span>
|
|
<span class="ml-2 font-light leading-none">5x50kg</span>
|
|
|
|
</button>
|
|
<button class="flex items-center flex-shrink-0 h-5 px-1 text-xs hover:bg-gray-200">
|
|
<span class="ml-2 font-medium leading-none truncate">DB Seal row</span>
|
|
<span class="ml-2 font-light leading-none">12x20kg</span>
|
|
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold">17</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer"></div>
|
|
</div>
|
|
|
|
|
|
<div class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold">18</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer"></div>
|
|
</div>
|
|
|
|
|
|
<div class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold">19</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer"></div>
|
|
</div>
|
|
|
|
|
|
<div class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold">20</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer"></div>
|
|
</div>
|
|
|
|
|
|
<div class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold">21</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer"></div>
|
|
</div>
|
|
|
|
|
|
<div class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold text-sm">22</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer"></div>
|
|
</div>
|
|
|
|
|
|
<!-- line 2 -->
|
|
|
|
<!-- line 3 -->
|
|
|
|
<div class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold">23</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer"></div>
|
|
</div>
|
|
|
|
|
|
<div class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold">24</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer"></div>
|
|
</div>
|
|
|
|
|
|
<div class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold">25</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer"></div>
|
|
</div>
|
|
|
|
|
|
<div class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold">26</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer"></div>
|
|
</div>
|
|
|
|
|
|
<div class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold">27</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer"></div>
|
|
</div>
|
|
|
|
|
|
<div class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold">28</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer"></div>
|
|
</div>
|
|
|
|
|
|
<div class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold text-sm">29</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer"></div>
|
|
</div>
|
|
|
|
|
|
<!-- line 3 -->
|
|
|
|
<!-- line 4 -->
|
|
|
|
<div class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold">30</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer"></div>
|
|
</div>
|
|
|
|
|
|
<div class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold">31</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer"></div>
|
|
</div>
|
|
|
|
|
|
<div
|
|
class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2 bg-gray-100 pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold">1</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer"></div>
|
|
</div>
|
|
|
|
|
|
<div
|
|
class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2 bg-gray-100 pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold">2</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer"></div>
|
|
</div>
|
|
|
|
|
|
<div
|
|
class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2 bg-gray-100 pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold">3</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer"></div>
|
|
</div>
|
|
|
|
|
|
<div
|
|
class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2 bg-gray-100 pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold">4</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer"></div>
|
|
</div>
|
|
|
|
|
|
<div
|
|
class="border flex flex-col h-40 mx-auto mx-auto overflow-hidden w-full pt-2 pl-2 bg-gray-100 pt-2 pl-2">
|
|
<div class="top h-5 w-full">
|
|
<span class="text-gray-500 font-semibold text-sm">5</span>
|
|
</div>
|
|
<div class="bottom flex-grow h-30 py-1 w-full cursor-pointer"></div>
|
|
</div>
|
|
|
|
|
|
<!-- line 4 -->
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div> |