c042c8e8a3
fix: bad value for blank vote and better flow for invalid form
...
* Add an error message when looking at a public election without being logged in
* Add correct value for blank vote on single vote field
* Redirect to view with an error message if an invalid form has been submitted
2026-02-03 10:05:36 +01:00
imperosol
04702335e2
rename User.is_subscriber_viewable => User.is_viewable
2025-11-11 14:31:20 +01:00
imperosol
0d6856e925
refactor election detail view
2025-11-07 19:18:24 +01:00
imperosol
e754b48371
feat: add x-limited-choices directive
2025-11-07 19:18:22 +01:00
a2dc4f1964
Create a new better script for showing more/less
2025-01-08 14:51:14 +01:00
672bc91e36
Quick fix for election display
2025-01-08 03:17:18 +01:00
8a8851847c
Passage de webpack à vite.dev
2024-11-19 21:22:14 +01:00
271d57051e
Upgrade to fontawesome 6
...
* Adapt fontawesome usage when needed
* Fix uv guide not importing css
* Remove utf8 usage for fontawesome
2024-10-03 00:06:03 +02:00
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
b25805e0a1
introduce djhtml as jinja+scss formater
2024-07-25 16:46:45 +02:00
Julien Constant
faccc1367f
Fix le panier de l'Eboutic pour Safari ( #518 )
...
Co-authored-by: Théo DURR <git@theodurr.fr >
Co-authored-by: thomas girod <56346771+imperosol@users.noreply.github.com >
2022-12-14 08:38:41 +01:00
Julien Constant
85788977fe
Moved file to correct place & improved CSS a bit
2022-06-15 15:32:16 +02:00
Julien Constant
41369f738e
Improved Elections CSS for the table
2022-06-15 01:42:17 +02:00
4217b92941
Avoid moving role order in election by reloading page
2017-12-05 14:22:59 +01:00
2f3b481037
Improve deletion and add ordering on roles
2017-12-02 19:05:48 +01:00
625b5132c4
Election list deletion and ux improvements
2017-12-01 19:45:28 +01:00
41a9bf9953
Elections : Fix tests, cleaned urls and add nice description
2017-06-07 18:49:24 +02:00
c4389bb9cd
Add a way for admin to delete elections and add archive system
2017-06-07 18:42:16 +02:00
0076c9cdb4
Macro for pagination
2017-06-07 18:39:42 +02:00
e3711533da
Less precise election results
2017-01-10 19:06:34 +01:00
2f2d5292de
Some permissions fixs and security for atomic vote
2016-12-26 23:30:13 +01:00
Skia
bf4d0693c6
Reformat templates to fit with the rest of the Sith
2016-12-26 00:10:41 +01:00
61e67898e1
Coherent create/edit/delete templates for elections
2016-12-25 23:49:02 +01:00
cd97901db1
Some date fix
2016-12-25 23:37:42 +01:00
5449a4fca2
Little permission fix
2016-12-25 22:04:31 +01:00
4d067165aa
Election's trad
2016-12-25 20:09:18 +01:00
c07f49305b
Full CRUD for elections
2016-12-25 19:54:10 +01:00
4f62863599
Pimp role and list forms and add edit for election
2016-12-25 19:54:10 +01:00
d7387005c0
Better role creation
2016-12-25 19:54:10 +01:00
02913d91e6
Refactors Candidate form
2016-12-25 19:54:10 +01:00
9d9c86ea0f
Refactored has_voted
2016-12-25 19:54:10 +01:00
37decde04d
Adds an S in electionS
2016-12-25 19:54:10 +01:00
Jean-Baptiste Lenglet
da77c18871
Really display results when election is finished.
2016-12-25 19:54:10 +01:00
Jean-Baptiste Lenglet
64f5fef89f
Display results only when the polls close
2016-12-25 19:54:10 +01:00
Jean-Baptiste Lenglet
1c761f9db2
Added results when the user is not voting
2016-12-25 19:54:10 +01:00
Jean-Baptiste Lenglet
baf39d8f3b
Hide input if user can not vote
2016-12-25 19:54:10 +01:00
Jean-Baptiste Lenglet
1a34dcdafe
Changed plain form action to reversed URL.
2016-12-25 19:54:10 +01:00
Jean-Baptiste Lenglet
fa9e4e5dc6
Tweaked Election view and added request.user as user
2016-12-25 19:54:10 +01:00
Jean-Baptiste Lenglet
a9d154506f
Added js validation for max_choice
2016-12-25 19:54:10 +01:00
Jean-Baptiste Lenglet
89362bae79
Hide inputs when user already voted.
2016-12-25 19:54:10 +01:00
Jean-Baptiste Lenglet
dfcddbd1fa
Hide election detail parts when user cannot candidate or edit.
2016-12-25 19:54:10 +01:00
Jean-Baptiste Lenglet
a3a5a0446d
Finished main view. Some tuning are to be done.
2016-12-25 19:54:10 +01:00
97f835eb4e
Convert indent with space, fix populate and add an s
2016-12-25 19:54:10 +01:00
a27fd267d7
Remove useless methods on elections
2016-12-25 19:54:10 +01:00
1f60fbd484
Uses election_detail for vote form
2016-12-25 19:54:10 +01:00
67630fc9f8
Vote template
2016-12-25 19:53:04 +01:00
Jean-Baptiste Lenglet
9dbff0cd50
Finished election details.
2016-12-25 19:53:04 +01:00
Jean-Baptiste Lenglet
94d15684b7
Added profile pictures for users
2016-12-25 19:53:04 +01:00