Remove Bootstrap files

This commit is contained in:
RunasSudo 2024-04-04 19:38:59 +11:00
parent 823447135c
commit 2938e246bd
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
20 changed files with 63 additions and 125 deletions

View File

@ -15,7 +15,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
#} #}
{% extends 'base_tailwind.html' %} {% extends 'base.html' %}
{% block title %}CGT adjustments{% endblock %} {% block title %}CGT adjustments{% endblock %}
{% block content %} {% block content %}

View File

@ -15,7 +15,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
#} #}
{% extends 'base_tailwind.html' %} {% extends 'base.html' %}
{% block title %}{{ 'Edit' if adjustment else 'New' }} CGT adjustment{% endblock %} {% block title %}{{ 'Edit' if adjustment else 'New' }} CGT adjustment{% endblock %}
{% block content %} {% block content %}

View File

@ -15,7 +15,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
#} #}
{% extends 'base_tailwind.html' %} {% extends 'base.html' %}
{% block title %}Multiple CGT adjustments{% endblock %} {% block title %}Multiple CGT adjustments{% endblock %}
{% block content %} {% block content %}

View File

@ -15,7 +15,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
#} #}
{% extends 'base_tailwind.html' %} {% extends 'base.html' %}
{% block title %}CGT assets{% endblock %} {% block title %}CGT assets{% endblock %}
{% block content %} {% block content %}

View File

