109 lines
4.8 KiB
HTML
109 lines
4.8 KiB
HTML
{% comment %}
|
|
The Mia Accounting Application
|
|
cash.html: The template for the accounting cash reports
|
|
|
|
Copyright (c) 2020 imacat.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
|
|
Author: imacat@mail.imacat.idv.tw (imacat)
|
|
First written: 2020/7/9
|
|
{% endcomment %}
|
|
{% load i18n %}
|
|
{% load accounting %}
|
|
|
|
<!-- the accounting record search dialog -->
|
|
<form action="{% url "accounting:search" %}" method="GET">
|
|
<!-- The Modal -->
|
|
<div class="modal" id="accounting-search-modal">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
|
|
<!-- Modal Header -->
|
|
<div class="modal-header">
|
|
<h4 class="modal-title">{{ _("Search Accounting Records")|force_escape }}</h4>
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
</div>
|
|
|
|
<!-- Modal body -->
|
|
<div class="modal-body">
|
|
<label for="accounting-query">{{ _("Search:")|force_escape }}</label>
|
|
<input id="accounting-query" type="text" name="q" value="{% if request.resolver_match.url_name == "search" %}{{ request.GET.q }}{% endif %}" placeholder="{{ _("e.g. Coffee")|force_escape }}" required="required" />
|
|
</div>
|
|
|
|
<!-- Modal footer -->
|
|
<div class="modal-footer">
|
|
<button class="btn btn-primary" type="submit">
|
|
<i class="fas fa-search"></i>
|
|
{{ _("Search")|force_escape }}
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
<!-- the report chooser button -->
|
|
<div class="btn-group">
|
|
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
|
|
<span class="d-none d-md-inline">
|
|
<i class="{{ current_report_icon }}"></i>
|
|
{{ current_report_title|force_escape }}
|
|
</span>
|
|
<span class="d-md-none">{{ _("Book")|force_escape }}</span>
|
|
</button>
|
|
{% report_url cash_account=cash_account ledger_account=ledger_account period=period as report_url %}
|
|
<div class="dropdown-menu account-picker">
|
|
<a class="dropdown-item {% if request.resolver_match.url_name == "cash" %} active {% endif %}" href="{{ report_url.cash }}">
|
|
<i class="fas fa-money-bill-wave"></i>
|
|
{{ _("Cash Account")|force_escape }}
|
|
</a>
|
|
<a class="dropdown-item {% if request.resolver_match.url_name == "cash-summary" %} active {% endif %}" href="{{ report_url.cash_summary }}">
|
|
<i class="fas fa-money-bill-wave"></i>
|
|
{{ _("Cash Summary")|force_escape }}
|
|
</a>
|
|
<a class="dropdown-item {% if request.resolver_match.url_name == "ledger" %} active {% endif %}" href="{{ report_url.ledger }}">
|
|
<i class="fas fa-file-invoice-dollar"></i>
|
|
{{ _("Ledger")|force_escape }}
|
|
</a>
|
|
<a class="dropdown-item {% if request.resolver_match.url_name == "ledger-summary" %} active {% endif %}" href="{{ report_url.ledger_summary }}">
|
|
<i class="fas fa-file-invoice-dollar"></i>
|
|
{{ _("Ledger Summary")|force_escape }}
|
|
</a>
|
|
<a class="dropdown-item {% if request.resolver_match.url_name == "journal" %} active {% endif %}" href="{{ report_url.journal }}">
|
|
<i class="fas fa-book"></i>
|
|
{{ _("Journal")|force_escape }}
|
|
</a>
|
|
<a class="dropdown-item {% if request.resolver_match.url_name == "trial-balance" %} active {% endif %}" href="{{ report_url.trial_balance }}">
|
|
<i class="fas fa-balance-scale-right"></i>
|
|
{{ _("Trial Balance")|force_escape }}
|
|
</a>
|
|
<a class="dropdown-item {% if request.resolver_match.url_name == "income-statement" %} active {% endif %}" href="{{ report_url.income_statement }}">
|
|
<i class="fas fa-file-invoice"></i>
|
|
{{ _("Income Statement")|force_escape }}
|
|
</a>
|
|
<a class="dropdown-item {% if request.resolver_match.url_name == "balance-sheet" %} active {% endif %}" href="{{ report_url.balance_sheet }}">
|
|
<i class="fas fa-balance-scale"></i>
|
|
{{ _("Balance Sheet")|force_escape }}
|
|
</a>
|
|
<span class="dropdown-item dropdown-search {% if request.resolver_match.url_name == "search" %} active {% endif %}" data-toggle="modal" data-target="#accounting-search-modal">
|
|
<i class="fas fa-search"></i>
|
|
{{ _("Search")|force_escape }}
|
|
</span>
|
|
<a class="dropdown-item {% if request.resolver_match.url_name == "accounts" %} active {% endif %}" href="{% url "accounting:accounts" %}">
|
|
<i class="fas fa-list-ol"></i>
|
|
{{ _("Accounts")|force_escape }}
|
|
</a>
|
|
</div>
|
|
</div>
|