Commit Graph

53 Commits

Author SHA1 Message Date
Lephe 725e768520 groups: move default group data to a suitable place 2019-02-16 17:12:41 +01:00
Dark-Storm c17212da13
Merge branch 'master' of git.planet-casio.com:devs/PCv5 2019-02-11 14:36:51 +01:00
Dark-Storm 2d0bce5d75
Correction de #20 2019-02-11 14:36:33 +01:00
Lephe 8211183b5c templates: add a pluralize filter 2019-02-11 13:16:46 +01:00
Dark-Storm 0c4f0f6748
Modifications en vrac
Dans User.valid_name, ajout de caractères non autorisés. Voir #19 pour
faire quelque chose de vraiment propre et safe.
Dans privs, j'ai shooté des règles en double. Répercussion sur les
autres routes.
Ajout du champ username dans le formulaire admin de modif d'un compte.
2019-02-11 00:15:09 +01:00
Dark-Storm 07d2f87169
Changement du orange bg-orange 2019-02-10 22:41:51 +01:00
Dark-Storm 7745dc332f
Réinsertion du footer dans le <container> 2019-02-10 20:58:52 +01:00
Lephe 834403038b privs: add methods to properly delete users and groups 2019-02-10 18:51:53 +01:00
Lephe 7921bb5765 privs: create privileges from groups and users
The groups-privileges page takes care of removing privileges
before deleting groups and users; this is to be moved soon to a
proper group/user deletion API.
2019-02-10 15:46:53 +01:00
Lephe 4f02160ebb navbar: fix bad behaviour when the user is authenticated
The News menu would not open when the user is authenticated,
leaving an empty menu area. Instead, the third button (Forum)
would open the News menu, shifthing every menu down a button.

This was caused by a bad selection query when getting the list
of menus; essentially the selection was equivalent to "#menu div".
Authenticated users have a div in the Account menu with their
name, so this div was mistaken for the second menu.

The problem was fixed by using a different selection equivalent
to "#menu > div" to get the list of menus.
2019-02-10 10:05:24 +01:00
Lephe 255fe82032 reponsive: clean up light.css 2019-02-10 10:03:11 +01:00
lephe 78b4299207 responsive: unify common style and light.css (WIP)
This includes loading the common style sheets at low resolutions
and removing the undescribable redundancy in light.css.

The harder part was getting the navbar right, because it relied
heavily on the distinction between navbar.css and light.css.

This is still a work in progress.
2019-02-09 22:42:16 +01:00
lephe 9fe1104b45 admin: more on user and group generation
Also more titles and details on other pages of
the administration section.
2019-02-09 21:18:12 +01:00
lephe ceedcb60b0 fonts: add the Cantarell font to some pages 2019-02-09 11:51:23 +01:00
lephe 9faabea997 templates: slightly restructure and improve design 2019-02-09 11:32:08 +01:00
lephe 07a685f3c4 header: place elements as discussed with @Dark-Storm 2019-02-08 21:14:25 +01:00
lephe d33b90aff2 privs: fix #14 (rebased from work by @Dark-Storm) 2019-02-08 19:13:26 +01:00
lephe c201b3adbd style: minor improvements 2019-02-07 21:22:49 +01:00
lephe 328cf887b0 style: something that makes sense 2019-02-07 17:55:20 +01:00
Dark-Storm 62729e6058
Ajouts dans le panel admin 2019-02-06 13:12:03 +01:00
Dark-Storm eca5fe488b
Ajouts dans le panel admin 2019-02-06 12:44:44 +01:00
Dark-Storm 936d0e2e8e
Correction du ticket #15 2019-02-06 10:20:47 +01:00
Dark-Storm 912750d97e
Ce truc n'a rien à faire ici 2019-02-05 23:38:50 +01:00
Dark-Storm ec748c41e7
Correction des EOF 2019-02-05 23:25:16 +01:00
Dark-Storm 584b1188d8
Grosses modifs sur le design. Ajout des routes /user 2019-02-05 23:21:46 +01:00
Dark-Storm cd533a4ea3
Ajout d'un décorateur @priv_required 2019-02-05 11:30:39 +01:00
Dark-Storm 2089a09753
Ajout du support des avatars. Y'a un peu de nettoyage sur le chemin de stockage 2019-02-04 23:21:29 +01:00
Dark-Storm 62ccaa23d6
Modifications sur la gestion du compte
- Réorganisation des parties
- Ajout d'un formulaire de suppression

Le formulaire de suppression ne fonctionne pas à cause d'un erreur dans le `session.commit()` (`AssertionError: Failed to add object to the flush context!`). Cela est peut-être du aux relations qui mettent orphelines les contenus dépendants du membre. Cf [delete cascades](https://docs.sqlalchemy.org/en/latest/orm/cascades.html#delete) dans sql alchemy
2019-02-04 18:48:31 +01:00
Dark-Storm 1e28547b9e
Updates sur le formulaire de gestion du compte 2019-02-04 17:20:16 +01:00
lephe 21e0679557 admin: start a panel with a database filler 2019-02-04 16:41:29 +01:00
Dark-Storm 5777ab1e78
Amélioration : redirection intelligente au login/logout 2019-02-03 17:09:15 +01:00
Dark-Storm 46ac8fcd1f
Redefinition des formulaires 2019-02-03 16:52:42 +01:00
Dark-Storm 2f702ba97e
Redefinition des routes 2019-02-03 16:20:05 +01:00
lephe 98def3a302 privs: Document the core privileges 2019-02-03 15:40:37 +01:00
lephe 6affd025b8 privs: start working on groups and privileges 2019-02-03 15:00:59 +01:00
Dark-Storm a51f2265b1
Ajout de la recherche. Modif des redirections de login 2019-02-03 14:57:30 +01:00
lephe 2311c7f3d8 users: review code and expand a little
Nothing ground-breaking here, but lays the ground for
later expansions.
2019-02-03 11:12:01 +01:00
Dark-Storm 2f848501fe
Changement du style des formulaires. Le form de login est ajouté automatiquement au rendu. 2019-02-03 01:11:03 +01:00
lephe 52fba7be4d Merge branch 'tests_ds' of https://git.planet-casio.com/devs/PCv5 into tests_ds 2019-02-02 17:35:41 +01:00
lephe 0299354a02 db: Move to PostgreSQL to support migrations 2019-02-02 17:34:41 +01:00
Dark-Storm 89e64cd48f
Petite modif 2019-02-02 14:04:14 +01:00
Dark-Storm 04c2bd50c4
Avancées sur la page de modification du profil 2018-11-16 23:15:43 +01:00
Dark-Storm 52aee800f9
Ajout de la page de gestion du compte, correction de bugs & autres 2018-11-15 23:13:15 +01:00
Dark-Storm 2ebcf5e1ec
Modifications générales du style, finalisation du formulaire d'inscritpion 2018-11-12 23:27:49 +01:00
Dark-Storm 0c015158ce
WIP on design & models 2018-11-01 21:01:05 +01:00
Dark-Storm 1066c776cd
WIP on models 2018-09-29 23:51:45 +02:00
Dark-Storm f3d355b3da
Création du diagramme de classes. Modifications mineures des templates 2018-09-16 23:14:07 +02:00
suruq 3b1f34e0e1 ajout des alertes 2018-02-26 14:20:28 +01:00
Dark-Storm e057f2952c
Merge branch 'v5_flask' 2018-02-26 10:28:00 +01:00
Dark-Storm 1f003d4e64
Refonte du menu, ajout des alertes 2018-02-26 10:24:16 +01:00