Commit graph

46 commits

Author SHA1 Message Date
sinavir ec014351f5 feat(inventory): Add edit button 2024-07-04 20:48:10 +02:00
sinavir c01ed7cb47 style(pre-commit): Add hook
Python:
- black
- isort (black profile)
- ruff

Nix:
- statix
- nixfmt-rfc-style
- deadnix
2024-07-04 20:47:46 +02:00
sinavir fe0dc46988 fest(inventory): Improve game image names generation 2024-07-04 20:47:46 +02:00
sinavir e050c45530 feat(FORK): Rework settings to be nicer for djangonix 2024-07-04 20:47:46 +02:00
sinavir 3a730251d4 feat(qrcode): Automatic generation of qrcodes 2024-07-04 20:47:46 +02:00
sinavir 541d840727 feat(FORK): Remove unnecessary fields 2024-07-04 18:15:57 +02:00
sinavir 448bcad382 feat(FORK): jeu -> outil/hackens 2024-07-04 18:15:57 +02:00
sinavir 1f8a03bdab feat(FORK): Disable suggestions 2024-07-04 18:15:57 +02:00
sinavir 89f2808087 fix(pk field): Make manage.py makemigrations happy 2024-07-04 18:15:57 +02:00
sinavir fee31ab07b feat: switch to authens
Be careful there is no User migration
2024-07-04 18:15:57 +02:00
sinavir 253acde240 fix(shell): Add dependency 2024-07-03 01:17:10 +02:00
Tom Hubrecht 5d2342b7c6 feat: Use loadcredential package and rework settings 2024-05-12 13:52:03 +02:00
Tom Hubrecht 0b2d4523fe feat: Add nix tooling 2024-05-12 13:51:21 +02:00
Tom Hubrecht a6d1aa2c74 fix(settings): Rename file so that it can be imported by python 2024-05-10 19:41:02 +02:00
Sylvain Gay 7a871a8405 Add package versions to requirements.txt 2024-05-06 16:50:22 +02:00
Sylvain Gay 27b3aef0e5 Add RGPD mention 2024-05-06 16:37:10 +02:00
Sylvain Gay 00148cd5ca Add loan tables
Add two views for loans :
- inventory:ongoing_loans
- inventory:all_loans (permission inventory.can_see_loan_details required)
2024-05-06 16:24:16 +02:00
Sylvain Gay d8551052fd renamed 'categorie' -> 'étagère' 2024-05-02 14:43:21 +02:00
Sylvain Gay 67c64c0d1c made cleaner migrations for loans 2024-05-02 11:31:34 +02:00
Sylvain Gay 474083dd38 Add minimal loans system
Functional loans system for users.
No manager interface yet.

See:
- app "loans"
- a few new views/templates in app "inventory"
2024-05-02 11:13:34 +02:00
Guillaume Bertholon a552e6d63b Add colors to favicon 2021-02-01 13:48:51 +01:00
Guillaume Bertholon c1b5fc0f3a Patch wrong </div> instead of </nav>
Most browsers did not see the difference but it is invalid HTML.
2021-02-01 12:32:39 +01:00
Guillaume Bertholon 1fea637d7a Use min/max/precisions fields for game duration
There is an data migration for Game items but not for Suggestion items.
It assumes that all duration fields are filled with a single integer or
a range separated by '-' or 'à'.
2021-01-29 12:07:46 +01:00
Guillaume Bertholon d5d239c3df Fix error 500 when nb_player_{min,max} is unset 2021-01-25 14:16:03 +01:00
Guillaume Bertholon a086ee600f Improve pagination style and paginate more lists 2021-01-05 22:10:21 +01:00
Guillaume Bertholon 13766f77a9 Add django-cleanup to remove unused images 2020-12-30 00:57:52 +01:00
Guillaume Bertholon 88a6f06f0d Add the game suggestion system 2020-12-30 00:44:45 +01:00
Guillaume Bertholon 0ad6c7543e Limit upload file sizes 2020-12-30 00:31:58 +01:00
Guillaume Bertholon ee364e2561 Improve form error display & simplify button style 2020-12-29 20:22:36 +01:00
Guillaume Bertholon d4a9faef3e Refactorize to enable code sharing for comments 2020-12-27 18:01:37 +01:00
Guillaume Bertholon 98c517421c Rename 'mainsite' to 'website' 2020-12-27 12:48:08 +01:00
Guillaume Bertholon 3c6734261b Responsive navigation bar for small screens 2020-12-27 00:07:09 +01:00
Guillaume Bertholon c836f642fa Authenticate by email with a custom user model
This avoid the weird double username situation where we want to give the
users the choice of their displayed name but at the same time we need them to
never change their CAS username.

Now CAS matches on email so we do not have problems.
2020-12-24 14:19:35 +01:00
Guillaume Bertholon 0d838cafee Add public name customization and small style adjustments 2020-12-20 01:10:02 +01:00
Guillaume Bertholon f401c66f97 Simplify html structure to remove useless div 2020-12-18 21:20:59 +01:00
Guillaume Bertholon d56d0b44f3 Add markdown pages for customization by respos 2020-12-18 19:30:09 +01:00
Guillaume Bertholon ccd8ee9cc9 Add game comments and rework game models
Models are now more structured for number of players, and durations can
be omitted.
2020-12-13 00:12:06 +01:00
Guillaume Bertholon 497e83eca3 Remove useless files in auth app 2020-11-29 22:55:51 +01:00
Guillaume Bertholon 02aaa79047 Add messages on auth success & failure
Refactor auth code to use class based views
2020-11-29 22:35:42 +01:00
Guillaume Bertholon 1850746975 Add inventory search with haystack
Also give a coherent look to all inventory lists
2020-11-28 00:41:11 +01:00
Guillaume Bertholon 68dea4002c Add category and tag pages 2020-11-22 19:01:21 +01:00
Guillaume Bertholon be99a76829 Simplify header and adapt auth pages style
Having a title in the header is worse than a normal title inside the
page. Restore the border to compensate.
2020-11-22 13:34:01 +01:00
Quentin VERMANDE 8f6ef82f99 CAS authentification 2020-10-22 19:24:16 +02:00
Quentin VERMANDE 9c0b7a66fa Authentification system; outsider login does not crash 2020-10-17 21:31:55 +02:00
Guillaume Bertholon 8843c07a6a Give the main structure and begin inventory app 2020-10-11 22:19:11 +02:00
Guillaume Bertholon 2ec3c5ce05 Init Django project 2020-03-04 17:46:15 +01:00