Commit graph

2837 commits

Author SHA1 Message Date
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