mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-07-09 06:15:14 +02:00
59 lines
2.4 KiB
HTML
59 lines
2.4 KiB
HTML
{% extends "layouts/base.html" %}
|
|
{% load crispy_forms_tags %}
|
|
{% load i18n %}
|
|
{% load month_name %}
|
|
{% load static %}
|
|
|
|
{% block title %}{% translate 'Monthly Overview' %} :: {{ month|month_name }}/{{ year }}{% endblock %}
|
|
|
|
{% block body_hyperscript %}
|
|
on keyup[code is 'ArrowLeft' and target.nodeName is 'BODY'] from body trigger 'previous_month' end
|
|
on keyup[code is 'ArrowRight' and target.nodeName is 'BODY'] from body trigger 'next_month' end
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="tw:container tw:px-md-3 tw:py-3 tw:gap-x-5">
|
|
<div class="tw:flex tw:flex-wrap tw:mb-4 tw:gap-x-xl-4 tw:gap-y-3">
|
|
{# Date picker#}
|
|
<div class="tw:w-full tw:xl:w-4/12 tw:flex-row tw:items-center tw:flex">
|
|
<div class="tw:text-base tw:h-full tw:items-center tw:flex">
|
|
<a role="button"
|
|
class="tw:pe-4 tw:py-2"
|
|
hx-boost="true"
|
|
hx-trigger="click, previous_month from:window"
|
|
href="{% url 'calendar' month=previous_month year=previous_year %}"><i
|
|
class="fa-solid fa-chevron-left"></i></a>
|
|
</div>
|
|
<div class="tw:text-3xl tw:font-bold tw:font-mono tw:w-full tw:text-center"
|
|
hx-get="{% url 'month_year_picker' %}"
|
|
hx-target="#generic-offcanvas-left"
|
|
hx-trigger="click, date_picker from:window"
|
|
hx-vals='{"month": {{ month }}, "year": {{ year }}, "for": "calendar", "field": "date"}' role="button">
|
|
{{ month|month_name }} {{ year }}
|
|
</div>
|
|
<div class="tw:text-base tw:mx-2 tw:h-full tw:items-center tw:flex">
|
|
<a role="button"
|
|
class="tw:ps-3 tw:py-2"
|
|
hx-boost="true"
|
|
hx-trigger="click, next_month from:window"
|
|
href="{% url 'calendar' month=next_month year=next_year %}">
|
|
<i class="fa-solid fa-chevron-right"></i>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
{# Action buttons#}
|
|
<div class="tw:w-full tw:xl:w-8/12">
|
|
{# <c-ui.quick-transactions-buttons#}
|
|
{# :year="year"#}
|
|
{# :month="month"#}
|
|
{# ></c-ui.quick-transactions-buttons>#}
|
|
</div>
|
|
</div>
|
|
<div class="tw:flex tw:flex-wrap">
|
|
<div class="show-loading tw:w-full" hx-get="{% url 'calendar_list' month=month year=year %}"
|
|
hx-trigger="load, updated from:window, selective_update from:window, every 10m"></div>
|
|
</div>
|
|
</div>
|
|
<c-ui.transactions_fab></c-ui.transactions_fab>
|
|
{% endblock %}
|