Commit graph

62 commits

Author SHA1 Message Date
0e374cd5e0 Make all imports relative (#229)
* Make all imports relative

* Change the way the application runs in the Makefile

* Import the default settings relatively

* Fix manage.py imports
2017-06-28 21:36:02 +02:00
0livd
ea8eda35a7 Public project creation and admin permissions (#210)
* Add a @requires_admin decorator

It can be used to protect specific endpoints with ADMIN_PASSWORD
(a password that is stored unencrypted in the settings)
The decorator has no effect if ADMIN_PASSWORD is an empty string (default value)

* Require admin permissions to access create project endpoint

When ADMIN_PASSWORD is not empty, project creation form on the
home page will be replaced by a link to the create project endpoint
so one is able to enter the admin password before filling the form
2017-05-18 11:48:09 +02:00
Jocelyn Delalande
ec75e55416 Remove deprecated wtforms TextField
It is a bare alias of StringField (thus, no alembic migration is required),
deprecated since wtforms v2.0 (2013).

Removes the following warning:

> DeprecationWarning: The TextField alias for StringField has been deprecated and will be removed in WTForms 3.0

Ref f07729dd45
2017-03-29 15:11:40 +02:00
0livd
ceab95b444 Remove unused archive feature
The archive table is not removed from the database model
because it would involve a tricky migration
fixes #170
2017-03-19 20:16:06 +01:00
0livd
59a050e020 Make ihatemoney Py2/3 compatible
Flask-wtf>=0.13 is now required and Form is replaced by FlaskForm
Py2/3 compatibility is assured by six
2017-03-17 19:37:57 +01:00
0livd
e35480d6b7 Add export feature
Bills and transactions can now be exported to json or csv

ref #28
2017-03-09 23:24:18 +01:00
Alexandre Avenel
4c02ad51ac Remove obsolete code 2017-02-16 23:34:07 +01:00
Alexandre Avenel
baba943e62 Fix xss (#173)
Fix #173
Rewrite multi select widget as a template in order to have all values properly escaped.
2017-02-16 23:11:30 +01:00
Jocelyn Delalande
2862130269 Adapt to bootstrap 4 forms
- Adapt to BS4 class names and hierarchy
- Redesign some forms to have the label above the input (mobile-friendly)
- For the remaining inline form (add bill), use the grid, as BS no longer
  provides inline form alignment helpers
2017-02-04 00:41:05 +01:00
Alexandre Avenel
5d009d839b Fix deprecation issues (ExtDeprecationWarning) 2017-01-21 15:03:58 +01:00
fredericsureau
a1f1655f06 Allow negative bill amounts 2016-09-12 14:21:57 +02:00
Jocelyn Delande
ec8fe2326b Added member edit form 2016-06-16 15:52:24 +02:00
Jocelyn Delande
2b071a1a3b Add members weight in models and budget backend refs #94 2016-06-15 10:20:37 +02:00
Alexandre Avenel
4f4439eec9 Fix #118 : Create a new project with the name "dashboard" should raise an exception 2015-04-12 20:41:57 +02:00
A.Avenel
bfea4e436f update for flask 0.9 2013-02-18 19:18:49 +01:00
A.Avenel
8b114c5718 update for "create archive" interface 2012-11-26 21:52:25 +01:00
A.Avenel
bbd4a1a838 Cosmetic changes for "add a bill" panel 2012-11-25 13:53:30 +01:00
Frédéric Sureau
be32a2550e Update to Boostrap v2.
Remove unused libs (QTip, JQueryUI) and add bootstrap-datepicker which is much lighter.
2012-04-05 15:40:09 +02:00
Feth AREZKI
6a50e7318b pep8 <3 and '*' imports removal 2012-03-06 18:42:44 +01:00
3a2958a44e Add a 'sumbit and add a new one' button for new bills. Fix #53 2011-11-28 01:42:02 +01:00
05e7a7934a Fix #59. Edit now works properly 2011-11-28 01:07:06 +01:00
Tinmn
a5cc50b0c2 Addition of an auto hiding user information message in the add user text field (with translation). 2011-11-20 14:37:32 +01:00
A.Avenel
e20c3bdb6b Small fix in CommaDecimalField class 2011-11-03 13:33:11 +01:00
A.Avenel
66bd6268fa Merge remote branches 'upstream/master' and 'origin/master' 2011-11-02 14:36:16 +01:00
A.Avenel
94ab8fbcc3 Part of a fix to #62 : french numbers should use commas rather than dots 2011-11-02 14:35:38 +01:00
Arnaud Bos
f3972db96a Add a way to delete a project. Fix #63 2011-11-02 12:16:01 +01:00
Arnaud Bos
d1b641b45e Correct "payed" --> "paid" typo. Fix #60. See #48 for spelling mistakes and typos 2011-11-01 13:07:32 +01:00
Arnaud Bos
7f805b63ca Improvement of the sidebar look. Related to #34. Fix #52. 2011-11-01 12:57:12 +01:00
Arnaud Bos
1e0898dd87 Last selected payer and translations. Fix #47.
- Last selected payer selected by default when creating a new bill

- Fix some translation typos and modify a few labels
2011-10-20 04:18:12 +02:00
b88b317faa Bills can't be negative. Fix #45 2011-10-18 18:13:54 +02:00
c54fac69c9 Fix translations of forms.
Forms are not context related, thus translations are done only once if not done
in a lazy way. the fix is to use lazy_gettext rather than gettext. Fix #12
2011-10-15 01:58:30 +02:00
f61d1432c7 Translate the application using Flask-babel.
The only translation so far is french, but more can be added. The browser language
is used thanks to the HTTP languages headers.

There are still some problems with the translation of some strings, I don't know
why this is. See #12
2011-10-15 01:19:19 +02:00
45ccc8b509 I HAZ TO RUN TESTS BEFORE COMMITING 2011-10-14 15:48:31 +02:00
b7ba8e43c4 Coerce the payer choice to int, default is unicode. Fix #33 2011-10-13 21:24:23 +02:00
75209aeed0 Add a password recovery feature. Fix #32 2011-10-08 15:52:12 +02:00
19ae3ab3b2 merge with master 2011-10-08 13:45:05 +02:00
48bc551853 Complete the REST API + Tests. Fix #27 2011-10-08 13:27:30 +02:00
Arnaud Bos
402dbce153 Merge mistake, my bad
- Restore ProjectForm.password as a PasswordField and not TextField
2011-09-18 23:50:14 +02:00
Arnaud Bos
681f22f3e4 Merge branch 'master' into auth-forms-usability 2011-09-18 23:39:10 +02:00
20ab40690d Provide a way to edit a project. Fix #17 2011-09-14 22:03:18 +02:00
Arnaud Bos
89e1bbe134 Make the identifier clearer to the end-user.
- Send an email to the user with the summary of the created project
  containing a reminder of the identifier, password and a link.

- Add flash message with the identifier in the /invite page/

- Add a small note containing the identifier in the upper right corner
  of the project main page.
2011-09-14 01:16:25 +02:00
b0d41291af API: Create and Update support 2011-09-13 22:58:53 +02:00
Arnaud Bos
88cd2f8675 Fix #24 on Authentication and New project forms usability.
- Do not display anymore the identifier field in home.

- Let the user enter the id if the slug generated from project name already exists as a project id.

- Moved get_billform_for from 'utils' to 'forms', to avoid issue (was 'from forms import ...' into utils,
  and 'from utils import ...' into forms, which causeed an error).
2011-09-11 05:30:28 +02:00
801802836a Start working on archive management 2011-09-09 19:14:19 +02:00
5550e18cfd Add missing tests. Fixes #14 and #22. 2011-08-22 23:19:00 +02:00
7d60bee0ef Re-design (Fixes #19) 2011-08-21 01:42:10 +02:00
822058b251 Add some more tests about membership. (#14)
Fixes #15 as invalid: deactivated users are not listed on the bill form or on the balance.
2011-08-10 17:49:35 +02:00
683c7ee0b8 Add tests about project creation and member add.
See #14
2011-08-10 17:07:23 +02:00
Frédéric Sureau
922bf769f9 It is now possible to edit existing bills. 2011-08-10 12:59:30 +02:00
Frédéric Sureau
7ee2e74969 Changed 'for' value of checkboxes labels when adding a bill. This is now possible to check the correct box when you click on the label. 2011-08-10 10:28:41 +02:00