aboutsummaryrefslogtreecommitdiff
path: root/budget/forms.py
AgeCommit message (Collapse)AuthorFilesLines
2017-06-28Make all imports relative (#229)Alexis Metaireau1-2/+3
* Make all imports relative * Change the way the application runs in the Makefile * Import the default settings relatively * Fix manage.py imports
2017-05-18Public project creation and admin permissions (#210)0livd1-0/+5
* 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-03-29Remove deprecated wtforms TextFieldJocelyn Delalande1-9/+9
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 https://github.com/wtforms/wtforms/commit/f07729dd45c0f5191f131d37adb0456104dc7c44
2017-03-19Remove unused archive feature0livd1-6/+0
The archive table is not removed from the database model because it would involve a tricky migration fixes #170
2017-03-17Make ihatemoney Py2/3 compatible0livd1-11/+13
Flask-wtf>=0.13 is now required and Form is replaced by FlaskForm Py2/3 compatibility is assured by six
2017-03-09Add export feature0livd1-0/+13
Bills and transactions can now be exported to json or csv ref #28
2017-02-16Remove obsolete codeAlexandre Avenel1-22/+0
2017-02-16Fix xss (#173)Alexandre Avenel1-1/+1
Fix #173 Rewrite multi select widget as a template in order to have all values properly escaped.
2017-02-04Adapt to bootstrap 4 formsJocelyn Delalande1-2/+2
- 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-01-21Fix deprecation issues (ExtDeprecationWarning)Alexandre Avenel1-2/+2
2016-09-12Allow negative bill amountsfredericsureau1-3/+1
2016-06-16Added member edit formJocelyn Delande1-4/+10
2016-06-15Add members weight in models and budget backend refs #94Jocelyn Delande1-0/+2
2015-04-12Fix #118 : Create a new project with the name "dashboard" should raise an ↵Alexandre Avenel1-1/+1
exception
2013-02-18update for flask 0.9A.Avenel1-2/+2
2012-11-26update for "create archive" interfaceA.Avenel1-3/+3
2012-11-25Cosmetic changes for "add a bill" panelA.Avenel1-4/+2
2012-04-05Update to Boostrap v2.Frédéric Sureau1-2/+1
Remove unused libs (QTip, JQueryUI) and add bootstrap-datepicker which is much lighter.
2012-03-06pep8 <3 and '*' imports removalFeth AREZKI1-20/+34
2011-11-28Add a 'sumbit and add a new one' button for new bills. Fix #53Alexis Metaireau1-1/+2
2011-11-28Fix #59. Edit now works properlyAlexis Metaireau1-3/+2
2011-11-20Addition of an auto hiding user information message in the add user text ↵Tinmn1-1/+3
field (with translation).
2011-11-03Small fix in CommaDecimalField classA.Avenel1-1/+2
2011-11-02Merge remote branches 'upstream/master' and 'origin/master'A.Avenel1-1/+0
2011-11-02Part of a fix to #62 : french numbers should use commas rather than dotsA.Avenel1-2/+9
2011-11-02Add a way to delete a project. Fix #63Arnaud Bos1-1/+0
2011-11-01Correct "payed" --> "paid" typo. Fix #60. See #48 for spelling mistakes and ↵Arnaud Bos1-1/+1
typos
2011-11-01Improvement of the sidebar look. Related to #34. Fix #52.Arnaud Bos1-1/+1
2011-10-20Last selected payer and translations. Fix #47.Arnaud Bos1-1/+8
- Last selected payer selected by default when creating a new bill - Fix some translation typos and modify a few labels
2011-10-18Bills can't be negative. Fix #45Alexis Metaireau1-0/+4
2011-10-15Fix translations of forms.Alexis Metaireau1-1/+1
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-15Translate the application using Flask-babel.Alexis Metaireau1-36/+31
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-14I HAZ TO RUN TESTS BEFORE COMMITINGAlexis Metaireau1-3/+3
2011-10-13Coerce the payer choice to int, default is unicode. Fix #33Alexis Metaireau1-1/+1
2011-10-08Add a password recovery feature. Fix #32Alexis Metaireau1-0/+10
2011-10-08merge with masterAlexis Metaireau1-4/+5
2011-10-08Complete the REST API + Tests. Fix #27Alexis Metaireau1-2/+3
2011-09-18Merge mistake, my badArnaud Bos1-0/+1
- Restore ProjectForm.password as a PasswordField and not TextField
2011-09-18Merge branch 'master' into auth-forms-usabilityArnaud Bos1-17/+36
2011-09-14Provide a way to edit a project. Fix #17Alexis Metaireau1-9/+13
2011-09-14Make the identifier clearer to the end-user.Arnaud Bos1-1/+1
- 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-13API: Create and Update supportAlexis Metaireau1-4/+20
2011-09-11Fix #24 on Authentication and New project forms usability.Arnaud Bos1-4/+31
- 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-09Start working on archive managementAlexis Metaireau1-0/+5
2011-08-22Add missing tests. Fixes #14 and #22.Alexis Metaireau1-1/+2
2011-08-21Re-design (Fixes #19)Alexis Metaireau1-3/+2
2011-08-10Add some more tests about membership. (#14)Alexis Metaireau1-1/+0
Fixes #15 as invalid: deactivated users are not listed on the bill form or on the balance.
2011-08-10Add tests about project creation and member add.Alexis Metaireau1-0/+4
See #14
2011-08-10It is now possible to edit existing bills.Frédéric Sureau1-7/+18
2011-08-10Changed 'for' value of checkboxes labels when adding a bill. This is now ↵Frédéric Sureau1-1/+1
possible to check the correct box when you click on the label.