gregoirenovel
3c331b65a5
Remove an unused method
2018-06-20 18:30:41 +02:00
Pierre de La Morinerie
e953481fd0
manager: display procedures on the gestionnaires page
2018-06-20 17:34:11 +02:00
Pierre de La Morinerie
99b9f42b21
manager: display gestionnaires on the procedure page
2018-06-20 17:33:59 +02:00
simon lehericey
c3610fc96e
[ fix #2067 ] Resend confirmation mail if the user is not confirmed
2018-06-20 13:30:32 +02:00
Mathieu Magnin
071e234150
Fix select2 overflow
2018-06-19 17:52:16 +02:00
Pierre de La Morinerie
c4057a0807
dossier: display user infos on edit page
2018-06-19 16:27:53 +02:00
Pierre de La Morinerie
c1db26b2e1
service: add explanation about contact infos
2018-06-19 16:23:43 +02:00
Pierre de La Morinerie
755600acf4
layout: move the landing footer to its own file
2018-06-19 16:23:43 +02:00
Frederic Merizen
e99931527b
[ #1421 ] Move pays to PaysChamp
2018-06-19 15:20:01 +02:00
Frederic Merizen
0239f936d7
[ #1421 ] Move departements to DepartementChamp
2018-06-19 15:20:01 +02:00
Frederic Merizen
5b59bce0b6
[ #1421 ] Move regions to RegionChamp
2018-06-19 15:20:01 +02:00
Frederic Merizen
95666238ea
[ #1421 ] Move piece justificative error code to piece justificative champ
2018-06-19 15:20:01 +02:00
Frederic Merizen
6af27a7190
[ #1421 ] Move same_hour / same_minute to typed champ
2018-06-19 15:20:01 +02:00
Frederic Merizen
41734092b2
[ #1421 ] Move type specific for_export code to typed champs
2018-06-19 15:20:01 +02:00
Frederic Merizen
ee8616fb97
[ #1421 ] Move type specific to_s implementations to typed champs
2018-06-19 15:20:01 +02:00
Frederic Merizen
c2f199c5aa
[ #1421 ] Move piece justificative specific validation to PieceJustificativeChamp
2018-06-19 15:20:01 +02:00
Frederic Merizen
c690d3819e
[ #1421 ] Move type-specific before_save to typed champs
2018-06-19 15:20:01 +02:00
Pierre de La Morinerie
426e61777c
dossier: make the "Save changes" button title more meaningful
2018-06-19 13:46:43 +02:00
Pierre de La Morinerie
a4382ac198
dossiers: asterisque
-> astérisque
2018-06-19 13:46:43 +02:00
Pierre de La Morinerie
c0da0ba52c
publish-modal: fix the textfield vertical alignement
2018-06-19 13:46:43 +02:00
Frederic Merizen
bdece939c8
[ #1568 ] Inline partial that is only used in one view
2018-06-19 12:42:46 +02:00
Frederic Merizen
521aec6af9
[ #1568 ] Remove old previsualisation code
2018-06-19 12:42:46 +02:00
Frederic Merizen
fd10310cbf
[ Fix #1568 ] Use new procedure preview
2018-06-19 12:42:46 +02:00
Mathieu Magnin
ae6e3e345e
Task to unhide dossiers with instruction commencee
2018-06-19 10:05:00 +02:00
Mathieu Magnin
89f82ba92e
Move email sending in delete method
2018-06-19 10:05:00 +02:00
Mathieu Magnin
e05fb2d0ae
Allow dossier deletion if instruction has not started
2018-06-19 10:05:00 +02:00
Pierre de La Morinerie
3ba5d654ba
editable_champs: move the label near the checkbox
2018-06-18 18:12:11 +02:00
Frederic Merizen
78fa6945cb
[ #2068 ] Use official French word for mail
2018-06-18 10:42:04 +02:00
Frederic Merizen
dd4e6eaa11
[ #2068 ] Add missing devise translations
2018-06-18 10:42:04 +02:00
Frederic Merizen
bae7a2dd3c
[ Fix #2068 ] Use mail templates from application rather than devise
...
`default template_path:` was the documented way, but wasn’t working
(and there was no hint in the source code of Devise that it could
work)
Therefore, let’s override `template_paths` instead and stop worrying
2018-06-18 10:42:03 +02:00
simon lehericey
eee41cbf39
Manager: can reinvite a gestionnaire
2018-06-14 16:41:10 +02:00
Pierre de La Morinerie
0bef35946f
procedure: make sentence shorter
...
Before: "Affectez des accompagnateurs à votre procédure.Affectez un
service à votre procédure.
After: "Affectez des accompagnateurs et un service à votre procédure."
2018-06-13 11:59:40 +02:00
Pierre de La Morinerie
367ac0dd5a
procedure: avoid tooltip being hidden by the navbar
2018-06-13 11:59:40 +02:00
Frederic Merizen
fd2fd83aac
Remove erroneous space in haml
2018-06-13 10:21:57 +02:00
Mathieu Magnin
6289a719ef
Display virus scan status with pj champs
2018-06-12 15:12:39 +02:00
Mathieu Magnin
cd4615b10d
When a new PJ is uploaded enqueue a anti virus scan job
2018-06-12 15:12:39 +02:00
Mathieu Magnin
927cd3c6f4
Create virus scan model to store clamav result
2018-06-12 15:12:38 +02:00
gregoirenovel
c2b97c68e1
Fix an email
2018-06-11 11:56:52 +02:00
simon lehericey
e11392981d
[ fix #2072 ] DossierController: check the user can update the dossier
2018-06-08 16:24:29 +02:00
Frederic Merizen
7c6b60bfcb
Retroactively pre(?)activate users for gestionnaires and administrateurs
2018-06-08 10:49:31 +02:00
gregoirenovel
4db432a4ca
Remove Mailers module for app mailers
2018-06-07 17:23:12 +02:00
gregoirenovel
346b32fbd4
[ Fix #1736 ] Assign the deal and person to the person who accepted them
2018-06-07 16:04:15 +02:00
gregoirenovel
b88cea3c18
Change a deliver into a deliver_later
2018-06-07 15:14:26 +02:00
gregoirenovel
f06132edf1
Forgot to change a local variable into an instance variable
2018-06-07 15:05:30 +02:00
gregoirenovel
478598f74c
Add a task to destroy, regenerate, and send new attestations
...
For dossiers that were accepté, went back to
en instruction, and then were accepté again
2018-06-06 18:25:11 +02:00
Frederic Merizen
74135b193a
[ Fix #2042 ] Pre-validate users for administrateurs
...
Rather kludgy but better than the double-validation that is required now
2018-06-06 17:45:48 +02:00
Frederic Merizen
c3254eddae
[ Fix #2043 ] Pre-validate users for gestionnaires
...
Rather kludgy but better than the double-validation that is required now
2018-06-06 17:45:48 +02:00
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