2023-01-02 18:50:49 +11:00
|
|
|
{# DrCr: Web-based double-entry bookkeeping framework
|
2024-04-04 19:36:30 +11:00
|
|
|
Copyright (C) 2022–2024 Lee Yingtong Li (RunasSudo)
|
2023-01-02 18:50:49 +11:00
|
|
|
|
|
|
|
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/>.
|
|
|
|
#}
|
|
|
|
|
2024-04-04 19:38:59 +11:00
|
|
|
{% extends 'base.html' %}
|
2023-01-02 18:50:49 +11:00
|
|
|
{% block title %}Import statement{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2024-04-04 21:02:29 +11:00
|
|
|
<h1 class="page-heading mb-4">
|
2024-04-04 19:36:30 +11:00
|
|
|
Import statement
|
|
|
|
</h1>
|
2023-01-02 18:50:49 +11:00
|
|
|
|
2024-04-04 19:36:30 +11:00
|
|
|
<h2 class="text-xl text-gray-900 font-semibold mb-1">OFX 1.x</h2>
|
2023-01-02 18:50:49 +11:00
|
|
|
|
|
|
|
<form method="POST" enctype="multipart/form-data">
|
|
|
|
<input type="hidden" name="format" value="ofx1">
|
2024-04-04 19:36:30 +11:00
|
|
|
<div class="flex">
|
|
|
|
<div class="grow mr-2">
|
2024-04-04 21:02:29 +11:00
|
|
|
<input type="text" class="bordered-field" name="source-account" placeholder="Source account">
|
2023-01-02 18:50:49 +11:00
|
|
|
</div>
|
2024-04-04 19:36:30 +11:00
|
|
|
<div class="flex">
|
2023-01-02 18:50:49 +11:00
|
|
|
</div>
|
2024-04-04 19:36:30 +11:00
|
|
|
<div class="flex grow mr-2">
|
2024-04-04 21:02:29 +11:00
|
|
|
<label for="file_ofx1" class="btn-primary bg-gray-600 hover:bg-gray-700">Browse</label>
|
2024-04-04 19:36:30 +11:00
|
|
|
<input type="file" class="file:hidden block w-full border-0 py-1 px-2 text-gray-500 shadow-sm ring-1 ring-inset ring-gray-300" name="file" id="file_ofx1" accept=".ofx">
|
|
|
|
</div>
|
|
|
|
<div class="mr-2">
|
2024-04-04 21:02:29 +11:00
|
|
|
<button type="submit" name="action" value="preview" class="btn-secondary">Preview</button>
|
2023-01-02 18:50:49 +11:00
|
|
|
</div>
|
|
|
|
<div>
|
2024-04-04 21:02:29 +11:00
|
|
|
<button type="submit" name="action" value="import" class="btn-primary">Import</button>
|
2023-01-02 18:50:49 +11:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
2023-01-04 18:37:05 +11:00
|
|
|
|
2024-04-04 19:36:30 +11:00
|
|
|
<h2 class="text-xl text-gray-900 font-semibold mt-4 mb-1">OFX 2.x</h2>
|
2023-01-04 18:37:05 +11:00
|
|
|
|
|
|
|
<form method="POST" enctype="multipart/form-data">
|
|
|
|
<input type="hidden" name="format" value="ofx2">
|
2024-04-04 19:36:30 +11:00
|
|
|
<div class="flex">
|
|
|
|
<div class="grow mr-2">
|
2024-04-04 21:02:29 +11:00
|
|
|
<input type="text" class="bordered-field" name="source-account" placeholder="Source account">
|
2023-01-04 18:37:05 +11:00
|
|
|
</div>
|
2024-04-04 19:36:30 +11:00
|
|
|
<div class="flex">
|
2023-01-04 18:37:05 +11:00
|
|
|
</div>
|
2024-04-04 19:36:30 +11:00
|
|
|
<div class="flex grow mr-2">
|
2024-04-04 21:02:29 +11:00
|
|
|
<label for="file_ofx2" class="btn-primary bg-gray-600 hover:bg-gray-700">Browse</label>
|
2024-04-04 19:36:30 +11:00
|
|
|
<input type="file" class="file:hidden block w-full border-0 py-1 px-2 text-gray-500 shadow-sm ring-1 ring-inset ring-gray-300" name="file" id="file_ofx2" accept=".ofx">
|
|
|
|
</div>
|
|
|
|
<div class="mr-2">
|
2024-04-04 21:02:29 +11:00
|
|
|
<button type="submit" name="action" value="preview" class="btn-secondary">Preview</button>
|
2023-01-04 18:37:05 +11:00
|
|
|
</div>
|
|
|
|
<div>
|
2024-04-04 21:02:29 +11:00
|
|
|
<button type="submit" name="action" value="import" class="btn-primary">Import</button>
|
2023-01-04 18:37:05 +11:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
2023-01-02 18:50:49 +11:00
|
|
|
{% endblock %}
|