aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/templates/upload_json.html
diff options
context:
space:
mode:
authorNicolas Vanvyve <NVanvyve@users.noreply.github.com>2020-01-13 21:17:55 +0100
committerGlandos <bugs-github@antipoul.fr>2020-01-13 21:17:55 +0100
commit9aa7e62d0f77f27590dac1cae5603e8f7efb891f (patch)
treefdccec64b145d2600a18f300bfec5891acd5fc73 /ihatemoney/templates/upload_json.html
parent73a4d139fffe3fdbabd0a47839eacc9964810066 (diff)
downloadihatemoney-mirror-9aa7e62d0f77f27590dac1cae5603e8f7efb891f.zip
ihatemoney-mirror-9aa7e62d0f77f27590dac1cae5603e8f7efb891f.tar.gz
ihatemoney-mirror-9aa7e62d0f77f27590dac1cae5603e8f7efb891f.tar.bz2
Import previously exported json data (#518)
Fix #417 * New tab upload * Extract data from JSON * Add users * Black format * Try to add bill * Import bills * Add french translation msg * Black reformat missing * Deactivated users are supported * Test import * Remove temp file in upload_json() * Incomplete tests * tests import * Update ihatemoney/translations/fr/LC_MESSAGES/messages.po Co-Authored-By: Rémy HUBSCHER <hubscher.remy@gmail.com> * Remove useless variable and check json format * Use String.IO and test for wrong json * Remove coma Co-authored-by: Rémy HUBSCHER <hubscher.remy@gmail.com>
Diffstat (limited to 'ihatemoney/templates/upload_json.html')
-rw-r--r--ihatemoney/templates/upload_json.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/ihatemoney/templates/upload_json.html b/ihatemoney/templates/upload_json.html
new file mode 100644
index 0000000..64aca0f
--- /dev/null
+++ b/ihatemoney/templates/upload_json.html
@@ -0,0 +1,10 @@
+{% extends "layout.html" %}
+
+{% block content %}
+ <h2>{{ _("Import JSON") }}</h2>
+ <p>
+ <form class="form-horizontal" method="post" enctype="multipart/form-data">
+ {{ forms.upload_json(form) }}
+ </form>
+ </p>
+{% endblock %}