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 19:36:30 +11:00
|
|
|
<h1 class="text-3xl text-gray-900 mb-4">
|
|
|
|
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">
|
|
|
|
<input type="text" class="block w-full border-0 py-1 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-emerald-600" 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">
|
|
|
|
<label for="file_ofx1" class="bg-gray-600 px-3 py-1 text-white shadow-sm hover:bg-gray-700">Browse</label>
|
|
|
|
<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">
|
|
|
|
<button type="submit" name="action" value="preview" class="px-3 py-1 text-gray-800 ring-1 ring-inset ring-gray-400 hover:bg-gray-50">Preview</button>
|
2023-01-02 18:50:49 +11:00
|
|
|
</div>
|
|
|
|
<div>
|
2024-04-04 19:36:30 +11:00
|
|
|
<button type="submit" name="action" value="import" class="bg-emerald-600 px-3 py-1 text-white shadow-sm hover:bg-emerald-700">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">
|
|
|
|
<input type="text" class="block w-full border-0 py-1 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-emerald-600" 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">
|
|
|
|
<label for="file_ofx2" class="bg-gray-600 px-3 py-1 text-white shadow-sm hover:bg-gray-700">Browse</label>
|
|
|
|
<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">
|
|
|
|
<button type="submit" name="action" value="preview" class="px-3 py-1 text-gray-800 ring-1 ring-inset ring-gray-400 hover:bg-gray-50">Preview</button>
|
2023-01-04 18:37:05 +11:00
|
|
|
</div>
|
|
|
|
<div>
|
2024-04-04 19:36:30 +11:00
|
|
|
<button type="submit" name="action" value="import" class="bg-emerald-600 px-3 py-1 text-white shadow-sm hover:bg-emerald-700">Import</button>
|
2023-01-04 18:37:05 +11:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
2023-01-02 18:50:49 +11:00
|
|
|
{% endblock %}
|