Commit graph

1177 commits

Author SHA1 Message Date
Mathieu Magnin
5c46db3b3d Improve messagerie readability 2017-12-15 11:01:48 +01:00
Frederic Merizen
94f1a1fa0c [Fix #866] Allow use of non-breaking spaces in balise in attestation template 2017-12-14 17:22:21 +00:00
Mathieu Magnin
c3e7e39947 [Fix #1016] display notifications for avis 2017-12-14 13:57:20 +01:00
Mathieu Magnin
8e67e5c057 [Fix #1016] display notifications for new messages 2017-12-14 13:57:19 +01:00
Mathieu Magnin
c6be745067 [Fix #1016] display notifications for champs publics 2017-12-14 13:57:15 +01:00
Mathieu Magnin
d901852e09 Fix sentry issue #2139 when published_at is nil 2017-12-14 10:45:17 +01:00
Frederic Merizen
21bb04d74e [fix #1066] Fix links to related dossier for experts
- link to full dossier if gestionnaire is affected on procedure
- link to avis if avis expert requested on related dossier
2017-12-13 10:28:16 +00:00
gregoirenovel
04d17a2ed0 [Fix #1078] Fix a crasher in HtmlToStringHelper 2017-12-12 10:06:50 +01:00
Simon Lehericey
271abc72fb [fix #1065] Change logout logo for plain text 2017-12-11 17:00:45 +01:00
Simon Lehericey
77907b66d7 [fix #1053] An Administrateur can choose the final dossier states
! before going to production :
- stopping the current AutoReceiveJob
- relaunch the jobs with previous id and state = 'received'
2017-12-11 16:34:00 +01:00
Simon Lehericey
83d9831183 [fix #1046] Update api entreprise host 2017-12-11 16:02:57 +01:00
Simon Lehericey
b02282c1d0 [fix #1000] export name and first name in api 2017-12-11 15:29:56 +01:00
Simon Lehericey
a05217b364 [fix #1014] strip html tags in annotations_privees 2017-12-11 12:40:12 +01:00
gregoirenovel
e26911a47a An Etablissement’s libelle is its Libellé NAF, not its name 2017-12-07 16:26:59 +01:00
gregoirenovel
0d22ecfe5a Delete the CGU-related files and mentions 2017-12-07 16:15:44 +01:00
gregoirenovel
d75a3872d1 [Fix #963] Add a "personnes impliquées" tab 2017-12-05 17:04:17 +01:00
gregoirenovel
dd47f96424 Improve the names of some parameters in DossiersController 2017-12-01 14:28:07 +01:00
gregoirenovel
a04af24cbf Add DossiersController#terminer 2017-12-01 14:28:07 +01:00
gregoirenovel
a5b4b20a7d Add DossiersController#repasser_en_construction 2017-12-01 14:28:07 +01:00
gregoirenovel
eb55dfc0c8 Add and use DossiersController#passer_en_instruction 2017-12-01 14:28:07 +01:00
Simon Lehericey
e2bbd2a37a [fix #992] export: dossiers are order by initiated_at 2017-12-01 13:45:53 +01:00
Simon Lehericey
fe9ac727de [fix #872] apientrepise: use v2 endpoints 2017-12-01 11:26:40 +01:00
Simon Lehericey
bbcf350d7d [fix #997] New Style: allow new line in messagerie 2017-11-30 16:07:48 +01:00
Simon Lehericey
d90e22e332 Tests: add (or group) Timecop.return to resume time in specs 2017-11-29 16:07:39 +01:00
Simon Lehericey
68682fe78d [fix #873] add motivation in case of refused or without continuation dossier 2017-11-29 14:06:32 +01:00
gregoirenovel
731e1b6787 [Fix #164] Make the organisme field mandatory 2017-11-29 10:36:22 +01:00
Mathieu Magnin
2db1d93a84 Remove this test because no Notification should be created when gestionnaire is sending a file on messagerie 2017-11-28 15:07:11 +01:00
Mathieu Magnin
fa95c312ff Old UI : Plug messagerie on new commentaire file system 2017-11-28 15:07:10 +01:00
Mathieu Magnin
eae16f7746 New UI : Regular messagerie and avis messagerie should use same partials 2017-11-28 15:07:10 +01:00
Mathieu Magnin
4d12aa222c Validate body is present 2017-11-28 15:07:10 +01:00
Mathieu Magnin
76cb54988d Validate virus free with Clamav 2017-11-28 15:07:10 +01:00
Mathieu Magnin
ae5e6653cb [Fix #888] New UI : Add upload on commentaire form 2017-11-28 15:07:09 +01:00
Simon Lehericey
28a047a64b [Fix #508]Api GeoJson: export dossier.json_latlngs to geojson 2017-11-28 14:41:08 +01:00
Simon Lehericey
f34546cf2a [Fix #508]Api GeoJson: export cadastre 2017-11-28 14:37:12 +01:00
Simon Lehericey
9f2338a70a [Fix #508]Api GeoJson: export quartier_prioritaire 2017-11-28 14:37:12 +01:00
Mathieu Magnin
d9e3efdf13 [Fix #98] If there is no dossiers do not show export button 2017-11-28 10:24:36 +01:00
Mathieu Magnin
8edfdff0fc [Fix#980] Engagement checkbox should be checked sometimes 2017-11-23 09:40:44 +01:00
gregoirenovel
c8e62ad095 recherches -> recherche 2017-11-22 10:48:38 +01:00
gregoirenovel
303e5285e9 [Fix #962] In new UI, add link on “dossier_link” field values 2017-11-21 18:05:34 +01:00
Simon Lehericey
a71574b8dd [fix #445]: add title to pages 2017-11-21 17:47:27 +01:00
Mathieu Magnin
7bfafb6fc2 Fix export for yes_no champs 2017-11-21 10:36:24 +01:00
Simon Lehericey
2b146a6d62 Notifications: show dossiers with notification in first place 2017-11-20 17:22:52 +01:00
Mathieu Magnin
b187e7163a Remove demo accounts routes 2017-11-16 12:36:58 +01:00
Mathieu Magnin
adaa1e0dec [Fix #939] Remove demo page in staging 2017-11-10 18:19:41 +01:00
Simon Lehericey
ed4e885e6f Notification: new acknowledgment system 2017-11-10 16:29:45 +01:00
Simon Lehericey
f7d7cec5ae Notification: use new notification system 2017-11-10 16:29:45 +01:00
Simon Lehericey
155a5f7826 Notification: add methods to retrieve notifications 2017-11-10 16:29:44 +01:00
Simon Lehericey
f4a8ff31b9 Champ: export multiple_drop_down_list as a [].join(', ') 2017-10-30 17:14:31 +01:00
Simon Lehericey
b658f8c8dc Champ: export yes_no champ with oui non 2017-10-30 17:14:31 +01:00
Simon Lehericey
338911d1a8 [fix #905] Champ: add for_export method which strips tag for textarea champ 2017-10-30 17:14:31 +01:00
Simon Lehericey
3f2419a2a3 Dossier: rename data_with_champs to to_sorted_values 2017-10-30 17:14:31 +01:00
Simon Lehericey
fc987a730d [Fix #925] strip avis email input 2017-10-30 14:19:20 +01:00
Simon Lehericey
5f348df570 Dossier spec: remove forgotten focus 2017-10-27 10:48:29 +02:00
Simon Lehericey
106b8ec118 Dossier decorator spec: fix dossier updated_at spec 2017-10-27 10:48:05 +02:00
Simon Lehericey
8dedf6fdca [fix #575] dossier updated_at is ... updated when children are updated 2017-10-24 18:12:25 +02:00
Mathieu Magnin
02c83766e5 [Fix #839] Fix mail template modification by side effect 2017-10-23 14:36:52 +02:00
Mathieu Magnin
a8ec374252 [Fix #813] When a brouillon is created, send an email to user 2017-10-20 12:13:55 +02:00
Simon Lehericey
3dce5b9b5e AttestationTemplate: store logo and signature with uuid 2017-10-19 15:32:04 +02:00
Simon Lehericey
ea2827134e [fix #850] Use UUID as a uniq identifier for the attestation 2017-10-19 15:02:01 +02:00
Mathieu Magnin
8c67339299 If date_publication is missing on rna_information, do not crash 2017-10-17 15:21:29 +02:00
gregoirenovel
9ea396cc8b Avoid loading the association for the without_followers scope
As seen in https://stackoverflow.com/questions/5319400/want-to-find-records-with-no-associated-records-in-rails-3
2017-10-17 14:10:34 +02:00
Mathieu Magnin
08f76f336c If not super admin do not display current month in cumul 2017-10-17 12:55:17 +02:00
gregoirenovel
eda5dc46b7 Fix a test broken by #851 2017-10-17 11:45:00 +02:00
Mathieu Magnin
e76656955c Link should exactly match dossier id, not on email like user1234@tps.fr 2017-10-17 11:10:03 +02:00
Simon Lehericey
5257d20ba0 [fix #845] Attestation: affiche les dates au format français 2017-10-16 18:54:19 +02:00
Mathieu Magnin
0f945e2fea Simplify mailer parameters to be serializable (even if mail_template.id is nil) 2017-10-13 21:27:17 +02:00
Mathieu Magnin
c5487657db Create a Job that receive automatically each new dossier from a specific procedure 2017-10-06 17:49:31 +02:00
Mathieu Magnin
5eff915b9d Add initiated_at to DossiersSerializer 2017-10-06 17:49:06 +02:00
gregoirenovel
c58a7abbd1 Capitalize the buttons’ labels 2017-10-06 10:49:38 +02:00
gregoirenovel
90c84968ae Fix failing tests
Introduced by #787
2017-10-06 10:19:02 +02:00
gregoirenovel
b079aeed48 Run all the tests when everything is filtered
To balance the filtering introduced in #785
2017-10-06 10:18:42 +02:00
Simon Lehericey
ffe131322e Dossier: prove a hidden dossier is no more followed 2017-10-05 16:59:26 +02:00
Simon Lehericey
e20d403b20 DossierController: a archived dossier is not followed 2017-10-05 16:59:26 +02:00
Simon Lehericey
19b3416361 Gestionnaire: add unfollow method 2017-10-05 16:59:26 +02:00
Simon Lehericey
01da457ad0 DossierController: a dossier commented is followed 2017-10-05 16:59:26 +02:00
gregoirenovel
044e0e69b8 Normalize the capitalisation of tab names in the Accompagnateur header 2017-10-05 15:48:18 +02:00
gregoirenovel
0006d42874 Move the jobs logging handling in ApplicationJob 2017-10-05 15:42:48 +02:00
gregoirenovel
51f57d983e Use ActiveJob 2017-10-05 15:42:48 +02:00
gregoirenovel
6d7352f175 Allow the focus flag on tests
So that it only runs flagged tests, which is
useful especially when using guard
2017-10-05 15:01:02 +02:00
gregoirenovel
a611cace5f Do not allow to filter by explication fields 2017-10-05 14:46:09 +02:00
gregoirenovel
c586474a45 Do not show explication fields to gestionnaires 2017-10-05 14:46:09 +02:00
Simon Lehericey
742b455e9e Spec: add spec features to test gestionnaire part 2017-10-05 14:04:53 +02:00
Mathieu Magnin
e9a52d769c Add some tests on dossier filtering 2017-10-02 17:45:22 +02:00
gregoirenovel
0705efde30 Add filtering to the dossiers table 2017-10-02 17:45:22 +02:00
gregoirenovel
801318b053 Memoize statut 2017-10-02 17:45:22 +02:00
gregoirenovel
3df9356021 Add field sort to the dossiers table 2017-10-02 17:45:22 +02:00
Mathieu Magnin
fcd5b46811 Test procedure table customization feature 2017-10-02 17:45:22 +02:00
gregoirenovel
e1bdbec815 Allow the customization of the dossiers table 2017-10-02 17:45:22 +02:00
gregoirenovel
7036f9778b Add ProcedurePresentation 2017-10-02 17:03:30 +02:00
Mathieu Magnin
e753c67ad6 Change WeeklyOverviewWorker for delayed_job 2017-09-27 16:47:32 +02:00
Mathieu Magnin
fbad15bc84 Change AutoArchiveProcedureWorker for delayed_job 2017-09-27 16:47:32 +02:00
Simon Lehericey
2b760c85c4 [Fix #763] Add annotations_privees to buggy annotation system 2017-09-27 15:08:34 +02:00
Simon Lehericey
f5a227fa92 [Fix #762] move dossier instruction -> dossier annotations_privees 2017-09-27 12:16:33 +02:00
Simon Lehericey
a421f0257e [Fix #762] split annotations and avis 2017-09-27 12:08:55 +02:00
Simon Lehericey
1cfeb10ce9 [Fix #503] Dossier: remove updated 2017-09-26 14:42:54 +02:00
Simon Lehericey
633b55aca0 [Fix #503] Dossier: remove replied 2017-09-26 14:42:54 +02:00
Simon Lehericey
73357c5144 [Fix #503] Dossier: Remove waiting for gestionnaire scope 2017-09-26 14:42:54 +02:00
Simon Lehericey
460cd3e237 [Fix #503] Dossier: Remove waiting for user scope 2017-09-26 14:42:54 +02:00
Simon Lehericey
53f0a16186 BackofficeAvisController: make new avis confidentiel by default 2017-09-22 17:58:16 +02:00
gregoirenovel
5b955677c2 [Fix #719] Unformat date and yes/no values in the form 2017-09-20 17:40:43 +02:00
Simon Lehericey
3c3e303a59 Dossier instruction: can ask for a confidentiel avis 2017-09-20 15:42:26 +02:00
Simon Lehericey
caaa3169e5 Avis instruction: can ask for a confidentiel avis 2017-09-20 15:42:26 +02:00
Simon Lehericey
fdbf34f04b Avis instruction: only authorized avis 2017-09-20 15:42:26 +02:00
Simon Lehericey
112e3a5793 Procedures: redirect to avis if suitable 2017-09-20 15:42:26 +02:00
Simon Lehericey
3dfd77e914 Avis: add messagerie 2017-09-20 15:42:26 +02:00
Simon Lehericey
88c27479ee Avis: instruction 2017-09-20 15:42:26 +02:00
Simon Lehericey
a1f9f7aa75 Avis: show 2017-09-20 15:42:26 +02:00
Simon Lehericey
3cc09c98f9 Avis: index 2017-09-20 15:42:26 +02:00
Mathieu Magnin
44b5c4b93b Dossiers should be sorted by updated_at date 2017-09-20 11:20:00 +02:00
Mathieu Magnin
d47033deb2 When filling a champ ensure it is a text champ 2017-09-20 10:26:02 +02:00
Mathieu Magnin
66549f93bb [Fix #727] Engagement champ should behave like checkbox when displayed 2017-09-14 10:57:40 +02:00
Mathieu Magnin
f46adfd5a0 Fix test that fails randomly 2017-09-13 11:23:03 +02:00
Mathieu Magnin
31995c270c [Fix #721] If an avis is created with uppercase email, downcase it before save 2017-09-13 10:59:59 +02:00
Mathieu Magnin
fbd82a87db Improve tests reliability 2017-09-08 12:14:34 +02:00
Mathieu Magnin
719b848e79 Fix search test that fails randomly 2017-09-06 14:36:09 +02:00
Mathieu Magnin
059a0b961b Action button for construction state 2017-09-06 11:13:59 +02:00
Simon Lehericey
a298c48e8f Dossier: add notification icon 2017-09-06 11:13:50 +02:00
Simon Lehericey
3e93d21bf5 Procedure Index: add notification icon 2017-09-06 11:11:47 +02:00
Mathieu Magnin
bf97a111f9 Old recherche with new design 2017-09-06 11:11:43 +02:00
Simon Lehericey
3e5d0dce6a NewDesign: can add annotations 2017-09-06 11:11:37 +02:00
Simon Lehericey
2923d4448b NewDesign: can ask a new avis 2017-09-06 11:11:36 +02:00
Simon Lehericey
d4bbcdf682 Champ: add before save logic to serialize datetime and dropdownlist fields 2017-09-06 11:11:35 +02:00
Simon Lehericey
62894175ae DossierControllerSpec: refactor by remove sign_in test logic
As this test belongs to ProcedureControllerSpec
2017-09-06 11:11:29 +02:00
Simon Lehericey
f6bc9ec852 DossierControllerSpec: rename describe (add #) 2017-09-06 11:11:28 +02:00
gregoirenovel
7ff7710803 A gestionnaire can only see procédures publiées 2017-09-06 11:11:26 +02:00
gregoirenovel
55a4f1288f Fix a gestionnaire test 2017-09-06 11:11:26 +02:00
Simon Lehericey
714b2a5f08 NewDesign: gestionnaire can add a new commentaire 2017-09-06 11:11:25 +02:00
Simon Lehericey
d5535aaaaa DossierControllerSpec: refactor 2017-09-06 11:11:23 +02:00
Simon Lehericey
97de5b2dd9 DossierControllerSpec: remove duplicate test 2017-09-06 11:11:23 +02:00
Simon Lehericey
86ea47bb0d BackofficeDossierController: follow dossier when receive 2017-09-06 11:11:23 +02:00
Simon Lehericey
b80d6a6a59 Follow: add flash notice to dossier_controller 2017-09-06 11:11:23 +02:00
Simon Lehericey
95fbd1824a Follow: remove old backoffice follow and toggle_follow 2017-09-06 11:11:22 +02:00
Simon Lehericey
6cff044a50 NewDossierController: add next_step follow 2017-09-06 11:11:22 +02:00
Simon Lehericey
e68f3332c1 Gestionnaire: add follow(dossier) method 2017-09-06 11:11:21 +02:00
Simon Lehericey
033f08524f Gestionnaire: refactor follow? 2017-09-06 11:11:21 +02:00
Mathieu Magnin
923a16a8c8 remove extra line 2017-09-06 11:11:18 +02:00
Mathieu Magnin
2b0c0567b8 Add header section in form table 2017-09-06 11:11:16 +02:00
Mathieu Magnin
f9f313e990 Add identité demandeur for entreprise on dossier detail page 2017-09-06 11:11:15 +02:00
Mathieu Magnin
5b417889b2 Use same counters on procedures index than show 2017-09-06 11:11:14 +02:00
Simon Lehericey
a064ae64a4 NewDesign: add archive and unarchive actions on dossier 2017-09-06 11:11:12 +02:00
Simon Lehericey
eb65318844 NewDesign: add follow and unfollow actions on dossier 2017-09-06 11:11:12 +02:00
Simon Lehericey
ad1a11ab52 NewDesign: procedure show add dossier table 2017-09-06 11:11:11 +02:00
Simon Lehericey
b48af51ee9 NewDesign: procedure show only header 2017-09-06 11:11:11 +02:00
Mathieu Magnin
f7d1cfc462 Add tests on procedures#index 2017-09-06 11:11:09 +02:00
Mathieu Magnin
05f83fb3d3 convert simple quote to double quote 2017-09-06 11:11:09 +02:00
gregoirenovel
650a39b371 Use delete_all instead of destroy_all to batch delete 2017-08-29 14:22:14 +02:00
Simon Lehericey
806c41af38 [Fix #667] Can add an already register gestionnaire with uppercase email 2017-08-28 15:36:34 +02:00
Simon Lehericey
a7b00ee847 Rubocop: enable Layout/SpaceAroundOperators 2017-08-28 13:39:13 +02:00
Simon Lehericey
62f1b9c712 Rubocop: enable indentation width rule 2017-08-28 12:20:58 +02:00
Mathieu Magnin
dd1fea78ac [Fix #658] when dossier linked to avis is hidden, do not crash application 2017-08-28 10:11:50 +02:00