Paul Chavard
37d424d671
Refactor carto code
2018-10-05 09:55:41 +02:00
Paul Chavard
51127c324d
Move old carto code to webpacker
2018-10-05 09:55:41 +02:00
Paul Chavard
6ed4bb538c
Remove dead code
2018-10-05 09:55:41 +02:00
Paul Chavard
7898a33469
Format old javascript with prettier
2018-10-05 09:55:41 +02:00
Paul Chavard
179786380d
Use leaflet and freedraw from npm
2018-10-05 09:55:41 +02:00
Paul Chavard
eda3dd4215
Compile FranceConnect module with webpacker
2018-10-05 09:55:13 +02:00
Paul Chavard
9d19936f82
Move franceconnect kit to webpacker
2018-10-05 09:55:13 +02:00
Paul Chavard
ff405e1b2d
Stop using global function
2018-10-05 09:55:13 +02:00
gregoirenovel
b853402ef9
Add a blank state message in the avis tab
2018-10-05 00:01:54 +02:00
gregoirenovel
25cbd5e7af
[ Fix #2757 ] Do not show the avis form for dossiers that are terminés
2018-10-05 00:01:54 +02:00
gregoirenovel
fffbbb5d73
Extract the conditional in a partial to its caller
2018-10-05 00:01:54 +02:00
gregoirenovel
458e3e37f8
Rename .dossiers-table-empty to .blank-tab
2018-10-05 00:01:54 +02:00
gregoirenovel
db6706bd65
Remove an extra blank line
2018-10-05 00:01:54 +02:00
gregoirenovel
7fe3b43eab
Improve a comment in RNAAdapter
2018-10-04 21:03:49 +02:00
gregoirenovel
1ffd4a230b
Simplify RNAAdapter#process_params
...
Avoid catching an attribute only to remove it
a few lines later
2018-10-04 21:03:49 +02:00
gregoirenovel
b28607a3a6
Simplify an instruction in ExercicesAdapter#process_params
2018-10-04 21:03:49 +02:00
Paul Chavard
e3e83b6021
Allow link to any dossier
2018-10-04 19:53:10 +02:00
Frederic Merizen
33f29f35ab
Avoid recreating service too often
2018-10-04 18:09:39 +02:00
Frederic Merizen
eafd0e8348
Evite de cacher la whitelist trop longtemps
2018-10-04 18:09:39 +02:00
Paul Chavard
1302b68d91
Only reject api entreprise data if required fields are missing
2018-10-04 17:55:09 +02:00
gregoirenovel
36ce94195b
Remove france_connect delegation on User
2018-10-04 13:54:07 +02:00
gregoirenovel
14c8e02aca
[ Fixes #2597 ] Remove given_name and family_name delegation
2018-10-04 13:54:07 +02:00
gregoirenovel
12f0c99b5a
Remove FC fields from instructeur table customisation
2018-10-04 13:54:07 +02:00
gregoirenovel
5107b33af8
Remove FC fields from search
2018-10-04 13:54:07 +02:00
gregoirenovel
5f8e8caeb5
Stop auto copying the FC infos to the dossier identity
2018-10-04 13:54:07 +02:00
Paul Chavard
44511acfed
Do not reload page when instructeur change dossier state
...
fix #2425
2018-10-04 11:12:43 +02:00
Frederic Merizen
b36d153620
Fix missing sort columns
2018-10-03 17:09:49 +02:00
Chaïb Martinez
dc0dd8a479
Remove the details from the Publication tab
2018-10-03 16:03:43 +02:00
Chaïb Martinez
baca93dc38
Rename the Informations tab to Publication
2018-10-03 16:03:43 +02:00
Pierre de La Morinerie
7a23aaf62f
session: consistent wording between usagers and instructeurs
2018-10-03 15:10:02 +02:00
Pierre de La Morinerie
627df7a1f3
session: migrate the password pages to the new design
2018-10-03 15:10:02 +02:00
Pierre de La Morinerie
bfd106ba30
session: migrate the "token confirmation" page to the new design
2018-10-03 15:09:30 +02:00
Pierre de La Morinerie
e87264b402
stylesheets: add a devise-container class
2018-10-03 15:09:30 +02:00
gregoirenovel
c91a1cf474
Enable Style/SymbolArray
2018-10-03 12:15:48 +02:00
gregoirenovel
d9d4f6fe20
Enable Style/SymbolProc
2018-10-03 12:15:48 +02:00
gregoirenovel
7e4268db67
Enable Style/TrailingCommaInArguments
2018-10-03 12:03:21 +02:00
gregoirenovel
275bb64c1f
Enable Style/TrailingCommaInArrayLiteral
2018-10-03 12:03:21 +02:00
gregoirenovel
a171186dd8
Enable Style/TrailingCommaInHashLiteral
2018-10-03 12:03:21 +02:00
gregoirenovel
ed240cb4d3
Enable Style/UnneededInterpolation
2018-10-03 12:03:21 +02:00
gregoirenovel
6eeba14885
Enable Style/WordArray
2018-10-03 12:03:21 +02:00
gregoirenovel
d1439f8a52
Enable Style/YodaCondition
2018-10-03 12:00:17 +02:00
gregoirenovel
1f4ef0074f
Enable Style/ZeroLengthPredicate
2018-10-03 12:00:17 +02:00
Chaïb Martinez
e452fa8343
[ Fix #2432 ] Warn admins to always share a direct link to their demarche
2018-10-03 11:18:17 +02:00
Frederic Merizen
8bb08a1b8b
[ #2579 ] Validate columns on ProcedurePresentation model
2018-10-03 10:17:46 +02:00
Frederic Merizen
103f466cb8
[ Fix #2579 ] Protect get_value against method name injection
2018-10-03 10:17:46 +02:00
Frederic Merizen
1ac8840bc9
[ #2579 ] Protect against SQL injection on column and table in filtered_ids
2018-10-03 10:17:46 +02:00
Frederic Merizen
670edc3279
[ #2579 ] Sanitize order
2018-10-03 10:17:46 +02:00
Frederic Merizen
314e9354c1
[ #2579 ] Simplify sorted_ids
2018-10-03 10:17:46 +02:00
Frederic Merizen
3bb6fd2d47
[ #2579 ] Remove no-op
...
(sanitize_sql_for_order does not do anything when its argument is a string)
2018-10-03 10:17:46 +02:00
Frederic Merizen
b8f88ece5c
[ #2579 ] Fix injection SQL dans le filtrage instructeur
2018-10-03 10:17:46 +02:00
Paul Chavard
941c529b2c
Remove CGU checkbox
...
fix #2725
2018-10-03 08:59:02 +02:00
Mathieu Magnin
1dc2c30b24
Add mail templates to manager
2018-10-02 17:27:28 +02:00
Mathieu Magnin
a029aa62b1
[ Fix #2674 ] Add Services to manager
2018-10-02 16:17:17 +02:00
Pierre de La Morinerie
20f0151e8a
dossier: remove pdf.svg
2018-10-02 15:43:37 +02:00
Pierre de La Morinerie
36c1aa118d
dossier: remove RecapitulatifController
...
And add a redirection to the new URLs.
2018-10-02 15:42:29 +02:00
Pierre de La Morinerie
d476953108
dossier: remove Invites view
2018-10-02 14:40:47 +02:00
Pierre de La Morinerie
bf9f427299
dossier: remove DescriptionController
2018-10-02 14:40:47 +02:00
Pierre de La Morinerie
3392df0029
dossier: remove CommentairesController
2018-10-02 14:40:38 +02:00
gregoirenovel
553a6b53f2
Make the annotations privées submit button more visible
2018-10-02 14:18:07 +02:00
Pierre de La Morinerie
758ccff984
dossier: remove feature flag
2018-10-02 12:25:44 +02:00
Chaïb Martinez
da134c6d4b
Ajout d'une astuce dans l'ajout d'instructeur
2018-10-02 11:43:44 +02:00
gregoirenovel
cf69c28979
Fix scope for logo/notice/deliberation deletion
2018-10-02 11:03:48 +02:00
gregoirenovel
b994fa4206
Do one thing per line
2018-10-01 16:15:46 +02:00
gregoirenovel
3965709bd0
Fix a mistake in the Tour de France page
2018-10-01 15:33:19 +02:00
Pierre de La Morinerie
cd938b4c36
dropdown: refactor to make the button an actual button
2018-09-27 17:43:08 +02:00
Pierre de La Morinerie
c79c1a2636
carto: update link to dossier
2018-09-27 17:22:59 +02:00
Pierre de La Morinerie
0526551e71
templates: update link to dossier
2018-09-27 17:22:59 +02:00
Pierre de La Morinerie
40cf7ebdcb
mailers: update links to messagerie
2018-09-27 17:22:59 +02:00
Pierre de La Morinerie
5f1ce48d2e
invites: update link to dossier
2018-09-27 17:22:59 +02:00
Pierre de La Morinerie
08dfe7d13a
support: update link to messagerie
2018-09-27 17:22:59 +02:00
Paul Chavard
3c66fceba5
Replace password strength js with ujs
2018-09-27 16:00:14 +02:00
Paul Chavard
5a795ae30b
Add more information about lien demarche
2018-09-27 15:47:33 +02:00
simon lehericey
4d4dba1550
Procedure: small renaming on mean_time
2018-09-27 15:02:38 +02:00
simon lehericey
88f7e888c3
Administrateur: do not save api_token in clear text anymore
2018-09-27 10:24:56 +02:00
simon lehericey
16566b46c0
DossierController: private some methods
2018-09-27 10:24:56 +02:00
simon lehericey
912371fbd6
DossierController: use new token validation
2018-09-27 10:24:56 +02:00
simon lehericey
8dd4a1ca4e
ProcedureController: remove useless logger call
2018-09-27 10:24:56 +02:00
simon lehericey
3c95273d6f
ProcedureController: use new token validation
2018-09-27 10:24:56 +02:00
simon lehericey
0b2a98cdce
ApiController: private some methods
2018-09-27 10:24:56 +02:00
simon lehericey
f7c23bb435
ApiController: remove ensure_token_is_present
...
An admin without token answer false to admin.api_token_valid?(api_token) with api_token=*
2018-09-27 10:24:56 +02:00
simon lehericey
4a04f2e59f
ApiController: check token validity for a given admin
2018-09-27 10:24:56 +02:00
simon lehericey
d576d426f4
ApiController: remove old authenticate logic
...
The old logic cannot work anymore as we cannot `find_by api_token`
2018-09-27 10:24:56 +02:00
simon lehericey
1af789b9a8
Profile: add breadcrumb
2018-09-27 10:14:32 +02:00
simon lehericey
8c4f8347ca
Api Token: store token in an encrypted form
2018-09-27 10:14:32 +02:00
simon lehericey
1997f45d7e
Api Token: do not generate one token by default
2018-09-27 10:14:32 +02:00
simon lehericey
17285b0368
Profil: display token only once
2018-09-27 10:14:32 +02:00
simon lehericey
bd04972f65
Profile: move to new design
2018-09-27 10:14:32 +02:00
simon lehericey
f115658d55
OH !
2018-09-27 10:14:32 +02:00
Paul Chavard
f94a24d7ce
Add path field to procedure information form
2018-09-26 10:53:45 +02:00
Paul Chavard
f6a6d8f457
Fix destroy dossiers on procedure reset
2018-09-26 10:53:45 +02:00
Mathieu Magnin
7280b1f503
[ Fix #1285 ] Password strength is checked when user is typing
2018-09-26 09:51:30 +02:00
Mathieu Magnin
d1d8d9afe2
[ Fix #1285 ] Add JS to dynamically check the password strength
2018-09-26 09:51:30 +02:00
Mathieu Magnin
2507f963b1
[ Fix #1285 ] Create an endpoint to check password strength
2018-09-26 09:03:04 +02:00
Mathieu Magnin
35da5d595f
[ Fix #1285 ] Redesign the administrateurs password activation page
2018-09-26 09:03:03 +02:00
Mathieu Magnin
499021588d
[ Fix #1285 ] Password strength is ensured when saving an administrateur
2018-09-26 09:03:03 +02:00
Frederic Merizen
998754ab73
[ Fix #2258 ] Validate options for linked dropdown menus
2018-09-25 20:32:19 +02:00
Frederic Merizen
b521095010
[ #2258 ] Notify administrator of problems saving the types de champs
2018-09-25 20:31:42 +02:00
Frederic Merizen
3fea14c07d
[ #2258 ] Let dynamic type validate the type de champ
2018-09-25 20:31:34 +02:00
Frederic Merizen
695426316c
[ #2258 ] Make linked menus more robust in the face of bad configuration
2018-09-25 20:31:06 +02:00
Paul Chavard
90fb81af2b
Load OSM tiles over https
2018-09-25 17:48:29 +02:00
Chaïb Martinez
21a13b3311
Correctif mineur de texte dans le formulaire d'inscription admin
2018-09-25 16:57:41 +02:00
Frederic Merizen
40bc6208f0
[ Fix #2550 ] Also send mail notification when accepting dossier
2018-09-25 15:57:07 +02:00
Frederic Merizen
7631bde16a
[ #2550 ] Generate attestation on auto-accepted dossier
2018-09-25 15:53:57 +02:00
gregoirenovel
c92b0b163c
Add a banner about the Tour de France on the administration landing page
2018-09-25 13:43:11 +02:00
Frederic Merizen
9beaa293cd
[ #1421 ] Use delegation rather than STI for TypeDeChamp
2018-09-25 08:26:56 +02:00
Frederic Merizen
112fdb71fb
[ #2613 ] Remove dead code
2018-09-24 20:19:26 +02:00
Frederic Merizen
26ece1d144
[ Fix #2613 ] Filter by date creation entreprise
2018-09-24 20:19:26 +02:00
Frederic Merizen
7d382837d9
[ Fix #2622 ] Change filters to proper JSONB
2018-09-24 19:39:01 +02:00
Frederic Merizen
1419e9b73f
[ #2622 ] Change sort to proper JSONB
2018-09-24 19:39:01 +02:00
Frederic Merizen
68608307ad
[ #2622 ] Change displayed_fields to proper JSONB
2018-09-24 19:39:01 +02:00
gregoirenovel
5b011fef59
[ Fix #2652 ] Add the /tour-de-france page
2018-09-24 18:07:29 +02:00
Pierre de La Morinerie
682e29a211
dossier: refactor the pages permissions
...
Fixes the invites not being able to create a commentaire.
2018-09-24 17:05:27 +02:00
Pierre de La Morinerie
a5419b2f08
dossier: fix redirection to dossiers/invite
2018-09-24 17:05:27 +02:00
Pierre de La Morinerie
01599ac1e1
dossier: allow inviting users on the dossier page
2018-09-24 17:05:26 +02:00
Pierre de La Morinerie
0995c8e5ad
dossier: extract the invitation dropdown to a partial
2018-09-24 16:29:36 +02:00
gregoirenovel
f9d640d78d
[ Fix #2665 ] Fix the avis invitation email footer
2018-09-24 14:32:20 +02:00
gregoirenovel
7b3a7d2336
[ Fix #187 ] Allow an admin to delete their demarche logo
2018-09-24 13:29:35 +02:00
gregoirenovel
94378e3663
[ Fix #2332 ] Allow the notice deletion
2018-09-24 12:25:10 +02:00
gregoirenovel
89deb93e1d
Remove marianne_small.png
2018-09-24 12:16:58 +02:00
gregoirenovel
5db408efdb
[ Fix #1511 ] Remove the now obsolete DS logo
2018-09-24 12:16:58 +02:00
gregoirenovel
0b0c668888
[ Fix #2648 ] Add more details about the retention time out of DS
2018-09-24 12:09:54 +02:00
gregoirenovel
535f9004bf
Admins can delete the attestation template's logo
2018-09-24 10:15:22 +02:00
gregoirenovel
d649e29bb0
[ Fix #1979 ] Admins can delete the attestation template's signature
2018-09-24 10:15:02 +02:00
gregoirenovel
ded9c0eaf6
Add a separator between the explanation and form
2018-09-23 21:52:13 +02:00
gregoirenovel
086bf8e203
Improve the spacing on the new demande page
2018-09-23 21:45:39 +02:00
gregoirenovel
477faf06d7
Add a title to the new demande page
2018-09-23 18:17:16 +02:00
gregoirenovel
ed0e58d179
Add a footer to the new demande page
2018-09-23 18:16:53 +02:00
gregoirenovel
09196d12c3
Open the notice in a new tab
2018-09-21 15:57:04 +02:00
gregoirenovel
e4eb55a37f
Revert "[ Fix #2623 ] Ensure numbers are integers"
...
This reverts commit 68789ff43b
.
2018-09-21 15:15:11 +02:00
gregoirenovel
2585485370
Move the dossier-edit class directly to the _edit.html.haml template
...
So that when the partial included in
modifier.html.haml can also benefit from its
styling rules
2018-09-21 10:35:20 +02:00
gregoirenovel
7b7a939312
[ Fix #2642 ] Show the filename in the dossier print view
2018-09-21 10:26:10 +02:00
gregoirenovel
68789ff43b
[ Fix #2623 ] Ensure numbers are integers
2018-09-21 08:12:52 +02:00
Frederic Merizen
ac82a72dcc
[ #1946 ] Monthly expiring dossiers summary mail
2018-09-20 17:44:31 +02:00
Frederic Merizen
43d8db88d9
[ #1946 ] Check if a dossier’s retention period has expired
2018-09-20 17:44:31 +02:00
Frederic Merizen
b672377f5b
[ #1946 ] Query dossiers by remaining retention time
2018-09-20 17:44:31 +02:00
gregoirenovel
0c9628c180
Fix some files according the the .editorconfig rules
2018-09-20 16:23:09 +02:00
gregoirenovel
66fcdda59b
Extract some code in a helper
...
It makes the code clearer and will avoid some
linting issues
2018-09-20 16:23:09 +02:00
Paul Chavard
905a715e16
Fix dossier link
2018-09-20 16:05:40 +02:00
gregoirenovel
b317b49b3d
Confirmation → activation
2018-09-20 10:43:07 +02:00
gregoirenovel
f86cc835f8
courriel → email / adresse email
2018-09-20 10:43:07 +02:00
gregoirenovel
acaf7ff5a7
Adresse électronique → adresse email
2018-09-20 10:43:07 +02:00
Paul Chavard
539f15af92
Fix new lines in confirm dialogs
2018-09-19 14:45:10 +02:00
Pierre de La Morinerie
e5f4056fe2
invite: fix prefilling the invited user email
2018-09-19 12:41:09 +02:00
Pierre de La Morinerie
1a6a643dc9
invite: refactor the generation of the invitation URL
2018-09-19 12:41:09 +02:00
Pierre de La Morinerie
bc55afba51
invite: clarify logic of sign-up redirection
2018-09-19 12:41:09 +02:00
gregoirenovel
8ea021fb69
Factorize code in a method
2018-09-19 12:31:59 +02:00
gregoirenovel
6b98c36dad
Add Dossier#mean_traitement_time for the upcoming page de garde
2018-09-19 12:31:59 +02:00
gregoirenovel
f3a257d81d
Show the mean verification time in the Résumé tab
2018-09-19 12:31:59 +02:00
gregoirenovel
d55c9dff4d
Show the mean instruction time in the Résumé tab
2018-09-19 12:31:59 +02:00
Pierre de La Morinerie
082ef92a99
invite: move invites link to the after_confirmation
callback
...
Refactored from 6a69d958da
The `after_confirmation_path_for` isn't really made to be a callbback.
For instance, it is not executed during tests.
Moving the invitations linking to a proper documented callback allows
the linking to work in a testing environment, when invoking `user.confirm`.
2018-09-19 12:08:28 +02:00