Ludovic Stephan
27d26245a5
Bugfix : deep extend in history.js
2018-10-05 22:59:55 +02:00
Ludovic Stephan
7e15fd2d9e
Fix CheckoutReadView test
2018-07-18 16:37:41 +02:00
Ludovic Stephan
a0bd437250
Merge branch 'master' into aureplop/kpsul_js_refactor
2018-07-18 15:02:19 +02:00
Aurélien Delobelle
5ef219c88e
kfet -- Update tests to reflect last changes + fix
...
- Remove duplicate categories returned by the view 'kpsul_articles_data'.
- Fix in account filtering of the view 'history_json'.
- Tests of the view 'kpsul_articles_data' are updated to reflect changes of the
data format.
- The views returning Account and Checkout data as JSON no longer
exists. The related tests are moved.
- The view canceling transfers has been merged with the one canceling
the other operations. The related tests are moved.
2018-01-12 18:48:42 +01:00
Ludovic Stephan
f03ce35126
Merge branch 'master' into aureplop/kpsul_js_refactor
2018-01-10 19:09:41 +01:00
Ludovic Stephan
b62f0293dd
Merge branch 'master' into aureplop/kpsul_js_refactor
2018-01-10 18:55:33 +01:00
Ludovic Stephan
c76b729320
Merge branch 'aureplop/ws_checkout' into 'aureplop/kpsul_js_refactor'
...
Add last statement update support.
See merge request !232
2017-05-19 21:50:29 +02:00
Aurélien Delobelle
914d2ca870
Add last statement update support.
...
K-Psul
- Add handler for checkout data (balance update)
- New statements are sent through ws, and display live on K-Psul.
2017-05-18 13:33:53 +02:00
Ludovic Stephan
ef1f00c15b
Merge branch 'aureplop/fix_ws' into 'aureplop/kpsul_js_refactor'
...
Fix some ws updates on khistory
See merge request !230
2017-05-18 03:39:53 +02:00
Aurélien Delobelle
24b9aaae39
Revert template literals use
...
They were adding spaces at some places.
2017-05-16 18:47:26 +02:00
Aurélien Delobelle
cb0c0be8a2
filters on ws for khistory
...
- fix filters on ws khistory updates
- add filters for transfers against accounts
2017-05-16 18:08:40 +02:00
Aurélien Delobelle
02a015e633
fix data sent to ws by perform_transfers
2017-05-16 17:08:51 +02:00
Aurélien Delobelle
bacc079778
Merge branch 'master' into aureplop/kpsul_js_refactor
2017-05-16 16:48:12 +02:00
Aurélien Delobelle
bc71e1628a
keep eslint quiet
2017-05-16 12:27:39 +02:00
Aurélien Delobelle
311e0c48bd
Merge branch 'Aufinal/refactor_history' into 'aureplop/kpsul_js_refactor'
...
Aufinal/refactor history
See merge request !192
2017-05-16 10:48:07 +02:00
Ludovic Stephan
6a6fc38ead
Add selection reset to cancel_opes
2017-05-15 21:10:39 -03:00
Ludovic Stephan
43e772363e
Extend history options
2017-05-15 19:29:12 -03:00
Ludovic Stephan
93c8844b3f
typo
2017-05-15 19:28:24 -03:00
Ludovic Stephan
c2da055b60
Remove duplicate ws updates
2017-05-15 18:59:18 -03:00
Ludovic Stephan
ac33e6302e
Fix addExistingPurchase + few other bugs
2017-05-15 17:39:33 -03:00
Ludovic Stephan
ad42687293
Fix tranfers page
2017-05-15 15:27:46 -03:00
Ludovic Stephan
f4cb1e2e83
Add opesonly option
2017-05-15 14:17:58 -03:00
Ludovic Stephan
c12c705f8b
Bind ForestDisplay to initial data
2017-05-14 20:18:31 -03:00
Ludovic Stephan
31b742fdb7
Move ws update to respective classes
2017-05-14 17:19:09 -03:00
Ludovic Stephan
8b8a3f8a25
Update button in history
2017-04-24 14:46:16 -03:00
Ludovic Stephan
16dbfed977
Add chidren div in display
2017-04-24 14:12:03 -03:00
Ludovic Stephan
5096e5f129
Adapt ArticleManager
2017-04-24 13:25:18 -03:00
Ludovic Stephan
46ac82fd27
Adapt history to changes
2017-04-24 13:25:07 -03:00
Ludovic Stephan
e283439ebc
Create ForestDisplay class
...
- Store templates, container and data
- All display functions removed from ModelForest
2017-04-24 13:21:56 -03:00
Ludovic Stephan
20d635137c
Merge remote-tracking branch 'origin/aureplop/kpsul_js_refactor' into Aufinal/refactor_history
2017-04-24 11:30:01 -03:00
Ludovic Stephan
b2a5dfd682
Move permission check
2017-04-14 12:51:58 -03:00
Ludovic Stephan
100686457b
Change select_related for future compatibility
2017-04-14 12:47:15 -03:00
Ludovic Stephan
b544d6c5b3
Better alignment
2017-04-14 12:45:38 -03:00
Ludovic Stephan
659b20891e
Add filter to cancel_opes
2017-04-14 12:43:59 -03:00
Ludovic Stephan
034a661444
Tweaks on kfet.js
2017-04-14 12:12:43 -03:00
Ludovic Stephan
de865c61aa
Move container clearing
2017-04-14 11:36:52 -03:00
Aurélien Delobelle
b0d35667b3
Merge branch 'master' into aureplop/kpsul_js_refactor
2017-04-14 15:56:44 +02:00
Ludovic Stephan
8c02e5da0c
Trigger event on history itself
2017-04-10 15:40:29 -03:00
Ludovic Stephan
2eba6892a2
Revert "Change event triggered when canceling opes"
...
This reverts commit ce3d8aa6f7
.
2017-04-10 15:34:57 -03:00
Ludovic Stephan
ce3d8aa6f7
Change event triggered when canceling opes
2017-04-10 15:08:17 -03:00
Ludovic Stephan
84d478271b
Compatibility changes on history.js
2017-04-10 12:34:43 -03:00
Ludovic Stephan
cd0e4c6f3e
Allow (basic) chaining on api_with_auth
2017-04-10 12:33:24 -03:00
Ludovic Stephan
983a55780f
Add cancel_history event
2017-04-10 12:32:35 -03:00
Ludovic Stephan
cfb39b1050
Better default options
2017-04-10 11:30:00 -03:00
Aurélien Delobelle
c75b2946e3
Merge branch 'master' into aureplop/kpsul_js_refactor
2017-04-10 13:08:23 +02:00
Ludovic Stephan
47da80f21c
Add related objects
2017-04-09 23:24:50 -03:00
Ludovic Stephan
5e8752632c
Add index for Day objects
2017-04-09 21:50:47 -03:00
Ludovic Stephan
688d5bba29
Adapt history to new structure
2017-04-09 17:54:37 -03:00
Ludovic Stephan
051231a031
Merge remote-tracking branch 'origin/aureplop/kpsul_js_refactor' into Aufinal/refactor_history
2017-04-09 16:47:05 -03:00
Aurélien Delobelle
7fc07ac603
Merge branch 'Aufinal/clean_modelforest' into 'aureplop/kpsul_js_refactor'
...
Change ModelForest inner structure
- Intermediary model for nodes removed
- More descriptive ModelForest structure in constructor.structure, child_sort not defined in Python function anymore.
- More intuitive access to parent and children of nodes (e.g. article.category, category.articles...)
See merge request !215
2017-04-09 21:28:16 +02:00
Ludovic Stephan
323f019c0d
Check if children is non empty
2017-04-09 13:35:01 -03:00
Ludovic Stephan
9ad208a171
Change child sort + bugfix grom prev commit
2017-04-09 12:30:15 -03:00
Ludovic Stephan
73fb3c419e
Add stop check in traverse
2017-04-09 11:43:51 -03:00
Ludovic Stephan
9ba13a81ee
Adapt add_to_container + small improvements
2017-04-06 00:10:39 -03:00
Ludovic Stephan
23d19545a7
Add back root_sort
2017-04-05 22:23:56 -03:00
Ludovic Stephan
df47bedae1
Change ModelForest inner structure
2017-04-05 22:10:21 -03:00
Aurélien Delobelle
e4dd434608
no longer use model_to_dict
...
- fix cof status on k-psul
2017-04-05 23:33:45 +02:00
Aurélien Delobelle
e4ccd88dfd
Merge branch 'master' into aureplop/kpsul_js_refactor
2017-04-05 23:18:33 +02:00
Ludovic Stephan
ed0a82ed5d
Add no_trigramme option
2017-04-05 16:51:17 -03:00
Aurélien Delobelle
6a8f41849b
Merge branch 'Aufinal/refactor_articles' into 'aureplop/kpsul_js_refactor'
...
Aufinal/refactor articles
See merge request !173
2017-04-05 17:56:07 +02:00
Ludovic Stephan
5c422e892a
Add children fo traverse callback
2017-04-05 12:31:19 -03:00
Ludovic Stephan
f57c292184
Rename history var
2017-04-05 12:13:24 -03:00
Ludovic Stephan
508e7ec23f
Change traverse and find behavior
2017-04-05 12:00:39 -03:00
Ludovic Stephan
88f7ea941d
Move selection logic to another class
2017-04-05 11:26:33 -03:00
Ludovic Stephan
8d13c0a4bb
Add fetch method
2017-04-05 10:59:59 -03:00
Ludovic Stephan
290d4ecb6e
Merge branch 'Aufinal/refactor_articles' into Aufinal/refactor_history
2017-04-05 10:03:30 -03:00
Ludovic Stephan
7ec7ed2696
Rename History class
2017-04-05 09:53:12 -03:00
Ludovic Stephan
e051631a34
Use WebSocket classes
2017-04-05 09:28:32 -03:00
Ludovic Stephan
360c442a4e
Remove useless class
2017-04-05 09:24:27 -03:00
Ludovic Stephan
1761c5f1bd
Change fromAPI logic
2017-04-05 09:13:00 -03:00
Ludovic Stephan
840010b63f
Merge remote-tracking branch 'origin/aureplop/kpsul_js_refactor' into Aufinal/refactor_articles
2017-04-05 09:03:59 -03:00
Ludovic Stephan
a29de134f1
Move focus ; move is_low_stock to method
2017-04-05 08:58:46 -03:00
Aurélien Delobelle
2e0de75471
kpsul - fix account balance ukf
2017-04-05 13:18:01 +02:00
Aurélien Delobelle
6bb9280b0d
Merge branch 'aureplop/clean_js' into 'aureplop/kpsul_js_refactor'
...
Enhance APIModelObject
See merge request !213
2017-04-05 04:30:34 +02:00
Aurélien Delobelle
6be6202b3f
few cleans
2017-04-05 04:26:50 +02:00
Aurélien Delobelle
f1aaad7317
Better jquery ajax calls management
...
It becomes the same as the original jQuery ajax object.
For example, callbacks can be queued.
get_by_apipk and from_API of ModelObject returns the ajax object.
Example (js):
Account.get_by_apipk('AAA')
.done(function (data) {
console.log(data)
})
.fail( () => console.log('cool') )
...
.done( ...
2017-04-05 04:05:31 +02:00
Aurélien Delobelle
efbcde163b
clean some js
...
- clean buttons code on account and checkout
- merge CheckoutRead and kpsul_checkout_data views (the first won)
APIModelObject interface
- add url_create, url_update, url_update_for
- rename url_object_for and url_object to url_read_for and url_read
2017-04-05 03:43:51 +02:00
Ludovic Stephan
3b9affb3f3
Add focus methods
2017-04-04 20:18:53 -03:00
Ludovic Stephan
9c559d9ec3
Add articles reset to kpsul.reset
2017-04-04 19:54:03 -03:00
Ludovic Stephan
021937a38e
Small bugfixes
2017-04-04 19:52:12 -03:00
Ludovic Stephan
cb28b928c4
Remove articleSelect from _env
2017-04-04 19:42:30 -03:00
Ludovic Stephan
e5791efe4d
Remove last traces of old articles
2017-04-04 19:41:15 -03:00
Ludovic Stephan
05156f37c6
Update addExistingPurchase
2017-04-04 19:34:22 -03:00
Ludovic Stephan
514f1da6df
Fix SpecialOpeFormatter
2017-04-03 21:26:33 -03:00
Ludovic Stephan
ec9f47274a
Fix WS update functions
2017-04-03 21:24:07 -03:00
Ludovic Stephan
20b7156e1f
Improve type display
2017-04-03 21:18:07 -03:00
Ludovic Stephan
a173be4f7d
Use api_with_auth in history
2017-04-03 21:14:06 -03:00
Ludovic Stephan
07290f6fec
Merge branch 'Aufinal/refactor_articles' into Aufinal/refactor_history
2017-04-03 21:00:12 -03:00
Ludovic Stephan
3ce4dc5c85
Add article stock management
2017-04-03 20:14:45 -03:00
Ludovic Stephan
b91edc9c7d
Merge remote-tracking branch 'origin/aureplop/kpsul_js_refactor' into Aufinal/refactor_articles
2017-04-03 20:03:58 -03:00
Aurélien Delobelle
9d2298a089
Merge branch 'master' into aureplop/kpsul_js_refactor
...
Not chill.
2017-04-04 00:51:49 +02:00
Aurélien Delobelle
dcda67aaf7
Merge branch 'Aufinal/dialog_utils' into 'aureplop/kpsul_js_refactor'
...
Utilitaires de dialogue
Ajoute deux type de dialogue avec l'utilisateur
- une classe UserDialog pour ouvrir un simple dialogue jconfirm
- une fonction api_with_auth pour gérer toutes les requêtes API pouvant
nécessiter un mot de passe
See merge request !199
2017-04-03 23:25:55 +02:00
Ludovic Stephan
5020037103
api_lock inside kfet.js
2017-04-03 16:08:40 -03:00
Ludovic Stephan
4af2562121
More clarity in argument names
2017-04-01 09:34:02 -03:00
Ludovic Stephan
29836fd15c
Remove deprecated option
2017-04-01 09:24:18 -03:00
Ludovic Stephan
2774dbb5de
Merge branch 'Aufinal/refactor_articles' into Aufinal/refactor_history
2017-03-31 23:51:13 -03:00
Ludovic Stephan
7d93d91af9
Merge remote-tracking branch 'origin/aureplop/kpsul_js_refactor' into Aufinal/refactor_articles
2017-03-31 23:50:33 -03:00
Ludovic Stephan
236dcb4644
Tweaks to UserDialog
2017-03-31 18:10:06 -03:00
Ludovic Stephan
582cdebaa1
Better callback management
2017-03-31 17:49:22 -03:00
Ludovic Stephan
08c752f1b3
Simplify addcost management
2017-03-26 18:10:26 -03:00
Ludovic Stephan
5101400f64
Use callback_as_dict for addcost
2017-03-26 17:57:51 -03:00
Ludovic Stephan
c1f70d9d0a
Add capslock support for inputs
2017-03-26 17:51:55 -03:00
Ludovic Stephan
6d92df4155
Merge branch 'aureplop/kpsul_js_refactor' of git.eleves.ens.fr:cof-geek/gestioCOF into Aufinal/dialog_utils
2017-03-26 15:21:33 -03:00
Aurélien Delobelle
842f2cecc1
fix import, fix ope with addcost enabled, move Config location
2017-03-26 15:12:03 +02:00
Aurélien Delobelle
bc6ecda0c8
fix addcost kspul
2017-03-26 14:59:21 +02:00
Aurélien Delobelle
24f72ae7d4
add missing ;
2017-03-26 14:52:23 +02:00
Aurélien Delobelle
b81b33c056
allow chaining on container in display method
2017-03-26 14:51:16 +02:00
Aurélien Delobelle
485ae86a42
add update method to ModelObject
2017-03-26 14:46:46 +02:00
Ludovic Stephan
3bf7a066a2
Adapt history.html to new functions
2017-03-26 00:33:33 -03:00
Ludovic Stephan
3f07bf56fa
Remove console log
2017-03-26 00:25:51 -03:00
Ludovic Stephan
dbcfc6df46
Remove duplicate kfet.js import
2017-03-26 00:21:17 -03:00
Ludovic Stephan
87943ea7b9
Adapt kpsul to new functions
2017-03-26 00:20:47 -03:00
Ludovic Stephan
6be2f086df
Add generic functions for confirm dialogs
2017-03-26 00:20:28 -03:00
Ludovic Stephan
a1c976185c
Fix transfer sort
2017-03-25 13:44:35 -03:00
Ludovic Stephan
e6735d44ba
Merge branch 'Aufinal/refactor_articles' into Aufinal/refactor_history
2017-03-25 12:42:26 -03:00
Ludovic Stephan
0997d85083
Merge branch 'aureplop/kpsul_js_refactor' of git.eleves.ens.fr:cof-geek/gestioCOF into Aufinal/refactor_history
2017-03-25 12:39:30 -03:00
Ludovic Stephan
5ff8f69bfa
Merge branch 'aureplop/kpsul_js_refactor' of git.eleves.ens.fr:cof-geek/gestioCOF into Aufinal/refactor_articles
2017-03-25 12:35:04 -03:00
Aurélien Delobelle
6afbcb44a1
delete array comprehesion
2017-03-25 10:26:45 +01:00
Aurélien Delobelle
967748ded3
details link to read instead of update
...
- It was the old behaviour.
2017-03-25 09:58:20 +01:00
Aurélien Delobelle
72970c6be7
Fix api call on new transfers
...
- Use django-js-reverse
- Replace old url (deleted) with standard url
2017-03-25 09:44:55 +01:00
Ludovic Stephan
aa6a50a6e7
Simplify JS-Python interface for cancel_ops
2017-03-24 23:57:27 -03:00
Aurélien Delobelle
ac18cbd9d9
fix by on last statement
2017-03-24 22:10:34 +01:00
Aurélien Delobelle
0d02d47d33
move utils functions
2017-03-24 22:05:04 +01:00
Aurélien Delobelle
2e3bd5bd7a
fix search box
2017-03-24 21:41:34 +01:00
Aurélien Delobelle
abce961d91
use django-js-reverse
2017-03-24 21:28:33 +01:00
Aurélien Delobelle
a9d1a6aae9
clean array iteration
2017-03-24 21:24:06 +01:00
Ludovic Stephan
1fcd53d780
Continue renaming node.type to node.modelname
2017-03-20 00:42:12 -03:00
Ludovic Stephan
fe965875f7
Merge branch 'Aufinal/refactor_articles' into Aufinal/refactor_history
2017-03-20 00:33:30 -03:00
Ludovic Stephan
3465dd7045
Change node.type to node.modelname for clarity
2017-03-20 00:26:11 -03:00
Ludovic Stephan
c99e4f26d0
Move history initialisation as Config.reset callback
2017-03-19 04:59:55 +01:00
Ludovic Stephan
66c5a6953c
Improve websocket filter for special history pages
2017-03-19 04:29:54 +01:00
Ludovic Stephan
7a00096170
Add support for account_read history
2017-03-18 22:48:50 -03:00
Ludovic Stephan
951932a6c8
Add support and websocket to transfers.html
2017-03-18 22:35:47 -03:00
Ludovic Stephan
fa64a68378
Add strict mode to history.html script
2017-03-18 22:15:09 -03:00
Ludovic Stephan
fc3e86aea6
Add websocket support to ArticleManager
2017-03-18 22:06:30 -03:00
Ludovic Stephan
b8a307b4a6
Add support for kfet/history page
2017-03-18 14:05:11 -03:00
Ludovic Stephan
1d532616b7
Fix bugs introduced by previous commit
2017-03-18 02:47:30 -03:00
Ludovic Stephan
9e905b0f8b
Remove kpsul dependence from history (oops)
2017-03-18 02:40:34 -03:00
Ludovic Stephan
644b08973a
Add websocket support for history
2017-03-18 02:32:27 -03:00
Ludovic Stephan
34bb680570
Add History equivalent functions
2017-03-18 02:31:52 -03:00
Ludovic Stephan
b655907bd4
Add history to KPsul manager
2017-03-18 02:29:02 -03:00
Ludovic Stephan
14b922634d
Remove deprecated history functions
2017-03-18 02:28:01 -03:00
Ludovic Stephan
5c9c206f68
Adapt css to new canceled syntax
2017-03-18 02:25:44 -03:00
Ludovic Stephan
b0b1fdf936
Add jsdoc comments to history models
2017-03-17 21:00:58 -03:00
Ludovic Stephan
565a054323
Add support for low stock css
2017-03-17 17:30:22 -03:00
Ludovic Stephan
58c57c6f89
Add hierarchy of needed models, w/ formatters
2017-03-17 16:00:49 -03:00
Ludovic Stephan
47fe74fbb0
template specification
2017-03-17 15:59:52 -03:00
Ludovic Stephan
df0ea96b41
Adapt history_json return value to ModelForest standards
2017-03-17 15:59:21 -03:00
Ludovic Stephan
53f89f53e0
Merge branch 'Aufinal/refactor_articles' into Aufinal/refactor_history
2017-03-17 12:34:48 -03:00
Ludovic Stephan
a7de396aa3
Better comparison control
2017-03-17 12:33:43 -03:00
Ludovic Stephan
11603cee69
Merge branch 'Aufinal/refactor_articles' into Aufinal/refactor_history
2017-03-17 00:19:45 -03:00
Ludovic Stephan
9ab2a11432
Finish adapting ArticleManager and Autocomplete
2017-03-16 22:26:59 -03:00
Ludovic Stephan
91f14deda1
last tweaks and doc
2017-03-16 22:26:30 -03:00
Ludovic Stephan
1c5ac561a3
Change article table into divs
2017-03-16 22:26:08 -03:00
Ludovic Stephan
f0a80561ed
Add article display to Config callback
2017-03-16 22:24:57 -03:00
Ludovic Stephan
01295d464d
Adapt ArticleAutocomplete to new format
2017-03-16 01:22:46 -03:00
Ludovic Stephan
2ce96bce1b
Add traverse function to ModelTree
2017-03-16 01:21:50 -03:00
Ludovic Stephan
770c185bd0
Modify sort in ModelTree
2017-03-16 01:21:18 -03:00
Ludovic Stephan
3d76079439
Add correct syntax to category data
2017-03-16 01:20:06 -03:00
Ludovic Stephan
08d1521d81
Adapt ArticleManagerto new API
2017-03-15 22:40:06 -03:00
Ludovic Stephan
fe6823fc7b
Adapt article_data return value to ModelTree standards
2017-03-15 22:39:30 -03:00
Ludovic Stephan
1570d9f494
Polish ModelForest class
2017-03-15 22:10:56 -03:00
Ludovic Stephan
0219d998ac
model tree struct draft
2017-03-15 02:45:13 -03:00
Ludovic Stephan
66beeb5bd0
transfer history added
2017-03-11 01:41:21 -03:00
Ludovic Stephan
ab6b0d52f2
Merge branch 'Aufinal/transferts_historique' into Aufinal/refactor_history
2017-03-11 00:45:54 -03:00
Ludovic Stephan
ac2e773f9e
opelist class
2017-03-10 22:09:23 -03:00
Ludovic Stephan
741bac880b
dummy History test class
2017-03-10 22:09:02 -03:00
Ludovic Stephan
8eae3cee7f
adapt history view
2017-03-10 22:08:44 -03:00
Ludovic Stephan
02485afd9b
doc and compare function
2017-03-10 19:59:15 -03:00
Ludovic Stephan
eac6c42041
day, opegroup and ope model drafts
2017-03-10 19:57:36 -03:00
Ludovic Stephan
e1abff2242
last tweaks
2017-03-09 22:31:59 -03:00
Ludovic Stephan
8aa4fa2dce
modify article API return
2017-03-09 09:21:07 -03:00
Ludovic Stephan
c9b7683238
articlelist and modellist finished
2017-03-09 09:20:53 -03:00
Ludovic Stephan
fe8e5d7e46
move and adapt manager and completion
2017-03-09 09:20:23 -03:00
Ludovic Stephan
a05a075962
apimodellist & articlelist
2017-03-08 10:47:51 -03:00
Ludovic Stephan
d5dfd5fa93
move ModelList def
2017-03-07 18:36:56 -03:00
Ludovic Stephan
c9cce5b125
remove temp file
2017-03-07 17:58:10 -03:00
Ludovic Stephan
2cc0e0cffe
modellist suite et fin
2017-03-07 17:57:40 -03:00
Ludovic Stephan
db9c14f768
articlelist wip
2017-03-06 02:43:48 -03:00
Ludovic Stephan
643503269e
add Article and Category models
2017-03-02 06:50:47 -03:00
Aurélien Delobelle
a9cb50b38d
Better k-fet js and more
...
JavaScript
----------
- Basic classes that can be inherited to define a new class for a
django model in javascript.
- Formatters classes are used to render properties and attributes of
the instances of models classes.
- New classes to handle Account, Checkout, Statement models.
- Refactor K-Psul JS (part n/m).
- Better file organization.
Views
-----
- 'kpsul.checkout_data' is cleaner. Last statement is added to the JSON
response with GET paramater 'last_statement'.
- 'account.read.json' is merged in account.read. JSON response is sent if
GET parametter 'format' is set to 'json'.
- Fix PEP8 of concerned views.
New requirement: django-js-reverse
----------------------------------
Used to resolve the URLs defined in the project in JavaScript.
See https://github.com/ierror/django-js-reverse
2017-02-23 22:07:38 +01:00
Aurélien Delobelle
ee848d210e
refactor account k-psul js - part 2/?
...
- les événements de AccountSearch sont enregistrés depuis ces classes (plus depuis le manager)
- ajout d'une classe AccountSelection s'occupant de la sélection d'un
compte par l'utilisateur
- la méthode update de AccountManager peut maintenant prendre un
trigramme et le set correctement, à défaut elle récupère le trigramme
via AccountSelection
2017-02-15 14:09:20 +01:00
Aurélien Delobelle
fdcf4c3ab0
fix property location
2017-02-13 13:48:57 +01:00
Aurélien Delobelle
d9fc683525
update account_data[] to account_manager.account.
2017-02-13 00:41:41 +01:00
Aurélien Delobelle
890be9b343
refactor account k-psul js - part 1
...
- nouvelle classe - Account: stocke, sert et récupère les données
associées à un compte
- nouvelle classe - AccountManager: interface pour le management de la
partie Account de K-Psul
- nouvelle classe - AccountSearch: module de recherche d'un compte
- nouvelles classes - AccountFormatter, StandardAccountFormatter,
LIQAccountFormatter: styles de formattage des données d'un compte
- désactive l'autocomplétion dans la recherche d'un compte
- fix #89 : "Entrée" dans le champ de trigramme met le compte LIQ
2017-02-13 00:23:32 +01:00
Aurélien Delobelle
5c7a1d6874
Refactor JS Settings K-Psul
...
- change name: Settings -> Config
- provide interface `Config` to get/set parameters
- `Config` uses global object `window.config` to store key/value
- `Config` setters handle types
2017-02-12 13:26:02 +01:00
Aurélien Delobelle
8279bddf4e
clean js k-psul
...
- K-Psul JavaScript uses strict-mode (when JS try to do better things,
we should follow)
2017-02-12 06:10:17 +01:00
Ludovic Stephan
481409253b
simpler string pluralizing
2017-02-11 21:44:32 -02:00
Ludovic Stephan
02735642f1
better pluralize
2017-02-11 21:41:09 -02:00
Ludovic Stephan
fc2de20ab8
use switch + move text
2017-02-11 21:38:07 -02:00
Ludovic Stephan
db94a8904c
remove addition of new opegroups
2017-02-07 18:45:57 -02:00
Ludovic Stephan
b404c989ff
pep8
2017-02-05 03:42:02 -02:00
Ludovic Stephan
1d5e693045
ws for transfers
2017-02-05 03:26:15 -02:00
Ludovic Stephan
1ea334341b
ws update for history and transfer pages
2017-02-05 03:04:41 -02:00
Ludovic Stephan
f8aa67721c
fix socket update
2017-02-05 02:19:20 -02:00
Ludovic Stephan
8895daff6a
Merge branch 'Aufinal/transferts_historique' of git.eleves.ens.fr:cof-geek/gestioCOF into Aufinal/transferts_historique
2017-02-04 23:22:54 -02:00
Ludovic Stephan
f06a732da5
remove unnecessary function
2016-12-11 23:29:05 -02:00
Ludovic Stephan
e52c44580f
pluralize function
2016-12-11 23:23:12 -02:00
Ludovic Stephan
ee54b36696
minor imprevements to history
2016-12-11 23:22:59 -02:00
Ludovic Stephan
a9e1cd01db
add transfersonly option
2016-12-11 23:22:14 -02:00
Ludovic Stephan
3f35dc2c06
unite transfer history
2016-12-11 23:21:36 -02:00
Ludovic Stephan
1dbbad38b9
transfer cancellation html
2016-12-11 21:00:42 -02:00
Ludovic Stephan
66304359c0
unite cancel_ope and cancel_transfer
2016-12-11 16:22:55 -02:00
Ludovic Stephan
49bef61e53
filter transfers frop opes
2016-12-11 14:45:52 -02:00
Ludovic Stephan
2c2da60e54
send data for cancel
2016-12-10 23:52:26 -02:00
Ludovic Stephan
0b61a48c65
fix selection
2016-12-10 23:13:43 -02:00
Ludovic Stephan
85af7fe485
filter on id
2016-12-09 17:29:40 -02:00
Ludovic Stephan
b3b49d5768
Merge branch 'k-fet' of git.eleves.ens.fr:cof-geek/gestioCOF into Aufinal/transferts_historique
2016-12-09 16:48:18 -02:00
Ludovic Stephan
b0a21119fa
Merge branch 'k-fet' of git.eleves.ens.fr:cof-geek/gestioCOF into Aufinal/transferts_historique
2016-12-09 01:25:40 -02:00
Ludovic Stephan
36edc334d4
add transfer information
2016-12-09 00:26:25 -02:00
Ludovic Stephan
ac0356386a
add css for transfers
2016-12-09 00:26:07 -02:00
Ludovic Stephan
027bc2e94b
Merge branch 'k-fet' of git.eleves.ens.fr:cof-geek/gestioCOF into Aufinal/transferts_historique
2016-12-04 00:22:46 -02:00
Ludovic Stephan
f747c0c389
print transfers (BROKEN)
2016-12-02 00:17:03 -02:00
Ludovic Stephan
5a354c61a0
fetch transfers as well
2016-12-02 00:16:40 -02:00
Ludovic Stephan
971848cb1b
database lookups
2016-12-01 01:29:28 -02:00