{# DrCr: Web-based double-entry bookkeeping framework Copyright (C) 2022–2023 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/>. #} {% extends 'base.html' %} {% block title %}Import statement{% endblock %} {% block content %} <h1 class="h2 my-4">Import statement</h1> <h2 class="h3">OFX 1.x</h2> <form method="POST" enctype="multipart/form-data"> <input type="hidden" name="format" value="ofx1"> <div class="d-flex"> <div class="flex-grow-1 me-2"> <input class="form-control" name="source-account" placeholder="Source account"> </div> <div class="flex-grow-1"> <input class="form-control" type="file" name="file" accept=".ofx"> </div> <div> <button type="submit" name="action" value="preview" class="btn btn-secondary ms-2">Preview</button> </div> <div> <button type="submit" name="action" value="import" class="btn btn-primary ms-2">Import</button> </div> </div> </form> <h2 class="h3 mt-4">OFX 2.x</h2> <form method="POST" enctype="multipart/form-data"> <input type="hidden" name="format" value="ofx2"> <div class="d-flex"> <div class="flex-grow-1 me-2"> <input class="form-control" name="source-account" placeholder="Source account"> </div> <div class="flex-grow-1"> <input class="form-control" type="file" name="file" accept=".ofx"> </div> <div> <button type="submit" name="action" value="preview" class="btn btn-secondary ms-2">Preview</button> </div> <div> <button type="submit" name="action" value="import" class="btn btn-primary ms-2">Import</button> </div> </div> </form> {% endblock %}