Commit graph

2928 commits

Author SHA1 Message Date
Frederic Merizen
695f5b2705 Fix class methods on BizDev module
and add missing tests
2018-06-06 16:07:29 +02:00
gregoirenovel
bb3dcbbf22 Resend attestation for a procedure whose attestation template changed 2018-06-05 17:37:08 +02:00
gregoirenovel
41e8350cbe [Fix #1735] Sign the admin account creation email 2018-06-01 20:48:50 +02:00
gregoirenovel
6992bea141 Add the BizDev module 2018-06-01 20:48:50 +02:00
gregoirenovel
6be05e8fc5 Add a local variable to the bizdev_signature partial 2018-06-01 20:48:50 +02:00
Frederic Merizen
52bb40ab20 [#1946] Show retention times in procedure administration summary 2018-06-01 17:35:04 +02:00
gregoirenovel
b82ed65568 [Fix #885] Convert .text.erb to .html.haml 2018-06-01 17:14:48 +02:00
gregoirenovel
efdcbe4265 [Fix #885] Convert .html.erb to .html.haml 2018-06-01 17:14:48 +02:00
gregoirenovel
bd9d913a74 [Fix #885] Remove unused mail templates 2018-06-01 17:14:48 +02:00
gregoirenovel
f6c1229cf0 [Fix #1775] Improve the wording of the emails templates 2018-06-01 17:12:10 +02:00
gregoirenovel
42650cef72 Remove an unused file 2018-06-01 17:07:23 +02:00
Frederic Merizen
346687bd33 [#1946] Once durees de conservation have been set, forbid unsetting them 2018-06-01 16:46:39 +02:00
Frederic Merizen
42765efb91 [#1946] Add validation to durees conservation 2018-06-01 16:46:39 +02:00
Frederic Merizen
648483ac76 [#1946] Allow admins to edit data retention time 2018-06-01 16:46:39 +02:00
gregoirenovel
f8f760db62 Use p tags in emails to improve legability 2018-06-01 15:42:56 +02:00
gregoirenovel
dd66089d5c Put the title in an instance variable when needed to avoid repetition 2018-06-01 15:42:56 +02:00
gregoirenovel
1cd06b68d4 Remove extra markup from the avis invitation email 2018-06-01 15:42:56 +02:00
gregoirenovel
4f2509861b Improve the wording of the avis email 2018-06-01 15:42:56 +02:00
gregoirenovel
bc8f74dc42 [Fix #1858] Improve the avis email’s style 2018-06-01 14:11:06 +02:00
gregoirenovel
a0b82696dd [Fix #886] devise/mailer -> devise_mailer 2018-06-01 11:47:46 +02:00
gregoirenovel
8f1579fb9e [Fix #886] Move mail templates from /mails to /notification_mailers 2018-06-01 11:47:46 +02:00
gregoirenovel
464d1c1efa Remove a useless method 2018-06-01 11:35:40 +02:00
gregoirenovel
8782bdd961 Do one thing per line 2018-06-01 11:35:40 +02:00
gregoirenovel
69e95f62c8 Remove useless methods 2018-06-01 11:35:40 +02:00
gregoirenovel
b364b8bfb3 Improve many subjects 2018-06-01 11:35:40 +02:00
gregoirenovel
d7a8a103d7 Remove the prefix from our emails’ subjects 2018-06-01 11:21:11 +02:00
simon lehericey
c72421fb9e Procedure: Once deliberation or cadre_juridique have been set, forbid unsetting them 2018-06-01 11:12:53 +02:00
simon lehericey
1f0e46a4ff Procedure: required juridique stuff only if needed 2018-06-01 11:12:53 +02:00
gregoirenovel
23931a7591 Remove the contact_email locale 2018-06-01 00:00:11 +02:00
gregoirenovel
185f08f63e Add constants for email addresses 2018-06-01 00:00:11 +02:00
gregoirenovel
a3f5ae9d0b Add a variable to improve readability 2018-06-01 00:00:11 +02:00
gregoirenovel
8eeb10bc5c Add parentheses 2018-06-01 00:00:11 +02:00
gregoirenovel
a60f1c434e Improve the mailers readability 2018-06-01 00:00:11 +02:00
Frederic Merizen
b571f0706c [Fix #2015] Make sur all data is initialised for index view 2018-05-31 18:32:13 +02:00
simon lehericey
18ad227df5 [fix #1897] Procedure: can delete a deliberation 2018-05-31 16:56:28 +02:00
simon lehericey
0e690c90cc Procedure: clone the deliberation 2018-05-31 16:56:28 +02:00
simon lehericey
fa14db1cbf Procedure: add deliberation 2018-05-31 16:56:28 +02:00
simon lehericey
a96889310b Procedure: add legal reference 2018-05-31 16:55:31 +02:00
Paul Chavard
e2a126e37a Add users and gestionnaires to manager 2018-05-31 15:18:24 +02:00
gregoirenovel
0329b1db68 Use User#owns_or_invite? instead of Dossier#owner_or_invite? 2018-05-31 14:39:43 +02:00
gregoirenovel
4e9565a5df Adds User#owns? 2018-05-31 14:39:43 +02:00
gregoirenovel
a007d6e3eb Avoid trailing spaces in strings 2018-05-31 14:29:38 +02:00
Frederic Merizen
2f769ca933 [#1995] Add gender and birthdate fields to API 2018-05-31 14:21:37 +02:00
simon lehericey
126c2f2687 DubiousProcedure: update forbidden words 2018-05-31 13:52:33 +02:00
simon lehericey
167ca26036 ManagerDemandeView: does not bug when there is no demand 2018-05-31 13:47:42 +02:00
gregoirenovel
32a2ab153f Remove vars_mailer and simplify code 2018-05-31 12:10:06 +02:00
gregoirenovel
2e0abb054c Stop doing something useless 2018-05-31 12:10:06 +02:00
gregoirenovel
641f72a517 Stop relying on instance variables 2018-05-31 12:10:06 +02:00
gregoirenovel
0d8cb50a30 Introduce a local variable to improve legibility 2018-05-31 12:10:06 +02:00
gregoirenovel
8eacfa801c Use send_mail when possible 2018-05-31 12:10:06 +02:00
gregoirenovel
02c2f681aa Reorder some methods 2018-05-31 12:10:06 +02:00
gregoirenovel
a57e2388f6 Unify NotificationMailer methods’ signatures 2018-05-31 12:10:06 +02:00
gregoirenovel
7ea37abefa Use a local variable instead of an instance variable 2018-05-31 12:10:06 +02:00
gregoirenovel
bb8adba9b9 Use goddamn parentheses 2018-05-31 12:10:06 +02:00
gregoirenovel
661010100d [Fix #1536] Remove stringupcasepatch 2018-05-31 11:49:25 +02:00
gregoirenovel
faa56956c5 [Fix #1744] Remove useless variable 2018-05-31 11:49:25 +02:00
gregoirenovel
dc045bdefb [Fix #1808] Use &. where possible 2018-05-31 11:49:25 +02:00
Mathieu Magnin
eb1fbb7dbc Delete button, notify user and admin then delete dossier 2018-05-30 18:01:36 +02:00
Mathieu Magnin
55a3d59e38 Create new model to store deleted dossier metadatas 2018-05-30 18:01:36 +02:00
Mathieu Magnin
b68563f45f Only dossier owner can see delete button 2018-05-30 18:01:36 +02:00
Mathieu Magnin
28fc32db6d Change delete button wording 2018-05-30 18:01:36 +02:00
Frederic Merizen
80e75b33c4 [Fix #1999] create commentaires for AR 2018-05-30 17:12:06 +02:00
Frederic Merizen
a62adb4307 [#1999] Remove dead code 2018-05-30 17:07:29 +02:00
Paul Chavard
66855e77b6 Guard for champ SIRET without etablissement 2018-05-30 15:03:44 +02:00
simon lehericey
959097ce8b DubiousProcedure: small style adjustement 2018-05-30 14:21:41 +02:00
simon lehericey
6eadea29bc [fix #1952] DubiousProcedure: add admin contact, procedure state and dossier count 2018-05-30 14:21:41 +02:00
simon lehericey
47cc0180bd DubiousProcedure: change forbidden keywords 2018-05-30 14:21:35 +02:00
Paul Chavard
86b2cb211e Do not attempt to archive already archived procedures 2018-05-29 14:29:26 +02:00
Mathieu Magnin
0f32821b27 Add dossier state to deletion email 2018-05-29 12:16:22 +02:00
Paul Chavard
87d7bd4fb2 Fix clone procedure 2018-05-28 14:58:40 +02:00
Frederic Merizen
fd168c4a72 [Fix #1972] Make devise mails async 2018-05-28 12:02:13 +02:00
Frederic Merizen
07b1c147d9 [Fix #1972] Always send mails asynchronously 2018-05-28 12:02:13 +02:00
Frederic Merizen
cce00e19c6 [#1972] Avoid passing unsaved templates to ActionMailer
So that all mail arguments can be serialized
2018-05-28 12:02:13 +02:00
gregoirenovel
3eab48c699 Simplify ApiEntrepriseService even further 2018-05-24 18:12:29 +02:00
Mathieu Magnin
cf36d7f1ed [Fix #1801] use the new string_to_html method 2018-05-24 18:05:41 +02:00
Mathieu Magnin
152cf03d72 [Fix #1801] rename and move html_formatted_description in a generic helper 2018-05-24 18:05:00 +02:00
Paul Chavard
edc8e24ddd Update gestionnaire filters 2018-05-24 17:54:51 +02:00
Paul Chavard
66b83b4508 Remove unused alias 2018-05-24 17:54:51 +02:00
gregoirenovel
5d188c191d Move transform_keys calls directly to #process_params methods 2018-05-24 17:54:51 +02:00
gregoirenovel
a3fd271b00 Remove legacy
Update EtablissementUpdateJob
2018-05-24 17:54:51 +02:00
Paul Chavard
d99eed122d Use new models in controllers and views 2018-05-24 17:54:51 +02:00
Paul Chavard
753a81c2d3 Update tag substitution concern 2018-05-24 17:54:51 +02:00
Paul Chavard
3f249d6663 Remove unused decorators 2018-05-24 17:54:51 +02:00
Paul Chavard
ad24fd5991 Remove entreprise and rna_information models 2018-05-24 17:54:51 +02:00
Paul Chavard
7fb7d77886 Use aasm_state in scopes 2018-05-24 17:49:24 +02:00
simon lehericey
aaebcd3494 [fix #1701] Use DS form to enroll admin 2018-05-24 17:15:44 +02:00
Mathieu Magnin
aaf1bc0b99 [Fix #1931] User can ask support to delete dossier 2018-05-24 16:42:16 +02:00
Paul Chavard
6345d5d153 Use new primitives in procedures controller 2018-05-23 16:31:27 +02:00
Paul Chavard
6b683cc491 procedure AASM derived state 2018-05-23 16:31:27 +02:00
Paul Chavard
550ddc8d97 procedure AASM callbacks 2018-05-23 16:31:27 +02:00
Paul Chavard
9cf87d6063 procedure AASM states and events 2018-05-23 16:31:27 +02:00
simon lehericey
0b87944368 [#1915] Devise: avoid leaking registered people 2018-05-23 15:55:52 +02:00
simon lehericey
7fed476e29 Welcome Mailer: remove obsolete mailer 2018-05-23 15:55:52 +02:00
simon lehericey
d2dc69cde0 Connection: redirect user to its procedure 2018-05-23 15:55:52 +02:00
simon lehericey
6a69d958da Devise: move after_sign_up to after_confirmation 2018-05-23 15:55:52 +02:00
simon lehericey
5bd589344e Devise: confirm user email 2018-05-23 15:55:52 +02:00
Frederic Merizen
d1bbb8023a Remove smartlisting workaround
As it was fixed upstream in 1.2.2
2018-05-23 15:53:58 +02:00
Paul Chavard
ceddf65f6c Fix crash with inexistent paths 2018-05-23 15:36:50 +02:00
Paul Chavard
94d253c6dc Add commencer/test/:procedure_path route 2018-05-23 11:32:26 +02:00
Paul Chavard
ffef1a644c procedure_path should check for test and regular procedure 2018-05-23 11:32:26 +02:00
Paul Chavard
4ad3932c05 Add test_procedure to procedure_path 2018-05-23 11:32:26 +02:00
gregoirenovel
44754418f8 Add parentheses 2018-05-22 19:01:46 +02:00
gregoirenovel
a246181afd Add API_GEO_URL 2018-05-22 19:01:46 +02:00
gregoirenovel
1839269dd9 Add API_CARTO_URL 2018-05-22 18:53:34 +02:00
Frederic Merizen
678baaf362 Unroll loop with ifs 2018-05-22 18:35:23 +02:00
Paul Chavard
785fe3410e Clone procedure notice 2018-05-22 17:43:44 +02:00
gregoirenovel
de201fca04 Add FAQ_URL 2018-05-22 17:23:56 +02:00
gregoirenovel
5126503cfc Add MENTIONS_LEGALES_URL 2018-05-22 17:23:56 +02:00
gregoirenovel
dc962f0c0a Add LISTE_DES_DEMARCHES_URL 2018-05-22 17:23:56 +02:00
gregoirenovel
5e2219416e Add the DOC_URL constant 2018-05-22 17:23:56 +02:00
Paul Chavard
0a07e9983a Fix test with ordering failures 2018-05-22 16:24:24 +02:00
simon lehericey
928227a610 Procedure: remove now duplicate organisation and direction 2018-05-18 16:21:27 +02:00
simon lehericey
39bb56d1d9 Service: add organisme, email, tel, horaires, adresse 2018-05-18 16:21:27 +02:00
simon lehericey
0be21395ac [fix #1829] Service: add breadcrumbs 2018-05-18 16:21:26 +02:00
simon lehericey
0cb910f38a Style: extract and rename accompagnateur-header to sub-header 2018-05-18 16:21:26 +02:00
simon lehericey
304c04275c Admin Nav Bar: link to new service if no service available 2018-05-18 16:21:26 +02:00
simon lehericey
f2357acb27 Service: cannot published a procedure without a service 2018-05-18 16:21:26 +02:00
simon lehericey
abccdab6ab Admin Procedure Show: simple cleaning 2018-05-18 16:21:26 +02:00
simon lehericey
6b8a878ec1 Service: can be destroyed 2018-05-18 16:21:26 +02:00
simon lehericey
af7be58132 Service: add service to procedure 2018-05-18 16:21:26 +02:00
simon lehericey
5d7455f436 Service: keep procedure_id 2018-05-18 16:21:26 +02:00
Frederic Merizen
a8f2528dcd Add services to procedure admin menu 2018-05-18 16:21:26 +02:00
Frederic Merizen
ec21f78274 Cosmetic refactor left procedure admin panel 2018-05-18 16:21:26 +02:00
Frederic Merizen
365cb9b44d Service: can update a service 2018-05-18 16:21:26 +02:00
simon lehericey
c54c85bad8 Service: can create a service 2018-05-18 16:21:26 +02:00
simon lehericey
bda0ca8188 Service: sort services by name in index 2018-05-18 16:21:26 +02:00
simon lehericey
4d0a920e7a Service: add index page 2018-05-18 16:21:26 +02:00
simon lehericey
fc17b68dc1 Service: create model 2018-05-18 16:21:26 +02:00
Paul Chavard
2b8ee92074 Add aasm_state to procedures 2018-05-17 14:46:48 +02:00
Paul Chavard
da8ad1f3e2 Remove external scripts from mailjet widget 2018-05-17 13:27:27 +02:00
simon lehericey
95db5e5767 [fix #1560] update logo in mail 2018-05-15 12:27:28 +02:00
Paul Chavard
0c54220c2b Add test_started_at to procedures 2018-05-15 11:00:20 +02:00
Mathieu Magnin
748300fcf7 [Fix #1896] fix typo 2018-05-11 13:52:06 +02:00
Frederic Merizen
26f9ec0122 [Fix #1825] Also show previews for archived procedures 2018-05-09 18:28:41 +02:00
Frederic Merizen
4308535450 [Fix #1833] Remove library button from new procedure from scratch screen 2018-05-09 16:16:43 +02:00
Frederic Merizen
93e068421b [#1833] New procedure button defaults to procedure library 2018-05-09 16:16:09 +02:00
Frederic Merizen
5fd5c3ee5b [#1833] Add ‘create from scratch’ button to procedure library 2018-05-09 16:15:19 +02:00
Frederic Merizen
5ef129d960 [#1563] Remove attestation mail attachment 2018-05-09 10:42:40 +02:00
Mathieu Magnin
7f4e6eae6b No dubious proc. email == Everything is ok || Something went wrong. We should always send dubious procedure email. 2018-05-07 12:24:05 +02:00
Mathieu Magnin
dcdd431bc0 [Fix #1907] set activation reminder delay to 3 days to allow administrateurs to activate their account with the original message after the weekend 2018-05-04 14:23:05 +02:00
Mathieu Magnin
a2bbf1b4d6 [Fix #1907] A new token should be regenerated, because the one in db is encrypted 2018-05-04 14:23:05 +02:00
gregoirenovel
8848abc536 #to_sorted_values -> #sorted_values 2018-05-03 23:35:51 +02:00
gregoirenovel
886431b120 Make some methods private 2018-05-03 23:35:51 +02:00
gregoirenovel
f020fa9e2b Remove some useless self mentions 2018-05-03 23:35:51 +02:00
Paul Chavard
0b7cf3ae75 #full_data_strings_array -> #export_values 2018-05-03 23:35:51 +02:00
Paul Chavard
8637a3015e Simplify Procedure#generate_export code 2018-05-03 23:35:51 +02:00
gregoirenovel
031522cf42 Checking on entreprise has no sense, check etablissement 2018-05-03 23:35:51 +02:00
gregoirenovel
12cda1739b #export_entreprise_data -> #export_etablissement_data 2018-05-03 23:35:51 +02:00
gregoirenovel
5cdd7b48b1 Add a link to the available demarches 2018-05-02 17:09:38 +02:00
gregoirenovel
291259deb8 On the landing page, show the Usagers panel first 2018-05-02 17:09:38 +02:00