RunasSudo
b9f02d13d7
Create utility classes for buttons and form fields De-emphasise page heading Hide header and footer in print layout
81 lines
3.3 KiB
HTML
81 lines
3.3 KiB
HTML
{# DrCr: Web-based double-entry bookkeeping framework
|
|
Copyright (C) 2022–2024 Lee Yingtong Li (RunasSudo)
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU Affero General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU Affero General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
#}
|
|
|
|
<!DOCTYPE html>
|
|
<html class="h-full">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>{% block title %}{% endblock %}</title>
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='build/main.css') }}">
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,slnt,wght,GRAD@8..144,-10..0,100..1000,-200..150&display=swap">
|
|
</head>
|
|
<body class="h-full">
|
|
{% block body %}
|
|
<div class="min-h-full">
|
|
{# Navigation bar #}
|
|
<nav class="border-b border-gray-200 bg-white print:hidden">
|
|
<div class="mx-auto max-w-7xl px-6 lg:px-8">
|
|
<div class="flex h-12 justify-between ml-[-0.25rem]"> {# Adjust margin by -0.25rem to align navbar text with body text #}
|
|
<div class="flex">
|
|
<div class="flex flex-shrink-0">
|
|
<a href="{{ url_for('index') }}" class="border-transparent text-gray-900 hover:border-emerald-500 hover:text-emerald-700 inline-flex items-center border-b-2 px-1 pt-1 text-sm font-medium">
|
|
DrCr
|
|
</a>
|
|
</div>
|
|
|
|
{# Menu items #}
|
|
<div class="hidden sm:-my-px sm:ml-6 sm:flex sm:space-x-4">
|
|
<a href="{{ url_for('journal') }}" class="border-transparent text-gray-700 hover:border-emerald-500 hover:text-emerald-700 inline-flex items-center border-b-2 px-1 pt-1 text-sm">
|
|
Journal
|
|
</a>
|
|
<a href="{{ url_for('statement_lines') }}" class="border-transparent text-gray-700 hover:border-emerald-500 hover:text-emerald-700 inline-flex items-center border-b-2 px-1 pt-1 text-sm">
|
|
Statement lines
|
|
</a>
|
|
<a href="{{ url_for('trial_balance') }}" class="border-transparent text-gray-700 hover:border-emerald-500 hover:text-emerald-700 inline-flex items-center border-b-2 px-1 pt-1 text-sm">
|
|
Trial balance
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<div class="py-8">
|
|
<main>
|
|
<div class="mx-auto max-w-7xl px-6 lg:px-8">
|
|
{% block content %}{% endblock %}
|
|
</div>
|
|
</main>
|
|
</div>
|
|
|
|
{% if config['DEBUG'] %}
|
|
<footer class="print:hidden">
|
|
<div class="mt-6 mx-auto max-w-3xl px-4 sm:px-6 lg:max-w-7xl lg:px-8">
|
|
<div class="border-t border-gray-200 py-4 text-center text-sm text-gray-500 sm:text-left">
|
|
Queries executed in {{ dbtime() }} msec. Page generated in __EXECUTION_TIME__ msec.
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
{% endif %}
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block scripts %}{% endblock %}
|
|
</body>
|
|
</html>
|