@ -1,5 +1,5 @@
{# DrCr: Web-based double-entry bookkeeping framework {# DrCr: Web-based double-entry bookkeeping framework
Copyright (C) 2022–2023 Lee Yingtong Li (RunasSudo) Copyright (C) 2022–2024 Lee Yingtong Li (RunasSudo)
This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU Affero General Public License as published by
@ -16,47 +16,65 @@
#} #}
<!DOCTYPE html> <!DOCTYPE html>
<html> <html class="h-full">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}{% endblock %}</title> <title>{% block title %}{% endblock %}</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous"> <link rel="stylesheet" href="{{ url_for('static', filename='build/main.css') }}">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.2/font/bootstrap-icons.css" integrity="sha256-4RctOgogjPAdwGbwq+rxfwAmSpZhWaafcZR9btzUk18=" crossorigin="anonymous"> <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">
<style type="text/css">
@media print {
.container {
max-width: none;
}
}
</style>
</head> </head>
<body> <body class="h-full">
{% block body %} {% block body %}
<nav class="navbar navbar-expand-sm navbar-light bg-light d-print-none"> <div class="min-h-full">
<div class="container"> {# Navigation bar #}
<a class="navbar-brand" href="{{ url_for('index') }}">DrCr</a> <nav class="border-b border-gray-200 bg-white">
<div class="collapse navbar-collapse"> <div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
<ul class="navbar-nav"> <div class="flex h-12 justify-between">
<li class="nav-item"><a class="nav-link" href="{{ url_for('journal') }}">Journal</a></li> <div class="flex">
<li class="nav-item"><a class="nav-link" href="{{ url_for('statement_lines') }}">Statement lines</a></li> <div class="flex flex-shrink-0">
<li class="nav-item"><a class="nav-link" href="{{ url_for('trial_balance') }}">Trial balance</a></li> <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">
</ul> 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> </div>
</nav>
<div class="py-8">
<main>
<div class="mx-auto max-w-7xl sm:px-6 lg:px-8">
{% block content %}{% endblock %}
</div>
</main>
</div> </div>
</nav>
<div class="container">
{% block content %}{% endblock %}
{% if config['DEBUG'] %} {% if config['DEBUG'] %}
<footer class="border-top pt-4 mt-4 d-print-none"> <footer>
<p class="text-muted">Queries executed in {{ dbtime() }} msec. Page generated in __EXECUTION_TIME__ msec.</p> <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> </footer>
{% endif %} {% endif %}
</div> </div>
{% endblock %} {% endblock %}
{#<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>#}
{% block scripts %}{% endblock %} {% block scripts %}{% endblock %}
</body> </body>
</html> </html>

View File

@ -1,80 +0,0 @@
{# 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">
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
<div class="flex h-12 justify-between">
<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 sm:px-6 lg:px-8">
{% block content %}{% endblock %}
</div>
</main>
</div>
{% if config['DEBUG'] %}
<footer>
<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>

View File

@ -15,7 +15,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
#} #}
{% extends 'base_tailwind.html' %} {% extends 'base.html' %}
{% block title %}Chart of accounts{% endblock %} {% block title %}Chart of accounts{% endblock %}
{% block content %} {% block content %}

View File

@ -15,7 +15,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
#} #}
{% extends 'base_tailwind.html' %} {% extends 'base.html' %}
{% block title %}General ledger{% endblock %} {% block title %}General ledger{% endblock %}
{% block content %} {% block content %}

View File

@ -15,7 +15,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
#} #}
{% extends 'base_tailwind.html' %} {% extends 'base.html' %}
{% block title %}DrCr{% endblock %} {% block title %}DrCr{% endblock %}
{% block content %} {% block content %}

View File

@ -15,7 +15,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
#} #}
{% extends 'base_tailwind.html' %} {% extends 'base.html' %}
{% block title %}Balance assertions{% endblock %} {% block title %}Balance assertions{% endblock %}
{% block content %} {% block content %}

View File

@ -15,7 +15,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
#} #}
{% extends 'base_tailwind.html' %} {% extends 'base.html' %}
{% block title %}{{ 'Edit' if assertion else 'New' }} balance assertion{% endblock %} {% block title %}{{ 'Edit' if assertion else 'New' }} balance assertion{% endblock %}
{% block content %} {% block content %}

View File

@ -15,7 +15,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
#} #}
{% extends 'base_tailwind.html' %} {% extends 'base.html' %}
{% block title %}Journal{% endblock %} {% block title %}Journal{% endblock %}
{% block content %} {% block content %}

View File

@ -15,7 +15,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
#} #}
{% extends 'base_tailwind.html' %} {% extends 'base.html' %}
{% block title %}{{ 'Edit' if transaction and transaction.id else 'New' }} transaction{% endblock %} {% block title %}{{ 'Edit' if transaction and transaction.id else 'New' }} transaction{% endblock %}
{% block content %} {% block content %}

View File

@ -15,7 +15,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
#} #}
{% extends 'base_tailwind.html' %} {% extends 'base.html' %}
{% block title %}{{ report.title }}{% endblock %} {% block title %}{{ report.title }}{% endblock %}
{% macro render_section(section) %} {% macro render_section(section) %}

View File

@ -15,7 +15,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
#} #}
{% extends 'base_tailwind.html' %} {% extends 'base.html' %}
{% block title %}Import statement{% endblock %} {% block title %}Import statement{% endblock %}
{% block content %} {% block content %}

View File

@ -15,7 +15,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
#} #}
{% extends 'base_tailwind.html' %} {% extends 'base.html' %}
{% block title %}Import statement preview{% endblock %} {% block title %}Import statement preview{% endblock %}
{% block content %} {% block content %}

View File

@ -15,7 +15,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
#} #}
{% extends 'base_tailwind.html' %} {% extends 'base.html' %}
{% block title %}Statement lines{% endblock %} {% block title %}Statement lines{% endblock %}
{% block content %} {% block content %}

View File

@ -15,7 +15,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
#} #}
{% extends 'base_tailwind.html' %} {% extends 'base.html' %}
{% block title %}Account transactions{% endblock %} {% block title %}Account transactions{% endblock %}
{% block content %} {% block content %}

View File

@ -15,7 +15,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
#} #}
{% extends 'base_tailwind.html' %} {% extends 'base.html' %}
{% block title %}Account transactions{% endblock %} {% block title %}Account transactions{% endblock %}
{% block content %} {% block content %}

View File

@ -15,7 +15,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
#} #}
{% extends 'base_tailwind.html' %} {% extends 'base.html' %}
{% block title %}Trial balance{% endblock %} {% block title %}Trial balance{% endblock %}
{% block content %} {% block content %}