Commit graph

808 commits

Author SHA1 Message Date
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
Mathieu Magnin
4e064dbaed Add a method to link multiple avis to a gestionnaire by his email 2017-05-29 11:44:28 +02:00
Mathieu Magnin
efdac753c6 When an Avis is created an email is sent to the 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
d07943a55d Add by_latest scope in Avis 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
b48549d765 WeeklyOverviewWorker: add feature flip on worker
The main objective is to avoid batch mail sent in staging
2017-05-23 17:12:18 +02:00
Simon Lehericey
c4c2dc78a2 WeeklyOverviewWorker: add worker to send the week overview 2017-05-23 17:12:18 +02:00
Simon Lehericey
8dabdcc6c4 GestionnaireMailer: add a last week report 2017-05-23 17:12:18 +02:00
Simon Lehericey
e630548110 Gestionnaire: add last_week_overview method 2017-05-23 17:12:18 +02:00
Simon Lehericey
e7d39ca650 ProcedureOverview: add object to contain overview logic 2017-05-23 17:12:18 +02:00
gregoirenovel
f67aa63766 [Fix #285] Use a has_many through for Gestionnaire#dossiers_follow 2017-05-15 15:51:51 +02:00
gregoirenovel
8a5420301c Add Commentaire#notify to dispatch notifications 2017-05-12 16:31:03 +02:00
gregoirenovel
9c3cde2b2e Move CommentairesController#notify_user_user_with_mail to Commentaire 2017-05-12 16:31:02 +02:00
Mathieu Magnin
58abd9eaf1 Fix #276 Rewrite #dossiers_with_notifications_count_for_procedure and add tests 2017-05-12 15:42:33 +02:00
Mathieu Magnin
8f5fdfa81f Rename dossier_with_notification_for 2017-05-12 15:42:33 +02:00
gregoirenovel
70f637f088 [Fix #198] Add a Commentaire when we send a Notification email to a user 2017-05-12 14:03:48 +02:00
Mathieu Magnin
e5ac555a41 fix #245 it should only count dossiers with notifications on followed dossiers 2017-05-12 10:13:51 +02:00
Mathieu Magnin
cfba1af7a4 Ensure that read notifications are not counted 2017-05-12 10:13:51 +02:00
Mathieu Magnin
459c2afe33 remove empty line 2017-05-11 18:18:28 +02:00
Simon Lehericey
cebb197994 Fix #171 : add localtime to a bunch of date 2017-05-11 15:10:49 +02:00
Simon Lehericey
07dfec9236 Clean: remove dead code 2017-05-11 12:45:01 +02:00
gregoirenovel
38480ef3ed Remove dead code 2017-05-09 16:39:39 +02:00
gregoirenovel
1a5f9fd067 [Fix #105] Show the pieces justificative’ descriptions 2017-05-09 12:47:21 +02:00
gregoirenovel
ecca3b3f37 Add a missing test for _pieces_justificatives.html.haml 2017-05-09 12:47:20 +02:00
gregoirenovel
06714b5fc3 Add a date_attribute argument to StatsController#cumulative_hash 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
9a0df71887 Change the link to a linked dossier depending on the user profile 2017-05-04 17:20:18 +02:00
gregoirenovel
4303dcef2c Organisation -> Organisme 2017-05-04 11:35:22 +02:00
gregoirenovel
d3a84eb20a Démarche -> Procédure 2017-05-04 11:33:26 +02:00
gregoirenovel
fd07a88ed6 Add a missing test to the _render_list_champs template’s test 2017-05-04 11:31:10 +02:00
gregoirenovel
4ce6c92394 Reformat the _render_list_champs template test 2017-05-04 11:31:10 +02:00
gregoirenovel
988947696e [Fix #161] Remove incorrect commas from Dossier#text_summary 2017-05-04 11:25:33 +02:00
gregoirenovel
eff9e556e9 [Fix #162] Deny dossier access for an unauthorized accompagnateur 2017-05-03 10:28:29 +02:00
Mathieu Magnin
6ef6a66c3f Remove @facade_data_view from left_panel view 2017-04-26 16:55:22 +02:00
gregoirenovel
f58a626648 [Fix #99] Improve the info message in _dossier_link.html.haml 2017-04-26 16:47:38 +02:00
gregoirenovel
a6d3ea8536 [Fix #133] Improve the linked dossier informations displayed 2017-04-26 15:59:18 +02:00
gregoirenovel
f5c5ad532d Add Dossier#text_summary 2017-04-26 15:59:17 +02:00
gregoirenovel
7173d359d4 [Fix #132] Show the dossier link in the dossier detail for Users
There’s no reason why they couldn’t easily
navigate to it

Also improve the typography of a placeholder
message
2017-04-26 11:57:36 +02:00
gregoirenovel
8deef8e8e3 [Fix #137] Change the dossier link placeholder
Otherwise we don’t know what to enter (words,
numbers…)
2017-04-26 11:46:39 +02:00
gregoirenovel
b89e59192c Add a missing a test for the dossier link field in the form 2017-04-26 11:35:49 +02:00
gregoirenovel
2b23d0d087 Add a missing feature test for the linked dossier feature 2017-04-26 11:35:48 +02:00
gregoirenovel
b34bf4846c Improve a test title in the _render_list_champs test 2017-04-26 11:35:48 +02:00
Mathieu Magnin
ad4bd87b1f Remove unused pending tests, and enable old tests disabled for sqlite 2017-04-21 17:07:06 +02:00