Commit graph

663 commits

Author SHA1 Message Date
gregoirenovel
33944e343a Add Backoffice::DossiersController#process_dossier and use it 2017-06-13 15:05:09 +02:00
gregoirenovel
d248afc376 Enable the Layout/ExtraSpacing cop 2017-06-13 10:35:35 +02:00
gregoirenovel
82eb66cfe8 Enable the Layout/EmptyLinesAroundMethodBody cop 2017-06-13 10:35:33 +02:00
gregoirenovel
24e7537c49 Enable the Layout/EmptyLinesAroundClassBody cop 2017-06-13 10:35:32 +02:00
gregoirenovel
f496f1adab Enable the Layout/EmptyLines cop 2017-06-13 10:35:20 +02:00
gregoirenovel
ff1f679c7b Enable the Layout/EmptyLineBetweenDefs cop 2017-06-13 10:35:20 +02:00
gregoirenovel
f2cf32a15c Enable the Layout/CommentIndentation cop 2017-06-13 10:35:19 +02:00
gregoirenovel
9439e1abb1 Enable the Layout/AlignParameters cop 2017-06-13 10:35:16 +02:00
gregoirenovel
96532cea6d [Fix #388] In avis email, redirect a signed out gest. to the dossier 2017-06-12 11:03:02 +02:00
gregoirenovel
107c322062 [Fix #323] Refactor received dossier notification: use a callback 2017-06-08 15:06:01 +02:00
gregoirenovel
ec69086ebc Don’t use alias_method_chain, use a proxy method 2017-06-08 12:22:48 +02:00
gregoirenovel
d557906fe9 Remove unused variable in MailTemplatesController#edit 2017-06-08 12:22:47 +02:00
gregoirenovel
07ad7b4c84 mails -> mail_templates 2017-06-08 12:22:46 +02:00
gregoirenovel
07ea0ceea1 Make MailTemplateConcern.slug a constant 2017-06-08 12:22:44 +02:00
gregoirenovel
18d6204980 find_the_right_email -> find_mail_template_by_slug 2017-06-08 12:22:42 +02:00
gregoirenovel
41b3fa62ed Refactor MailTemplatesController#mails 2017-06-08 12:22:42 +02:00
gregoirenovel
ab1c19c09b Rename some Dossier scopes 2017-06-01 10:58:08 +02:00
Mathieu Magnin
8e9144f565 [Fix #378] Remove redirect based on referrer 2017-06-01 10:36:36 +02:00
Mathieu Magnin
d2d2c78461 Remove unused code 2017-06-01 10:36:36 +02:00
Mathieu Magnin
705a3f3e1b Fix cache bug on stats page 2017-06-01 09:44:22 +02:00
Simon Lehericey
9e6098dc09 Add the weekly avis answer percentage to Stats 2017-05-31 14:24:33 +02:00
Mathieu Magnin
068b635b7c Add the weekly avis answer time average to Stats 2017-05-31 14:24:32 +02:00
Simon Lehericey
b5f1b898c7 Add the weekly avis usage to Stats 2017-05-31 13:31:19 +02:00
gregoirenovel
d54fe12a9c Remove inconsistent and useless blank lines in controllers 2017-05-30 15:54:49 +02:00
Mathieu Magnin
69a5857322 [Fix #264] Add pie chart to count administrations 2017-05-30 15:36:21 +02:00
gregoirenovel
9585142468 Group the cumulative and monthly charts 2017-05-30 12:05:28 +02:00
gregoirenovel
3215411547 Delete the 30 days flows graphs 2017-05-30 12:05:28 +02:00
gregoirenovel
58aa94359c On the Stats page, move the total numbers at the top of the page 2017-05-30 12:05:27 +02:00
gregoirenovel
711f21c458 [Fix #264] Add the mean filling time graph to Stats 2017-05-30 12:05:27 +02:00
gregoirenovel
faa547e891 [Fix #264] Add the mean instruction time graph to Stats 2017-05-30 12:05:27 +02:00
gregoirenovel
ed7ba60cf0 [Fix #264] Add the last 4 months evolution graphs to Stats 2017-05-30 12:05:26 +02:00
gregoirenovel
f82533be19 Use the new_application layout for the Stats page 2017-05-29 15:46:54 +02:00
Simon Lehericey
64f7cab3cf Avis: add claimant gestionnaire to track who asks for an avis 2017-05-29 11:44:28 +02:00
Simon Lehericey
cdcd5b951f AvisController: add a notification when a avis has been received 2017-05-29 11:44:28 +02:00
Simon Lehericey
34a7905828 DossierController: giving an advice does not remove the notifications 2017-05-29 11:44:28 +02:00
Simon Lehericey
3483ec075b DossierController: extract dossier_id from params[:id] 2017-05-29 11:44:28 +02:00
Mathieu Magnin
612a8c4b91 Confirm with flash after avis is sent 2017-05-29 11:44:28 +02:00
Simon Lehericey
f9aee06040 AvisController: add redirection logic for various login cases 2017-05-29 11:44:28 +02:00
Simon Lehericey
842999d229 Avis: add create_gestionnaire logic 2017-05-29 11:44:28 +02:00
Simon Lehericey
aaf155df72 Avis: add sign_up logic for new tps gestionnaire 2017-05-29 11:44:28 +02:00
Simon Lehericey
f6359cb7aa gestionnaire invited on dossier for avis, can update Avis 2017-05-29 11:44:28 +02:00
Mathieu Magnin
f24e4a77d3 Gestionnaire can view dossier if he is invited on dossier 2017-05-29 11:44:28 +02:00
Mathieu Magnin
7c662aa7b2 Gestionnaire invited on dossier for avis, cannot see private form / change dossier state / follow dossier / see invited people / see others avis 2017-05-29 11:44:28 +02:00
Mathieu Magnin
43f481b7ff Gestionnaire can list dossiers where he is invited for avis 2017-05-29 11:44:28 +02:00
Mathieu Magnin
e831442cbd Associate gestionnaire to avis if gestionnaire is known 2017-05-29 11:44:28 +02:00
Mathieu Magnin
c3bf15d49f Create and list Avis on Dossier detail page 2017-05-29 11:44:28 +02:00
Simon Lehericey
f1b923e30f ApiControllers: remove useless meta data 2017-05-23 10:46:37 +02:00
Simon Lehericey
a213032f28 Refactor: use select block to select stuff 2017-05-17 11:18:01 +02:00
gregoirenovel
9c3cde2b2e Move CommentairesController#notify_user_user_with_mail to Commentaire 2017-05-12 16:31:02 +02:00
gregoirenovel
02a8cf3fe1 Use the initialisation date for the cumulative dossiers
We want to show when dossiers were published, not
created
2017-05-05 12:03:54 +02:00
gregoirenovel
06714b5fc3 Add a date_attribute argument to StatsController#cumulative_hash 2017-05-05 12:03:53 +02:00
gregoirenovel
dbf891b333 Use the initialisation date for the dossiers 30 days flow
We want to show when dossiers were published, not
created
2017-05-05 12:03:53 +02:00
gregoirenovel
c7999b9691 Add a date_attribute argument to StatsController#thirty_days_flow 2017-05-05 12:03:53 +02:00
gregoirenovel
3bd5e32dff Add a system to restrain the email templates tags to specific templates 2017-05-04 16:17:39 +02:00
gregoirenovel
eff9e556e9 [Fix #162] Deny dossier access for an unauthorized accompagnateur 2017-05-03 10:28:29 +02:00
gregoirenovel
f58a626648 [Fix #99] Improve the info message in _dossier_link.html.haml 2017-04-26 16:47:38 +02:00
gregoirenovel
14b7badfed Eager-load the dossier’s procedure when possible 2017-04-26 09:53:10 +02:00
Mathieu Magnin
822c7cdd96 Add human version translation for state 2017-04-21 14:51:35 +02:00
Mathieu Magnin
d87989622c Remove useless code 2017-04-21 14:51:34 +02:00
Mathieu Magnin
762a11fc6f Define .termine as a scope and remove archived=false filter 2017-04-21 14:36:50 +02:00
Mathieu Magnin
320ff4839f Define .en_instruction as a scope and remove archived=false filter 2017-04-21 14:36:50 +02:00
Mathieu Magnin
7a9fd77af0 Remove archived=false filter from en_construction scope (Fix : archived dossier is not shown to user) 2017-04-21 14:36:50 +02:00
Mathieu Magnin
688a3d8f31 Define .brouillon as a scope and remove archived=false filter 2017-04-21 14:36:50 +02:00
Mathieu Magnin
21a2a5402b Remove unused service 2017-04-21 14:36:50 +02:00
Mathieu Magnin
1a628dc42c Remove DossierListFacade dependency 2017-04-21 14:36:50 +02:00
gregoirenovel
e504531ca0 Use the new_application layout for the landing page 2017-04-20 12:18:16 +02:00
Simon Lehericey
2b969ef575 MandatoryAttachment: group missing errors logic together
and show errors only if not draft
2017-04-19 15:45:45 +02:00
gregoirenovel
b00eb914da Use case statements instead of if statements where appropriated 2017-04-19 11:57:49 +02:00
gregoirenovel
9071656b55 Use #each instead of #map where appropriated 2017-04-19 11:57:49 +02:00
Simon Lehericey
4cd21580fb DescriptionController: move html_safe to the view
html_safe could not work upon redirection as stated here :
https://groups.google.com/forum/#!topic/rubyonrails-core/z52zgDgUmbs
2017-04-19 10:52:04 +02:00
Simon Lehericey
eb3bb63a8f DescriptionController: remove useless @champs 2017-04-19 10:52:04 +02:00
Simon Lehericey
866a54085c DescriptionController: cosmetic 2017-04-19 10:52:04 +02:00
Simon Lehericey
157d1818b2 DescriptionController: move instance var to local var 2017-04-19 10:52:04 +02:00
Simon Lehericey
367b7c6ae1 DescriptionController: use common system to redirect with errors 2017-04-18 17:48:03 +02:00
Simon Lehericey
e49ea2d0e0 PiecesJustificative: add field to set it mandatory
small css to align the fields
2017-04-18 17:48:03 +02:00
gregoirenovel
f4ff778a5c Add a missing newline before the end of the controller
Same spacing rules at the top and at the bottom
of the file
2017-04-11 16:58:27 +02:00
gregoirenovel
913735554c Improve StatsController#thirty_days_flow and #clean_hash 2017-04-11 16:58:27 +02:00
gregoirenovel
11015787bf Add new total numbers to the Stats page 2017-04-11 16:51:38 +02:00
gregoirenovel
52ea4a1b8d Add new charts and a segmented control to the Stats page 2017-04-11 16:51:38 +02:00
gregoirenovel
e370c4e393 Exclude draft Dossiers and unpublished Procedures from Stats 2017-04-11 15:29:19 +02:00
gregoirenovel
2074ac93ba Add StatsController#thirty_days_flow_hash 2017-04-11 15:29:19 +02:00
gregoirenovel
e192038045 Rename the variables in StatsController#index 2017-04-11 15:29:19 +02:00
gregoirenovel
c4c6095abd Only show the last 30 days of data in Stats 2017-04-11 15:29:19 +02:00
gregoirenovel
de01914fa7 Fix the where clause in Stats
Now properly show the last 90 days of data instead
of strict quarters.

With the previous code, on the
1st of january, april, july and october, only one
day of data would be shown.
2017-04-11 15:29:18 +02:00
gregoirenovel
f84cd7f11b Make Stats a public page 2017-04-11 15:29:18 +02:00
Simon Lehericey
4a16fb2ce2 DescriptionController: refacto 2017-04-11 14:45:30 +02:00
Simon Lehericey
ed36897337 DossiersController: add get procedure libelle 2017-04-11 13:54:33 +02:00
Simon Lehericey
ccf956ec01 DescriptionController: refactor redirection for draft 2017-04-11 12:11:10 +02:00
Simon Lehericey
d14a75c24a DescriptionController: refactor check_mandatory_fields 2017-04-11 12:11:10 +02:00
Simon Lehericey
191b29aff5 DescriptionController: simplify update logic 2017-04-11 12:11:10 +02:00
Simon Lehericey
3a9065e4c1 DescriptionController: remove useless code 2017-04-11 12:11:10 +02:00
Simon Lehericey
c4e128a506 DescriptionController: rename variable 2017-04-11 12:11:09 +02:00
Simon Lehericey
4df03fc28e ChampsService: add tests and refactor 2017-04-11 12:11:09 +02:00
Mathieu Magnin
bf0d466f4b Move export_full_generation method from Dossier to Procedure 2017-04-05 12:26:38 +02:00
Mathieu Magnin
b18c09e9fd Download dossiers button exports all dossiers except draft 2017-04-05 11:04:53 +02:00
gregoirenovel
d5e7bbd80d Files should end with a new line 2017-04-04 16:59:38 +02:00
gregoirenovel
6cb78acd85 Make the birthday field a date field
And remove the date picker (you can now use the
native one)
2017-04-03 16:03:38 +02:00
Mathieu Magnin
6a8ca67a83 Merge branch 'develop' into auto_archive_on_date 2017-03-27 15:35:52 +02:00
gregoirenovel
458f557c93 Add a sort order to the demo procedures list 2017-03-22 17:52:56 +01:00
Mathieu Magnin
4d323497e7 Remove puts 2017-03-15 15:16:00 +01:00