Commit Graph

50 Commits

Author SHA1 Message Date
agerbaud
db79a48a9d Merge two panels in maraudes:index template 2017-07-20 14:21:18 +02:00
artus40
be087464fc Remaster (#38)
* setup new 'statistiques' module

* added 'graphos' package and created first test graph

* put graphos in requirements, deleted local folder

* added "load_csv" management command !

* added update of premiere_rencontre field in 'load_csv' management command

* added missing urls.py file

* added 'merge' action and view

* added 'info_completed' ratio

* linked sujets:merge views inside suivi:details

* added link to maraudes:details in notes table headers, if any

* Major reorganisation, moved 'suivi' and 'sujets' to 'notes', cleanup in 'maraudes', dropping 'website' mixins (mostly useless)

* small cleanup

* worked on Maraude and Sujet lists

* corrected missing line in notes.__init__

* restored 'details' view for maraudes and sujets insie 'notes' module

* worked on 'notes': added navigation between maraude's compte-rendu, right content in details, header to list tables

* changed queryset for CompteRenduDetailsView to all notes of same date, minor layout changes

* added right content to 'details-sujet', created 'statistiques' view and update templates

* restored 'statistiques' ajax view in 'details-sujet', fixed 'merge_two' util function

* added auto-creation of FicheStatistique (plus some tests), pagination for notes in 'details-sujet'

* added error-prone cases in paginator

* fixed non-working modals, added titles

* added UpdateStatistiques capacity in CompteRenduCreate view

* fixed missing AjaxTemplateMixin for CreateSujetView, worked on compte-rendu creation scripts

* fixed MaraudeManager.all_of() for common Maraudeurs, added color hints in planning

* re-instated statistiques module link and first test page

* added FinalizeView to send a mail before finalizing compte-rendu

* Added PieChart view for FicheStatistique fields

* small style updates, added 'age' and 'genre' fields from sujets in statistiques.PieChartView

* worked on statistiques, fixed small issues in 'notes' list views

* small theme change

* removed some dead code

* fixed notes.tests, fixed statistiques.info_completed display, added filter in SujetLisView

* added some tests

* added customised admin templates

* added authenticate in CustomAuthenticatationBackend, more verbose login thanks to messages

* added django-nose for test coverage

* Corrected raising exception on first migration

On first migration, qs.exists() would previously be called and raising an Exception, sot he migrations would fail.

* Better try block

* cleaned up custom settings.py, added some overrides of django base_settings

* corrected bad dictionnary key
2017-06-11 17:16:17 +02:00
artus40
0be59a61a7 Navbar (#31)
* started workin on 'navbar' module

* changed bootstrap theme to bootswatch/Simplex

* big work on navbar logic

* starting creating menus using navbar

* converted app views to new Wepage decorator, updated navbar

* reimplemented DernieresMaraudes as a dropdown instead of ContextMixin

* reorganised static files, minor code cleanups

* turned Link.href into lazy-evaluated property

* collapsed 'navbar' module into 'website', dynamic building of ApplicationMenu subclasses

* minor cleanup

* blah blah blah

* added way to add admin/non-admin links

* minor style change : red border for active page instead of all dropdowns

* deleted file

* prepare adding removing menu templates files, being replaced by code

* essayé de généraliser le code pour les modaux bootstrap, non testé git status

* more preparation and thinking on navbar app_menus logic...

* added LinkManager and DropdownManager, getting closer...

* small fix in DropdownManager.__get__

* boosted up work: keep it simple so it can be merged fast, major layout changes

* added month filter on maraudes:liste

* added 'as_icon' filter to display boolean/null values as bootstrap icons

* remove inactive user from planning selection

* removed all unused 'menu' templates

* set up django_select2 to use static files

* small fix after review
2017-02-11 18:20:13 +01:00
artus40
288ca2cc20 corrected issue with Select2 2016-12-29 16:51:29 +01:00
artus40
5884125015 ajout de la liste des derniers sujets rencontrés dans 'suivi' 2016-12-29 14:53:58 +01:00
artus40
6c995a34db resolved #21, started new design (removing some panels :) 2016-12-29 13:52:29 +01:00
artus40
ffe73585c6 Updated after global configuration on new git installation 2016-12-15 18:28:29 +01:00
Arthur Gerbaud
f4bb37ae63 cleaned Maraudeur model, created MaraudeurManager, created some tests 2016-12-02 12:43:07 +01:00
Arthur Gerbaud
387fe36382 corrected issue #14 2016-11-24 11:30:35 +01:00
Arthur Gerbaud
891ef9ef63 modified website.decorators, webpage->app_config, created new configs 2016-11-19 21:46:40 +01:00
Arthur Gerbaud
f4f366f514 prepared to work on menu logic 2016-11-19 14:25:09 +01:00
Arthur Gerbaud
23d9da9a79 missing template @076780a 2016-11-19 13:36:04 +01:00
Arthur Gerbaud
076780a90f added 'table' template tags in maraudes:index 2016-11-19 13:34:54 +01:00
Arthur Gerbaud
7f08b1db23 added 'tables' template tags to display objects lists in 'maraudes' and 'sujets' 2016-11-19 13:28:36 +01:00
Arthur Gerbaud
96f013041b working on #10 2016-11-15 16:47:44 +01:00
Arthur Gerbaud
b085d6295c clean up some messy code 2016-11-15 15:51:23 +01:00
Arthur Gerbaud
c5d171c2da removed confusing and useless code 2016-11-15 15:45:22 +01:00
Arthur Gerbaud
a95a2e83c5 corrected order of observations returned by CompteRendu.get_observations() 2016-11-15 15:43:19 +01:00
Arthur Gerbaud
23ca194bf7 Issue #12 2016-11-15 15:28:05 +01:00
Arthur Gerbaud
14ecf5ce0f added default on 'premiere_rencontre' field for Sujet, work on #5 2016-10-06 13:29:29 +02:00
Arthur Gerbaud
96f3a9dd80 some template cleaning 2016-09-08 18:41:50 +02:00
Arthur Gerbaud
d37455bfeb better use of CompteRendu proxy model 2016-09-08 18:10:47 +02:00
Arthur Gerbaud
cfe0dc3f2f added missing_cr context variable on maraudes:index, small fixes 2016-09-08 17:38:00 +02:00
Arthur Gerbaud
6e9a76696e rerouted AuthBackend, changed bootstrap colors 2016-08-17 20:20:06 +02:00
Arthur Gerbaud
d0a74735f1 added initial when no last rencontre with compte-rendu forms 2016-08-17 17:42:52 +02:00
Arthur Gerbaud
9812aa858c improved NoteFormMixin, added Appel model and form in 'suivi' 2016-08-17 17:39:24 +02:00
Arthur Gerbaud
1681833e8b minor clean up 2016-08-17 16:11:27 +02:00
Arthur Gerbaud
57c120afbb added set of Note forms, fixed new note on 'suivi:details' view 2016-08-17 15:42:13 +02:00
Arthur Gerbaud
5dc5dae210 fix WebsiteAjaxTemplateMixin, added ajax 'sujets:update' form 2016-08-14 12:50:49 +02:00
Arthur Gerbaud
9e86e3eda5 added icons on menu_administration 2016-08-14 01:17:56 +02:00
Arthur Gerbaud
219b68302e added menu icons 2016-08-14 01:11:11 +02:00
Arthur Gerbaud
0c932a600f merged login view with website Index, wasted time on small details 2016-08-13 23:17:43 +02:00
Arthur Gerbaud
128314bcb3 cleaning up, improved scripts and menus 2016-08-13 20:59:48 +02:00
Arthur Gerbaud
12f23b8acb removed old files 2016-08-13 16:44:16 +02:00
Arthur Gerbaud
46b807ec1e website restyling, minor fixes 2016-08-13 16:40:43 +02:00
Arthur Gerbaud
8bac5d8bd4 templates refont, implemented 'get_panel' method 2016-08-11 02:08:37 +02:00
Arthur Gerbaud
fa95890bee missing file 2016-08-10 20:04:43 +02:00
Arthur Gerbaud
d31f1e05e3 add signalement model and form on maraudes:index 2016-08-10 13:52:32 +02:00
Arthur Gerbaud
824d000cb1 add 'note_author' method on Note 2016-08-07 19:05:36 +02:00
Arthur Gerbaud
d718984a59 add decorators 'webpage' decorator for 'website', rewrite views 2016-08-07 16:22:19 +02:00
Arthur Gerbaud
a5af70becb add PageInfo options on WebsiteTemplateMixin, rewrite website views 2016-08-07 13:22:41 +02:00
Arthur Gerbaud
473acf8f2b add use of NoteManager custom method, template fix 2016-08-07 12:02:51 +02:00
Arthur Gerbaud
2a8082e5b1 added defaults on Note fields, clean up 2016-08-06 20:58:06 +02:00
Arthur Gerbaud
73696a5b7b repair 'Observation' forms 2016-08-06 20:21:59 +02:00
Arthur Gerbaud
aefeb2e349 better integration of notes, templates clean up 2016-08-06 19:28:15 +02:00
Arthur Gerbaud
e2456a4ae0 added templatetag 'notes.inline_table' 2016-08-06 14:58:38 +02:00
artus
ebb1c849e6 repairs 'notes' in master before branching 2016-08-06 13:42:29 +02:00
artus
f3dd74d367 fixed WebsiteProtectedWithAjaxMixin template response 2016-08-06 10:42:19 +02:00
artus
d155d87781 deleted cache and migrations directories 2016-08-05 12:26:05 +02:00
artus
5f4faf46ec Adding the core applications code to the repository 2016-08-05 10:41:43 +02:00