1244 Commits

Author SHA1 Message Date
imperosol
05d4a09f8c Add a page to manage the groups that can create permissions 2025-02-15 12:05:54 +01:00
imperosol
2123e83010 fix user_tools.jinja indentation 2025-02-13 13:36:46 +01:00
imperosol
294b59b4d6 use django auth for subscription creation page 2025-02-13 13:36:46 +01:00
imperosol
36076aefcc fix user groups update view
Le formulaire remplaçait la totalité des groupes de l'utilisateur, c'est-à-dire également les groupes pas affichés dans le formulaire. Ça fait que la soumission du formulaire retirait l'utilisateur de tous ses groupes de groupes et des autres groupes non-gérables manuellement (comme Publique et Anciens Cotisants).

Jusqu'ici, les groupes non-manuels étaient gérés bizarrement, en regardant dynamiquement à chaque fois si l'utilisateur est dans le groupe, donc le bug ne se voyait pas. Maintenant que tous les groupes sont gérés presque de la même manière, ça se voit.
2025-02-07 13:28:47 +01:00
Sli
5db9819560 Address review comments 2025-01-21 00:28:35 +01:00
Sli
dd2cd0a18d Add atom/rss news feed 2025-01-19 18:22:02 +01:00
imperosol
5ff7bb3259 Add has_perm api permission 2025-01-17 17:31:08 +01:00
imperosol
0d95c3b9c9 Improve pedagogy permissions 2025-01-17 09:42:16 +01:00
Bartuccio Antoine
61170c0918
Merge pull request #1000 from ae-utbm/imghdr
Remove call to deprecated `imghdr` module
2025-01-14 18:00:19 +01:00
imperosol
9272f53bea fix doc display 2025-01-14 17:14:59 +01:00
imperosol
d0b1a49300 deprecate CanCreateMixin
Les motifs de cette déprécation sont indiqués dans la documentation.
Le mixin a été remplacé par `PermissionRequiredMixin` dans les endroits où ce remplacement était aisé.
2025-01-13 18:20:29 +01:00
imperosol
e500cf92ee Remove SubscriberMixin 2025-01-13 15:57:01 +01:00
imperosol
551091f650 add PermissionOrAuthorRequiredMixin 2025-01-13 15:45:58 +01:00
imperosol
0c01ad1770 Move core auth mixins to their own file 2025-01-13 15:45:55 +01:00
imperosol
cba915c34d Move core views mixins to their own file 2025-01-13 15:45:27 +01:00
imperosol
7ac41ac5cb remove UserIsRootMixin 2025-01-13 15:45:23 +01:00
imperosol
c6bb509fc3 remove call to deprecated imghdr module 2025-01-12 15:00:17 +01:00
thomas girod
4d0d7adce1
Merge pull request #998 from ae-utbm/simpler-com
Rework news creation form
2025-01-11 20:47:21 +01:00
thomas girod
6bcc420af1
Merge pull request #969 from ae-utbm/default-groups
Give default groups to users
2025-01-11 20:44:39 +01:00
imperosol
c3fc8538cc rework news form 2025-01-10 22:08:24 +01:00
imperosol
600657b1a8 get_end_of_semester util function 2025-01-10 22:08:10 +01:00
imperosol
d3f21c8f16 remove news event type 2025-01-10 22:08:10 +01:00
Sli
a4c6439981 Fix selling ordering bug that created "not enough money" errors
* Add tests
* Add tests for cons/dcons
2025-01-10 16:35:42 +01:00
Bartuccio Antoine
6ee2e8c5da
Merge pull request #996 from ae-utbm/elections
Remove shorten dependency and use clip instead
2025-01-10 15:41:31 +01:00
imperosol
a8810816f0 Give the public group to newly created users 2025-01-10 02:23:07 +01:00
imperosol
b7bf3fd375 Give the old_subscribers group when subscribing 2025-01-10 02:12:17 +01:00
imperosol
8b8a295e16 fix ban page access 2025-01-10 01:29:24 +01:00
Bartuccio Antoine
843ce2e3a7
Merge pull request #990 from ae-utbm/jquery
Remove some jquery
2025-01-09 22:32:39 +01:00
Sli
a2dc4f1964 Create a new better script for showing more/less 2025-01-08 14:51:14 +01:00
thomas girod
b9e27ef191
Merge pull request #976 from ae-utbm/tom-select-style
make ajax select appearance consistant with other inputs
2025-01-08 09:40:31 +01:00
Sli
2db3290bed Remove some jquery 2025-01-05 20:17:30 +01:00
Sli
a8702d4f5e Improve welcome page
* Improve code readability of calendar details
* Add link to AE Dev discord in useful links
* Add link to github at the bottom
2025-01-05 16:42:26 +01:00
imperosol
4f35cc00bc Add UserBan management views 2025-01-05 15:49:08 +01:00
imperosol
af47587116 Split groups and ban groups 2025-01-05 15:49:08 +01:00
imperosol
348ab19ac6 small form fixes
le `display:block` avait disparu des helptext, ce qui rendait leur affichage bizarre. Et il manquait quelques détails sur le `ProductForm`
2025-01-05 15:40:41 +01:00
Sli
1887a2790f Move IcsCalendar to it's own file 2025-01-04 23:08:09 +01:00
Sli
5d0fc38107 Make social icons links pretty 2025-01-04 23:08:09 +01:00
Sli
65df55a635 Use signals to update internal ics 2025-01-04 23:08:09 +01:00
Sli
007080ee48 Extract send_file response creation logic to a dedicated function 2025-01-04 23:08:09 +01:00
Sli
0d1629495b Refactor com scss and add basic unified event calendar 2025-01-04 22:51:44 +01:00
imperosol
6eb860579a split migrations 2025-01-04 18:05:02 +01:00
imperosol
1e29ae4171 fixes on club group attribution 2025-01-03 01:18:28 +01:00
imperosol
0ae1e850f4 improve admin 2025-01-03 01:18:28 +01:00
imperosol
6400b2c2c2 replace MetaGroups by proper group management 2025-01-03 01:18:28 +01:00
imperosol
0d3fd954a3 make ajax select appearance consistant with other inputs 2024-12-29 18:16:52 +01:00
imperosol
d200c1e381 fix 500 error when accessing history of non-existing page 2024-12-28 13:25:42 +01:00
thomas girod
2f9e5bfee1
Merge pull request #965 from ae-utbm/form-style
rework form style
2024-12-27 22:24:09 +01:00
Bartuccio Antoine
11702d3d7c
Merge pull request #959 from ae-utbm/counter-click-step-4
Make counter click client side first
2024-12-27 22:06:35 +01:00
thomas girod
10ed2f7404
Merge pull request #963 from ae-utbm/fix-group-edit
Fix error when submitting group form without any group checked
2024-12-26 17:02:02 +01:00
Sli
43768f1691 Refactor counter-click css 2024-12-26 11:52:30 +01:00