Commit graph

59 commits

Author SHA1 Message Date
Charlotte Van Petegem
426357f00d
Move filtering by association to get_orders
Fixes duplication and restores old `/orders` behaviour
2022-05-30 20:24:07 +02:00
Charlotte Van Petegem
28a6dc5422
Merge pull request #193 from ZeusWPI/feature/association-management
Integrate associations
2022-05-30 18:29:05 +02:00
44feb1a4ff
Change forgotten order_id to order_slug in a few places 2022-05-25 10:29:46 +02:00
Charlotte Van Petegem
a077a8038a
Only list orders to users of its association 2022-05-20 23:15:45 +02:00
Charlotte Van Petegem
1c0d78f2ee
Make sure only users with at least one association can create an order 2022-05-20 22:46:56 +02:00
mcbloch
7702fdecbe change url usage to unique 7char slugs 2022-05-20 19:04:22 +02:00
7b16a3b6c5
Don't crash when item.price is None 2022-05-11 02:35:45 +02:00
03f1e56161
Fix bug with form inside form 2022-05-02 22:25:06 +02:00
85d8892176
Hide buttons for which user has no permission 2022-05-02 21:56:38 +02:00
09e2d704cd
Add price editor 2022-04-22 01:19:07 +02:00
fc630e9061
Support marking items as paid 2022-04-20 18:09:45 +02:00
Jan-Pieter Baert
5e29f2a5f7
Fix formatting 2022-04-19 22:04:49 +02:00
1ff8ceb521
Improve design
Remove main CSS from shop view page. Make it theme independent and
maximize contrast.

Improve spacing in "add item" list.

Refactor old term "showcase" to "shop_view" in code.
2021-07-24 17:51:25 +02:00
8ccc508747
Tweak layout 2020-08-26 19:30:01 +02:00
65ed818875
Start redesign of order page 2020-08-26 19:29:59 +02:00
redfast00
b1f3d786e8
Remove print statements polluting our logs 2020-08-21 21:02:21 +02:00
65fa6441b1
Remove incorrect comment
The comment says that mypy gives a "Missing return statement" but it
links to an issue on the mypy bug tracker about the same error message
reported after exhaustive enum matching. This is a completely different
situation, here the "Missing return statement" is warranted: this part
of the code is reachable so an explicit `return None` is wanted for this
function that returns an Optional.
2020-07-18 23:50:49 +02:00
4f7ffc0e3d
Reformat with black 2020-07-17 11:40:15 +02:00
172d5d1e08
Fix dish change detection once and for all 2020-02-29 15:40:14 +01:00
bba3a0cd3a
Fix bug in ordering 2020-02-27 11:21:16 +01:00
729dab2ba4
Fix anonymous ordering and dish change 2020-02-26 21:25:51 +01:00
ccb034ef7f
Fix bug on anonymous order view
Change to temporary message
2020-02-26 18:10:09 +01:00
2892a7dc25
Add no_text options 2020-02-25 19:09:28 +01:00
646858aac3
Populate HLDS data version field 2020-02-25 17:51:53 +01:00
b8ac141310
Fix mistake in dish change detection
When the form is submitted, the URL has no dish parameter any more.
To fix this, add a hidden form field to say which dish the form was for.
2020-02-24 14:20:36 +01:00
13560b04cd
Take into account price of options 2020-02-24 00:42:24 +01:00
1025ade758
Fix validation and saving for multi_choice, add price range 2020-02-24 00:31:14 +01:00
513e495665
Add own logic and form elements
Bypass WTForms and use manually written <select> and all that.
2020-02-23 23:31:11 +01:00
f900c85931
Add form for choices, submitting fails 2020-02-21 18:38:30 +01:00
04fb06d187
Use order.location_name instead of order.location.name 2020-01-27 22:59:07 +01:00
0e779e59b9
Use order.is_closed() 2020-01-27 03:52:29 +01:00
aa63023383
Improve order items page and other stuff 2020-01-27 03:46:05 +01:00
6f24b52855
Make creating order and adding items work 2020-01-27 02:33:55 +01:00
d564808417
Correct misspelled "courrier" to "courier" 2020-01-26 02:28:20 +01:00
0af72376a1
Increase line length limit to 100
Up from 80.
2019-09-12 20:53:26 +02:00
Jan-Pieter Baert
c4f9222558
Fix pylint for views and templates 2019-09-12 20:50:17 +02:00
redfast00
5e2d5e659c
Convert forms to POST requests, fix euro filter, fix user close debt 2019-09-11 16:44:36 +02:00
Jan-Pieter Baert
c64e4bd998
Run black and isort on all code 2019-09-08 02:04:34 +02:00
Jan-Pieter Baert
b7fa92a22a
Add typing to view files 2019-09-08 01:34:16 +02:00
mcbloch
d591f846d8
add and run black formatter 2019-09-05 03:33:29 +02:00
mcbloch
0538c9f984
remove author variables 2019-08-29 15:58:15 +02:00
mcbloch
d0863325a5
Restructuring the codebase!
But for real, it's a real shitstorm in there.
- Added context by making the init go through a function
  and not implicitly happen via imports
- Fixup all context and contextless function mixups
- splitup the models in sensible different files
- give the dump of view functions in views/__init__.py their own file
- add all routes via blueprints, not half of them
- move the slack notifications function and class to its own file,
    no idea what it was doing in a views file in the first place.
2019-08-28 03:46:04 +02:00
Maxime
5020556dcb
Merge pull request #121 from ZeusWPI/feature/order_items
add order items screen
2019-05-31 17:12:43 +00:00
Tom Naessens
2d4ad2a605 Adds a button on the location/ and locations/ page to start a new order at the given location #120 2019-05-30 14:10:47 +12:00
mcbloch
2d9f7e7fc5 add extra order items screen, clickable div with shadow 2019-05-29 20:12:19 +02:00
mcbloch
83e4a10bbc fix big ass close order issue #107 2019-04-05 18:24:24 +02:00
Feliciaan De Palmenaer
6abd9614ab Fix deprecations 2017-01-06 12:05:31 +01:00
Rien Maertens
1ea873fe17 Added <!channel|@channel> 2016-02-09 01:07:34 +01:00
Feliciaan De Palmenaer
b51fb2d6de Haldis hot fix, anonymous users cannot delete stuff 2015-10-30 20:30:18 +01:00
Feliciaan De Palmenaer
dd4754ec0d Updated forms and orders 2015-06-09 13:46:37 +02:00