diff options
| author | Nicolas Vanvyve <NVanvyve@users.noreply.github.com> | 2020-01-13 21:17:55 +0100 |
|---|---|---|
| committer | Glandos <bugs-github@antipoul.fr> | 2020-01-13 21:17:55 +0100 |
| commit | 9aa7e62d0f77f27590dac1cae5603e8f7efb891f (patch) | |
| tree | fdccec64b145d2600a18f300bfec5891acd5fc73 /ihatemoney/templates/forms.html | |
| parent | 73a4d139fffe3fdbabd0a47839eacc9964810066 (diff) | |
| download | ihatemoney-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/forms.html')
| -rw-r--r-- | ihatemoney/templates/forms.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ihatemoney/templates/forms.html b/ihatemoney/templates/forms.html index 61127ce..95606e5 100644 --- a/ihatemoney/templates/forms.html +++ b/ihatemoney/templates/forms.html @@ -85,6 +85,15 @@ {% endmacro %} +{% macro upload_json(form) %} + {% include "display_errors.html" %} + {{ form.hidden_tag() }} + {{ form.file }} + <div class="actions"> + <button class="btn btn-primary">{{ _("Import") }}</button> + </div> +{% endmacro %} + {% macro add_bill(form, edit=False, title=True) %} <fieldset> |
