Commit Graph

101 Commits

Author SHA1 Message Date
klmp200 655d72a2b1 Completely integrate wepack in django
* Migrate alpine
* Migrate jquery and jquery-ui
* Migrate shorten
* Add babel for javascript
* Introduce staticfiles django app
* Only bundle -index.js files in static/webpack
* Unify scss and webpack generated files
* Convert scss calls to static
* Add --clear-generated option to collectstatic
* Fix docs warnings
2024-10-02 16:11:02 +02:00
thomas girod 1800785b80 generalize usage of the paginate_jinja macro 2024-09-27 11:21:33 +02:00
thomas girod ff088009d9 move static files in their respective application 2024-08-26 22:34:31 +02:00
thomas girod 29bb0f6712 promote AlpineJS to global dependency 2024-08-05 17:08:30 +02:00
thomas girod b25805e0a1 introduce djhtml as jinja+scss formater 2024-07-25 16:46:45 +02:00
klmp200 15f51fb03f Create an NFC button for browser supporting NFC API 2024-07-25 07:18:39 +02:00
thomas girod 82d3791859 refactor counter 2024-07-21 10:51:08 +02:00
Julien Constant d16bf12611 Links update & translations typos fixes (#671)
* Remove BDF link (as BDF is now part of AE)

* Remove unused pages

* Fix typos

* Fix typo again
2023-10-10 15:29:02 +02:00
Julien Constant 38295e591d Fix immutable default variable in get_start_of_semester (#656)
Le serveur ne percevait pas le changement de semestre, parce
que la valeur par défaut passée à la fonction `get_start_of_semester()` était une fonction appelée une seule fois, lors du lancement du serveur. Bref, c'était ça : https://beta.ruff.rs/docs/rules/function-call-in-default-argument/

---------

Co-authored-by: imperosol <thgirod@hotmail.com>
2023-09-07 23:11:58 +02:00
Julien Constant 28f397574f Amélioration des pages utilisateurs pour les petits écrans (#578, #520)
- Refonte de l'organisation des pages utilisateurs (principalement du front)
  - Page des parrains/fillots
  - Page d'édition du profil
  - Page du profil
  - Page des outils
  - Page des préférences
  - Page des stats utilisateurs

- Refonte du CSS / organisation de la navbar principale (en haut de l'écran)
- Refonte du CSS de la navbar bleu clair (le menu)
- Refonte du CSS du SAS :
  - Page de photo
  - Page d'albums
2023-03-30 14:38:40 +02:00
thomas girod 6c1fa6de0b remove-useless-queries-counter-stats (#519) 2023-03-24 15:32:05 +01:00
thomas girod 705b9b1e6a Passage de vue à Alpine pour les comptoirs (#561)
Vue, c'est cool, mais avec Django c'est un peu chiant à utiliser. Alpine a l'avantage d'être plus léger et d'avoir une syntaxe qui ne ressemble pas à celle de Jinja (ce qui évite d'avoir à mettre des {% raw %} partout).
2023-01-10 22:26:46 +01:00
Thomas Girod 3c1724fa81 Add warning message when user has no birthdate 2022-11-15 21:07:50 +01:00
lsacienne c6caf5dbce Add of restriction for refilling 2022-04-20 14:01:33 +02:00
lsacienne 757ff7ead7 Add of date in the counter/refilling_list view 2022-04-19 12:02:22 +02:00
Skia bfa3b45547 counter_click.jinja: fix error display with Vue 2021-10-11 22:09:45 +02:00
Skia 1b688a8aa5 Add a first version of a mobile friendly UI
Although not perfect and with many flaws, this should still allow far
easier navigation on mobile devices.
2021-10-01 18:44:14 +02:00
Skia 406380e4f1 counter: make click page dynamic to avoid repetitive loading
This makes the whole click page load only once for a normal click
workflow. The current basket is now rendered client side with Vue.JS,
and the backend view is able to answer with JSON if asked to.

This should lighten the workflow a lot on the client side, especially
with poor connectivity, and the server should also feel lighter during
big events, due to far less complex Jinja pages to render.
2021-09-26 13:58:39 +02:00
Skia 05256bb99a counter: templates: click: JS clean up 2021-09-26 13:58:39 +02:00
Skia 64d0cc2fa8 counter: don't display info boxes and navigation menu
This will lighten the pages and make the functionality directly
accessible without ever scrolling the header garbage that is never
needed on those pages.
2021-09-26 13:58:39 +02:00
Robin Trioux 59511d255f eticketListView: product id instead of eticket id 2019-11-03 20:58:20 +01:00
Cyl 8232ff59a0 [Counter] - add the product ID for every Eticket 2019-09-16 23:41:06 +02:00
klmp200 405b938e08 counter: speed counter click interface and auto scroll 2019-09-10 14:22:13 +02:00
klmp200 616b7ccfc8 Nice user interface and permission rework 2019-05-20 17:52:39 +02:00
klmp200 4669e5a4e9 Gui for studentcards in counters 2019-05-20 17:52:36 +02:00
krophil 9489b52304 Oups, I did it again... 2017-09-02 15:31:20 +02:00
krophil e71db5a997 Add translations 2017-09-02 15:22:50 +02:00
krophil 39ce14804a Add refillings list 2017-09-02 15:16:29 +02:00
klmp200 0076c9cdb4 Macro for pagination 2017-06-07 18:39:42 +02:00
Skia 20deda8a8e Merge branch 'master' into stock 2017-04-24 18:07:25 +02:00
krophil 553b33c313 Proposal for summary sending confirmation 2017-04-19 11:01:56 +02:00
klmp200 edc438bc0e More readability for sum 2017-04-05 15:08:11 +02:00
klmp200 53a2a160be Add CB refills sum 2017-04-05 13:48:43 +02:00
klmp200 e4deacbe56 Pagination for cash sumary 2017-03-13 16:32:59 +01:00
Skia 27e69fd3b8 Bad hack to fix Firefox broken autofocus 2017-01-18 19:09:58 +01:00
guillaume-renaud 21c05cc779 Addition of the ShoppingList view to know the item to buy 2017-01-05 11:14:41 +01:00
guillaume-renaud c6310c5315 correct missing endif 2017-01-05 11:07:05 +01:00
guillaume-renaud 6c54b246ca Stock admin gestion, items list views, create and edit items 2017-01-05 11:04:12 +01:00
guillaume-renaud 5cb75ec3eb general modifications 2017-01-05 11:02:21 +01:00
guillaume-renaud 887893fb2d Creation of the Stock list, edit, create views and creation StockItem create view 2017-01-05 11:00:08 +01:00
guillaume-renaud 29fb0af893 Addition of the stock parameter to the counter admin list 2017-01-05 11:00:08 +01:00
Skia c48449cd50 Add barman stats 2017-01-04 17:38:09 +01:00
guillaume-renaud 57b663c4c5 counter inactive state with settings variable, traduction file problem fixed 2016-11-08 18:48:27 +01:00
guillaume-renaud be7e0401dd Fix the number of minutes for a counter to be inactive to 10 2016-11-08 18:42:31 +01:00
klmp200 1c97c8a74f Swag dropdown on user account + autofocus for refillings on counters 2016-10-16 02:47:21 +02:00
Skia 5931351c0a Another tiny template improvement 2016-10-12 12:32:04 +02:00
Skia 0d8bebcd80 Tiny template update 2016-10-10 18:43:40 +02:00
Skia 13265e6a0d Allow more control on the dates for cash summaries sums 2016-10-10 18:29:13 +02:00
klmp200 d285fbe04a Add account number and suscription on counter 2016-10-08 23:07:10 +02:00
Skia 64b4484620 Some templating 2016-10-04 00:41:08 +02:00