Commit graph

51 commits

Author SHA1 Message Date
Leo Mouyna
a1ff32f6ad feat: add the ability to refund.
Create a new form based on the bill one with autocompleted fields.
Add an action button at the end of each row on settle page.
Add API payments entry.
Implement refund tests related.

See issue: #137
2020-03-11 22:47:22 +01:00
Glandos
5ec3dc0acc
Align tables in statistics (#535)
* Align tables in statistics

The table in sidebar is now aligned with the one in content, to avoid
redundant informations.
All tables are back to normal on small devices.

* fix test

* run black on tests
2020-02-20 09:43:50 +01:00
zorun
9378694034
Paginate the list of bills (#480)
We display 100 bills on each page.  We only show previous/next buttons (at
the top of the view) and the list of pages (at the bottom) if there are
more than one pages.

This uses built-in pagination support from Flask-SQLAlchemy:

  https://flask-sqlalchemy.palletsprojects.com/en/2.x/api/#flask_sqlalchemy.BaseQuery.paginate
  https://flask-sqlalchemy.palletsprojects.com/en/2.x/api/#flask_sqlalchemy.Pagination
2020-02-20 09:43:00 +01:00
Edwin Smulders
02242f2e12
Initial montly expenses (#526) 2020-02-09 13:03:52 +01:00
DavidRThrashJr
bf691660ee
Update forms.html (#531)
Made the html formatting more readable
2020-02-09 13:01:47 +01:00
James Leong
1f62f18154 Statistics view #323
Remove header and table column of 'Balance' in statistics view
2020-02-08 23:17:02 +01:00
Nicolas Vanvyve
9aa7e62d0f 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>
2020-01-13 21:17:55 +01:00
Tom Biju
c44784c3ed prevent bill cancellation when cancelling autocomplete (#506) 2019-11-01 01:11:03 +00:00
e30d863c56 Change the color of the add a member button. 2019-10-20 21:23:09 +02:00
f51a02005c Remove jQuery datepicker.
We don't need this anymore because all major browser now have implemented that feature on the browser itself.

Closes #221.
2019-10-19 12:31:17 +02:00
6a4014cf5a Fix the "and add a new one" button. 2019-10-19 12:30:56 +02:00
José Antonio de la Torre
5e37e33716 Added support to split messages #133 2019-10-17 20:17:38 +02:00
3d4d40bd12 Fix a small typo in the french project-reminder email 2019-10-07 18:15:45 +02:00
Leo Mouyna
afc9353180 feat: Optional field 'external link' in bill form.
An optional field has been added to the bill form to add a link to a real bill. A new action button allow user to see this bill. Breaking change with Bill model update for database, a migration is needed.

See issue #429.
2019-10-03 18:15:50 +02:00
Adrien CLERC
54ce277db5 Add more human "for who?" description.
The limit for displaying "Everyone but …"
instead of the ower's list is completely empirical.
2019-09-30 23:57:02 +02:00
Brice Maron
b82d07c3eb Move translations in template and translate link 2019-09-18 21:27:52 +02:00
Leo Mouyna
fabceefece PR remarks 2019-09-16 21:35:28 +02:00
Leo Mouyna
db98010691 fix: display validation message on password reminder
Create a new route with a new generic page that display a title and a message on a <p> tag. This route will be triggered after succesfully submit password reminder form

See issue #455
2019-09-16 21:35:28 +02:00
Brice Maron
9c9832704d bill list: add placeholder and disable add bill when no members 2019-09-06 22:00:39 +02:00
Brice Maron
604f4696d8 fix: add table layout for sharing options
ref #451
2019-09-02 13:37:54 +02:00
6e02c4275a Add some spacing when displaying « list empty ». 2019-08-26 22:47:00 +02:00
Brice Maron
3d7ab656e1 Rework invite people to project 2019-08-26 20:11:42 +00:00
Brice Maron
0edf8634a4 Move export form to links 2019-08-26 19:59:55 +00:00
Brice Maron
09d887cde2 add homepage design 2019-08-18 21:37:20 +00:00
Brice Maron
60b76f32f5 Add project switcher on login page if already logged 2019-08-18 21:37:20 +00:00
Brice Maron
72acde7122 Add footer with links 2019-08-18 21:37:20 +00:00
Brice Maron
fd49599cc7 Arrange navbar items by functions 2019-08-18 21:37:20 +00:00
Brice Maron
89e78bb4d0 Remove Added on column from bill list.
to avoid breaking anyone's workflow, i've instead use a tooltip to display the creation date.

fix #418
2019-07-27 03:44:42 +02:00
Brice Maron
92ce7d4d48 Improve usability specially for small screen
- add buttons class to fix alignments
- add responsive info to big tables
- use visibility instead of display to avoid jumping rows
- reorganize menu in responsive
2019-07-25 13:26:46 +02:00
Brice Maron
773fbec5b2 Cleanup some unused css rules 2019-07-25 13:26:46 +02:00
Brice Maron
69a2d50d1d bump bootstrap to latest stable 2019-07-23 18:16:27 +02:00
Lucas Verney
0428cf06b5 Add bill.creation_date field (#327) 2018-12-25 16:50:14 +01:00
23a4beafae
Fix form error on already existing participant. (#370)
Fixes #350
2018-09-03 20:59:18 +02:00
bfac0c1978
Sort members alphabetically in the new bill form. (#374)
Fixes #333
2018-09-03 20:58:28 +02:00
6ab92ddbac
Add a handler when pages aren't found. (#379)
Fixes #356
2018-09-03 20:54:07 +02:00
Benjamin Bouvier
22f8d552c3 Fix error escaping; (#388) 2018-09-03 20:52:48 +02:00
bb77fdbe3e
Simplify a JS function. (#371) 2018-09-03 20:49:30 +02:00
Jocelyn Delalande
b1a4572e8c Change statistics data structure
Clearer data structure, and simpler template

This commit has a side effect: sidebar now hides disabled members.

IMHO, the disabled members should either be hidden or shown consistently between
sidebar and central table. Previous status was: shown in sidebar (if balance ≠
0) and hidden in central table.
2018-02-07 00:01:13 +01:00
Jocelyn Delalande
389c7b8bcd Remove dead code 2018-02-06 23:59:46 +01:00
Jocelyn Delalande
cf7bd57248 Remove unused CSS odd/even classes
That was forgotten from fe39258630
2018-02-04 13:12:08 +01:00
3b2e11ab63 Include all .j2 files in the packaged version.
I've also renamed the templates to *.j2 in order to make things clearer
to others. Having extensions with the name of the locale doesn't seem to
be a good practice, and would need us to add the locales in the MANIFEST
file each time we add one.

Fix #305
2018-01-05 22:06:11 +01:00
JocelynDelalande
f2a53eb1e3 Position flash messages with CSS rather than JS (#292)
Visual result is exactly the same, but less black magic :-).
2017-12-27 16:10:29 +01:00
JocelynDelalande
0189313c1f Remove un-needed sidebar block (#291)
{% block sidebar %} is used by sidebar_table_layout.html and its children, not by
layout.html nor its direct children.

This is dead code removal.
2017-12-23 01:38:12 +01:00
JocelynDelalande
5160dac4a5 Replace some CSS by some JS (#288) 2017-12-21 20:35:18 +01:00
0livd
c6f72e112b Use hashed passwords for projects (#286)
- Remove all occurences of clear text project passwords.
- Migrate the database to hash the previously stored passwords.
Closes #232
2017-12-21 13:57:01 +01:00
0livd
8a68ac0d5b Use token based auth in invitation e-mails (#280)
* Use token based auth in invitation e-mails

Invitation e-mails no longer contain the clear
text project password

* Skip invite page after project creation

- Replace ``The project identifier is demo, remember it!``
by ``Invite other people to join this project!``
(linking to the invite page)
- Encourage users to share the project password via other
communication means in the reminder email
2017-12-15 17:10:28 +01:00
0livd
b94bad829c Use token based auth to reset passwords (#269)
Send a mail containing a password reset
token link instead of sending a clear text
password.

Ref #232
2017-10-26 19:46:34 +02:00
0livd
7a918c9349 Enhance the dashboard. (#262)
* Update to a more flexible admin authentication
* Admin can now access any project
* Add delete and edit options in the dashboard
* Add a link to the dashboard in the nav bar

This is a rework of the changes proposed by @Olivd, so they can apply on top of
the latest master without trouble. All credit goes to him for the code.
2017-09-04 15:44:20 +02:00
0livd
2ec4fb589f Add a statistics tab (#257) 2017-08-21 23:51:32 +02:00
0livd
a0d4917ac4 Fix misplaced datepicker configuration (#258)
Bootstrap-datepicker is only included in the
list_bills template but its configuration was
living in the layout template, leading to a
javascript error on every page except list_bills.

Fixes #256
2017-08-20 12:22:47 +02:00