Commit Graph

407 Commits

Author SHA1 Message Date
imperosol
d657e3e258 replace MetaGroups by proper group management 2024-12-21 16:16:33 +01:00
Sli
4ac09ac08b Use tomselect instead of jquery autoselect for counter clicks 2024-12-21 15:56:18 +01:00
imperosol
accf1befce Make products filterable by product type 2024-12-21 02:15:51 +01:00
imperosol
180bae59c8 Add translations 2024-12-21 02:14:38 +01:00
imperosol
9cafc163e8 fix frontend archived products filter 2024-12-21 02:14:38 +01:00
imperosol
8f8eef4107 display products as cards 2024-12-21 02:14:38 +01:00
imperosol
aab093200b slightly improve style 2024-12-21 02:14:38 +01:00
imperosol
1a9556f811 add a button to download products as csv 2024-12-21 02:14:38 +01:00
imperosol
39b36aa509 ajaxify the product admin page 2024-12-21 02:14:38 +01:00
imperosol
a7b1406e06 post-rebase fix 2024-12-19 10:53:11 +01:00
imperosol
871ef60cf6 remove obsolete RunPython operations 2024-12-19 10:39:07 +01:00
imperosol
5da27bb266 rename producttype to product_type 2024-12-18 14:48:59 +01:00
imperosol
8d643fc6b4 Apply review comments 2024-12-17 17:23:13 +01:00
imperosol
47876e3971 Make product types dynamically orderable. 2024-12-17 13:35:29 +01:00
imperosol
c79c251ba7 Add ProductTypeController 2024-12-17 13:35:29 +01:00
imperosol
483670e798 Make ProductType an OrderedModel 2024-12-17 13:35:29 +01:00
imperosol
6c8a6008d5 api route to search products with detailed infos. 2024-12-17 12:38:59 +01:00
Sli
ad44fd52a4 Apply review comments 2024-12-17 10:54:41 +01:00
Sli
03c27b10e5 Fix refill permissions
* Remove ability to refill from counters
* Fix bug where you could refill without any board member on a BAR
* Add a warning message explaining why refilling are disabled
2024-12-17 02:42:07 +01:00
Sli
fc0ef29738 Remove GetCustomer API endpoint 2024-12-17 01:42:10 +01:00
Sli
a0eb53a607 Apply review comments 2024-12-17 01:41:45 +01:00
Sli
66e5ef64fd Don't use API to update amount after a refilling query 2024-12-17 00:47:43 +01:00
Sli
379527cd58 Add a nice animation on successful refilling 2024-12-16 00:58:23 +01:00
Sli
f63fb59cbf Allow filtering of refilling options
* Move settings.SITH_COUNTER_PAYMENT_METHOD to counter.apps.PAYMENT_METHOD
* Move student cards to an accordion on counter click
* Make cash default refilling option
* Disable bank selection option in refilling if CHECK are not allowed
* Disable refilling with CHECK from the frontend
2024-12-16 00:15:21 +01:00
Sli
cde864fdc7 Apply review comments 2024-12-15 22:47:59 +01:00
Sli
e9361697f7 Convert customer refill to a fragment view 2024-12-15 21:33:19 +01:00
Sli
0631c77a1c Apply review comments 2024-12-15 17:02:44 +01:00
Sli
2cc4308a58 Fix tooltip shadow and position and improve unittests 2024-12-15 16:49:24 +01:00
Sli
4975475e85 Add tooltip on current registered card, allow barmen to delete cards and make card deletion a fragment 2024-12-15 16:49:24 +01:00
imperosol
466fe58763 feat: make student card unique per user 2024-12-15 16:49:24 +01:00
imperosol
c51e5eb6cb remove parent_product column in the Product table 2024-12-09 12:59:33 +01:00
Sli
de7aa6f6a6 Create a generic form fragment renderer 2024-12-08 11:45:16 +01:00
Sli
66d2dc74e7 Pre-fetch forms for student card 2024-12-08 00:32:28 +01:00
Sli
d4b9c3afb1 Make StudentCardFormView fragment only 2024-12-07 22:36:15 +01:00
Sli
b81cf49d0a Remove student card creation from CounterClick view and use fragment instead
Intercept htmx on submit requests, this allows auto submit from nfc fields

Fix super call with parameters

Add loading wheel on student card form for counter_click.jinja
2024-12-07 12:57:10 +01:00
thomas girod
1da45fdffc
Merge pull request #934 from ae-utbm/split-counter
Split counter views into multiple files
2024-12-07 11:53:14 +01:00
imperosol
10dde3f002 fix imports 2024-12-07 00:18:17 +01:00
imperosol
c2d6af12ab Merge branches 'split-home' and 'split-studentcard' into split-counter 2024-12-07 00:13:50 +01:00
imperosol
6e48f88c06 extract counter auth views 2024-12-07 00:12:10 +01:00
imperosol
7a91a71565 extract counter auth views 2024-12-07 00:11:18 +01:00
imperosol
c4764110d8 extract counter home views 2024-12-07 00:10:46 +01:00
imperosol
ff68e65250 extract counter home views 2024-12-07 00:07:37 +01:00
imperosol
c9d83e5916 extract student card views 2024-12-07 00:06:33 +01:00
imperosol
5dc99dbfcb extract student card views 2024-12-07 00:05:45 +01:00
imperosol
007e17fd8b Fix the account dump command.
- a missing `fail_silently` flag made the whole command fail if an invalid recipient is used (like closed utbm mail address)
- Not specifying the seller make the account detail pages crash.
2024-12-05 12:50:40 +01:00
imperosol
10f42b1522 fix imports 2024-11-27 19:03:34 +01:00
imperosol
76e9f3b1dc Merge branches 'split-cash', 'split-click', 'split-main', 'split-admin', 'split-mixins', 'split-eticket' and 'split-invoices' into split-clean 2024-11-27 18:49:40 +01:00
imperosol
d0ff9bc16c extract mixins views 2024-11-27 18:48:06 +01:00
imperosol
5e4ebd16f9 extract mixins views 2024-11-27 18:47:55 +01:00
imperosol
d2b19424ff extract eticket views 2024-11-27 18:47:18 +01:00