Commit graph

3470 commits

Author SHA1 Message Date
gregoirenovel
37c0552c64 Add titles 2018-09-05 11:35:03 +02:00
gregoirenovel
6b88968889 Formulaire → demande, when not editable 2018-09-05 11:07:11 +02:00
gregoirenovel
b9a32633bb Rename a file with a more explicit filename 2018-09-05 10:09:59 +02:00
gregoirenovel
81e94ca631 Improve _status.html.haml 2018-09-05 10:09:59 +02:00
Pierre de La Morinerie
750e1e0c83 gestionnaire: move commentaire creation into a service 2018-09-04 18:52:43 +02:00
gregoirenovel
b2dc502ed5 Use an env var for Carrierwave's cache_dir 2018-09-04 16:07:59 +02:00
gregoirenovel
d05209d28f Make the stats code more robust to empty databases 2018-09-03 17:35:14 +02:00
gregoirenovel
df742421a8 Remove an env var 2018-09-03 16:13:38 +02:00
gregoirenovel
e927f56e0d Use a proper HAML comment 2018-09-03 11:41:25 +02:00
gregoirenovel
bdb961f280 Rename support-navigator-banner to outdated-browser-banner 2018-09-03 11:41:03 +02:00
gregoirenovel
1b545123fa Improve the outdated browser support banner style
- In the new design, it is now at the top of the
  page
- In the new design, it no longer covers up the UI
- In the new design, the text is now left-aligned
  which makes it easier to read
- In the new design, its height has been reduced
  which makes it less annoying
2018-09-03 11:35:08 +02:00
gregoirenovel
75ee41b7fa [Fix #2494] Improve deletion warning text 2018-08-31 15:41:51 +02:00
Paul Chavard
72dded2a5a Fix safari bug
Fix #2452
2018-08-31 11:58:33 +01:00
gregoirenovel
66af573ca4 Add a warning in the attachements part of the form 2018-08-31 00:10:16 +02:00
Frederic Merizen
559d080ca6 [#1946] Show data retention time in footer 2018-08-30 18:03:01 +02:00
Paul Chavard
5d5a356ade Cleanup contact_link helper 2018-08-30 15:12:50 +01:00
Paul Chavard
0c582197da Do not send messages to brouillon dossier 2018-08-30 15:12:50 +01:00
Paul Chavard
854bc62caa Fix class name 2018-08-30 15:12:50 +01:00
Paul Chavard
ea5248dde1 Flatten tags list, cast to array and remove blank elements 2018-08-30 15:12:50 +01:00
Paul Chavard
b60805a54c Use mailto in error message 2018-08-30 15:12:50 +01:00
Paul Chavard
441e123e8a Do not lose form content on errors 2018-08-30 15:12:50 +01:00
Paul Chavard
7ac4dc355f Add default dossier_id to contact form on dossier pages 2018-08-30 15:12:50 +01:00
gregoirenovel
6a33c30812 Rename the last “Gestionnaire” occurence in the UI to “Instructeur” 2018-08-30 14:42:09 +02:00
gregoirenovel
c015365057 Fix case typos 2018-08-30 14:23:45 +02:00
Frederic Merizen
7326065590 [fix #2486] Include all needed attributes on downloadable_sorted
to avoid N+1 select
2018-08-30 14:13:32 +02:00
Frederic Merizen
9403d4c042 [#2486] followers_gestionnaires should not be a method
To help activerecord caching
2018-08-30 14:13:32 +02:00
Frederic Merizen
37c45f0d29 [#2486] Always order champs
to help activerecord cache the champs collection
2018-08-30 14:13:32 +02:00
gregoirenovel
04c6a653da Unify the CSS filenames’ case 2018-08-30 13:16:14 +02:00
gregoirenovel
89af9c2b36 Remove extra blank lines 2018-08-30 13:16:14 +02:00
gregoirenovel
e60aa0c37b Use scopes when possible 2018-08-30 13:16:14 +02:00
gregoirenovel
47962ef795 Simplify route_authorization 2018-08-30 13:16:14 +02:00
gregoirenovel
bf9f3b40df Remove useless .to_s 2018-08-30 13:16:14 +02:00
gregoirenovel
de48dab031 Alignment 2018-08-30 13:16:14 +02:00
gregoirenovel
15d1b01a90 Code simplification 2018-08-30 13:16:14 +02:00
gregoirenovel
3662b82039 accompagnateur → instructeur 2018-08-29 23:09:08 +02:00
Paul Chavard
5f12ea43a7 Add helpscout webhook 2018-08-29 21:41:14 +01:00
gregoirenovel
4b071ecf06 Use enum to the fullest with Dossier.states 2018-08-29 17:31:08 +02:00
gregoirenovel
2d3b553e4d Use enum to the fullest with TypeDeChamp.type_champs 2018-08-29 17:31:08 +02:00
gregoirenovel
16a719922b Use enum to the fullest with User.loged_in_with_france_connects 2018-08-29 17:31:08 +02:00
gregoirenovel
606b56033a Use enum to the fullest with VirusScan.statuses 2018-08-29 17:31:08 +02:00
Paul Chavard
509613afe6 Use contact_link helper instead of mailto 2018-08-29 16:08:01 +01:00
Paul Chavard
a5bc8a0b09 Add contact_link helper 2018-08-29 16:08:01 +01:00
Paul Chavard
f5579aa14b Add type param to support form 2018-08-29 16:08:01 +01:00
gregoirenovel
0ac160c824 Remove the now useless stats API 2018-08-29 14:54:49 +02:00
gregoirenovel
85105ea156 Add some space below the title in big number cards 2018-08-29 14:54:49 +02:00
gregoirenovel
00610991b7 [Fixes #2480] Add 30-days evolution stats to the stats page 2018-08-29 14:54:49 +02:00
Paul Chavard
bad107ffae Add contact form 2018-08-29 10:44:12 +01:00
Paul Chavard
41815cfb1c Add logged_in? helper 2018-08-29 10:43:47 +01:00
Paul Chavard
6453b53a41 Add helpscout API adapter 2018-08-29 10:43:00 +01:00
gregoirenovel
6b1ab9b552 Remove a now useless facade 2018-08-28 15:38:39 +02:00
gregoirenovel
cccad7dbdf Remove a now useless method 2018-08-28 15:19:54 +02:00
gregoirenovel
19789b6848 Remove the stats part of the procedure info page for admins
- the numbers are wrong (:termine state does not
  exist)
- the chart does not work
2018-08-28 15:19:31 +02:00
Paul Chavard
b8ef5d823f Fix modal close action 2018-08-28 12:18:43 +01:00
Paul Chavard
3d506a8cdc Fix autocomplete 2018-08-28 11:04:44 +01:00
gregoirenovel
9284afc649 Use a constant for the API Entreprise URL 2018-08-28 10:44:16 +02:00
gregoirenovel
66c5f080cc Add AR validation for Feedback rating 2018-08-28 10:36:36 +02:00
gregoirenovel
9f3650b12f Remove 2 months old call for suggestions 2018-08-28 10:11:09 +02:00
gregoirenovel
4c7f9af73d Order the legend in the same order as the enum 2018-08-27 18:18:26 +02:00
gregoirenovel
b535f7ce3b Fix the colors in the satisfaction graph
I forgot to change it after I switched to an enum
in the previous PR and changed the values order
2018-08-27 18:18:07 +02:00
gregoirenovel
577496cb06 Fix a typo 2018-08-27 17:58:53 +02:00
gregoirenovel
18624ff872 Update the stats code to use ratings instead of marks 2018-08-27 17:12:01 +02:00
gregoirenovel
3ba4ce0d37 Create feedbacks with ratings instead of marks 2018-08-27 17:12:01 +02:00
gregoirenovel
4103861f90 Add the rating column to feedbacks 2018-08-27 17:03:11 +02:00
gregoirenovel
c81206f4d1 Scroll to top after having given feedback 2018-08-27 14:16:20 +02:00
gregoirenovel
62878f9c5a Encourage users that give us feedback to write to us 2018-08-27 14:16:20 +02:00
gregoirenovel
3d7b239f2b Improve the feedback form question 2018-08-27 14:16:20 +02:00
gregoirenovel
98f70cc815 Allow a user to rate the service each month 2018-08-27 14:16:20 +02:00
gregoirenovel
a700fc16cf Remove a now useless GA call 2018-08-27 14:09:43 +02:00
gregoirenovel
047d022c8a Add a CTA at the bottom of the admin landing page 2018-08-27 14:09:43 +02:00
gregoirenovel
83e081426c Redirect admins requests to the admin page after the form submission 2018-08-27 14:09:43 +02:00
gregoirenovel
100974ff9a Do not open the admin account form in a new tab 2018-08-27 14:09:43 +02:00
gregoirenovel
40da6ccf40 Use a blue button for the admin CTA 2018-08-27 14:09:43 +02:00
gregoirenovel
d240be8948 Fix the focus state of .cta-panel-button-black 2018-08-27 14:09:43 +02:00
gregoirenovel
df6d9151b8 Factorize code in a mixin
In this file we factorise with a mixing, not
several classes
2018-08-27 14:09:43 +02:00
gregoirenovel
1578c3bca6 Stop having several class that do the exact same things 2018-08-27 14:09:43 +02:00
gregoirenovel
b158a92493 Add a graph showing the user satisfaction 2018-08-27 14:00:34 +02:00
gregoirenovel
f381d45d1a Add a chart showing the dossiers state repartition 2018-08-27 14:00:34 +02:00
lucien mollard
9292e243ef Add a button to download the stats in CSV 2018-08-27 14:00:34 +02:00
gregoirenovel
23aab2d044 Use a period at the end of a sentence 2018-08-27 09:24:26 +02:00
Paul Chavard
9abb3c7a5a [ENV] Pipedrive key config 2018-08-23 15:55:32 +02:00
Paul Chavard
14f4b16fa4 [ENV] Signing key config
# Conflicts:
#	config/secrets.yml
2018-08-23 15:55:32 +02:00
Paul Chavard
c79827d551 [ENV] Configure default_url_options 2018-08-23 15:55:32 +02:00
Paul Chavard
296e3a9b09 [ENV] Add fog config 2018-08-23 15:55:32 +02:00
Mathieu Magnin
db8e750f1a [ENV] Configure Api Entreprise token 2018-08-23 15:55:32 +02:00
Mathieu Magnin
d37958d1ae [ENV] Basic auth config 2018-08-23 15:55:32 +02:00
simon lehericey
d9a9677d1d [fix #2397] Manager: update crm conf 2018-08-23 12:12:39 +02:00
simon lehericey
ee43650c32 Demande: add nb_of_procedure, deadline and nb_of_dossier fields 2018-08-23 12:12:39 +02:00
Frederic Merizen
cef0eafb1a [#2179] Tolerate spurious spaces around search terms 2018-08-23 11:57:06 +02:00
Frederic Merizen
1134877d59 [#2179] Remove newly dead code 2018-08-23 11:57:06 +02:00
Frederic Merizen
d681b1116f [Fix #2179] Use new full text search 2018-08-23 11:57:06 +02:00
Frederic Merizen
8fc359c54d [#2179] Simplify matching_dossiers_for_gestionnaire 2018-08-23 11:57:06 +02:00
Frederic Merizen
8744e9b83d [#2179] Simplify dossier_by_exact_id_for_gestionnaire 2018-08-23 11:57:06 +02:00
Frederic Merizen
20b886fb85 [#2179] Simplify dossiers_by_id 2018-08-23 11:57:06 +02:00
Frederic Merizen
a42c4ade4c [#2179] Simplify id_compatible? 2018-08-23 11:57:06 +02:00
Frederic Merizen
b3cb06b7e5 [#2179] Extract dossier_by_full_text_for_gestionnaire method 2018-08-23 11:57:06 +02:00
Frederic Merizen
d734f978a3 [#2179] Extract dossiers_by_exact_id_for_gestionnaire method 2018-08-23 11:57:06 +02:00
Frederic Merizen
a72388bb37 [#2179] Don't depend on current_gestionnaire in DossierSearchService 2018-08-23 11:57:06 +02:00
Frederic Merizen
57fd59b8d5 [#2179] Move code to DossierSearchService 2018-08-23 11:57:06 +02:00
Frederic Merizen
650a740642 [#2179] Remove dead code 2018-08-23 11:57:06 +02:00
Paul Chavard
1af4b2aa6e Fix transfer modal not opening 2018-08-23 11:22:03 +02:00
gregoirenovel
a86e3a3156 Don’t change a button’s text when disabled after click 2018-08-23 10:59:11 +02:00
Frederic Merizen
3b2919a326 [#2179] Use new updated value for search terms
Rather than old in-database value
2018-08-23 10:34:25 +02:00
Frederic Merizen
333f4e8824 [#2179] update champ and individual association with default
That way, they are safe to read in update_search_terms, and no
reload is needed later
2018-08-23 10:34:25 +02:00
Paul Chavard
e1f1827320 Replace typeahead with simpler autocomplete 2018-08-22 17:17:33 +02:00
Paul Chavard
2500cd516b Use delegation in SIRET champ code 2018-08-22 16:42:55 +02:00
Paul Chavard
e8e62b0e63 Remove unused modules from old design 2018-08-22 16:42:46 +02:00
Paul Chavard
a17fb60aea Include select2 from the file where it is used 2018-08-22 16:42:29 +02:00
Paul Chavard
1109a4500f Add csrf token protection to jQuery initiated requests 2018-08-22 14:13:10 +02:00
gregoirenovel
1fb3f516bf Add a new color variable 2018-08-22 11:23:06 +02:00
gregoirenovel
e6442436ba Remove a space before a final period 2018-08-22 11:23:06 +02:00
gregoirenovel
af56e73572 Open the browser-update.org link in a new tab 2018-08-22 11:21:00 +02:00
gregoirenovel
0b7060d48b Improve the outdated browser message 2018-08-22 11:21:00 +02:00
gregoirenovel
e0bb0ac7b6 Use the proper product name 2018-08-21 18:05:09 +02:00
Paul Chavard
f4f3a302b9 Do not rely on rails env to detect staging 2018-08-21 15:43:06 +02:00
Pierre de La Morinerie
2e762e268e views: add tab_item and active_tab_item helpers 2018-08-16 16:36:37 +02:00
Paul Chavard
7724a48cee Fix js error from calling inexistent function 2018-08-16 11:59:18 +02:00
Paul Chavard
13470e9781 Remove unused JavaScript 2018-08-14 17:03:00 +02:00
Paul Chavard
097b06e314 Fix test dossier page 2018-08-14 16:47:31 +02:00
Paul Chavard
b57c22cafe Refactor publish dialog 2018-08-14 16:39:11 +02:00
Paul Chavard
aec02a9b8a Remove references to test_procedure 2018-08-14 16:30:43 +02:00
lucien mollard
0f790c4b07 separates the homepage into two parts, users/administrations 2018-08-14 16:12:51 +02:00
Pierre de La Morinerie
af95e56b50 dossier: add a page with the form 2018-08-14 15:25:27 +02:00
Pierre de La Morinerie
86539413ee gestionnaire: move dossier partials to a shared location 2018-08-14 15:06:44 +02:00
Pierre de La Morinerie
4714fc64e7 dossier: make "show" a standalone page 2018-08-14 15:06:44 +02:00
Pierre de La Morinerie
efd29ab174 dossier: fix the width of the status explanation 2018-08-14 15:06:44 +02:00
Pierre de La Morinerie
40d0986a82 javascript: transpile activestorage files (instead of copying them) 2018-08-14 11:40:33 +02:00
Paul Chavard
7237ff80cc Drop procedure dossiers when updating brouillon 2018-08-14 11:21:05 +02:00
Paul Chavard
3be678dbe5 Add publish_draft feature flag 2018-08-13 19:27:28 +02:00
Paul Chavard
9de3e6e74b Make info extraction method more safe 2018-08-13 18:32:00 +02:00
Paul Chavard
008d84f107 Explicitly import jQuery 2018-08-13 15:17:13 +02:00
Pierre de La Morinerie
e68c8a7685 feedback: add spacing between the icons 2018-08-13 14:56:36 +02:00
Pierre de La Morinerie
6da2e54d4c feedback: move the icons under the list 2018-08-13 14:56:35 +02:00
Pierre de La Morinerie
8927af7a33 feedback: don't display feedback if user has no dossiers 2018-08-13 14:56:07 +02:00
Paul Chavard
a6a4790a35 Replace logstasher with lograge 2018-08-13 12:44:00 +02:00
Paul Chavard
541df2d961 Add support for in browser sentry 2018-08-13 11:44:32 +02:00
Pierre de La Morinerie
1b7950058d dossier: add details résumé 2018-08-13 11:32:27 +02:00
Pierre de La Morinerie
c7ba3cbd59 dossier: improve header layout on small screens
- A long procedure title can now overflow under the status label
- Better icon placement
2018-08-13 11:32:27 +02:00
Pierre de La Morinerie
18d13d76d8 dossier: add details header 2018-08-13 11:32:27 +02:00
Pierre de La Morinerie
97960369db stylesheets: rename dossier-edit.scss
Underscore all the things
2018-08-13 11:32:27 +02:00
Pierre de La Morinerie
44e3d98cb9 stylesheets: rename procedures_show.scss 2018-08-13 11:32:27 +02:00
lucien mollard
3f6671548d dossier motivation obligatory exept for acceptation 2018-08-13 11:24:29 +02:00
Paul Chavard
ea68c75361 Use delegated events instead of local handlers 2018-08-13 08:34:10 +02:00
Paul Chavard
8bf5dedd80 Ruby helpers for js.erb responses 2018-08-13 08:34:10 +02:00
simon lehericey
b33f11115c [fix #2358] Checkbox: serialize in attestation by oui or no 2018-08-10 16:25:34 +02:00
Paul Chavard
e7e616ae5b Fix transpiling issues in IE 2018-08-09 21:05:07 +02:00
lucien mollard
9ecc5f7928 add a user satisfaction form' 2018-08-09 11:41:26 +02:00
Pierre de La Morinerie
1c02eca1be dossier: disable buttons without changing the label 2018-08-08 16:06:12 +02:00
Pierre de La Morinerie
5e01be0f15 mailer: add direct link to dossier in creation email
Fix #2341
2018-08-08 15:24:17 +02:00
simon lehericey
9c023095da [fix #2359] Fix link in avis mail for gestionnaire 2018-08-08 13:19:54 +02:00
simon lehericey
c4dfe34c4a AvisController: clean unused variable 2018-08-08 13:19:54 +02:00
Paul Chavard
8625c9d0bc Make right click work on procedure list links 2018-08-08 12:19:19 +02:00
Pierre de La Morinerie
77eb89cb0f dossier: add a stub page for the new dossier details 2018-08-08 11:49:15 +02:00
Pierre de La Morinerie
0ac28da207 dossier: make Dossiers#show a stub redirecting to the correct location 2018-08-08 11:49:15 +02:00
Paul Chavard
8b79c32a55 Do not rely on javascript for form submits without direct upload 2018-08-07 16:58:49 +02:00
Paul Chavard
a0979b1d57 Fix logstasher custom fields 2018-08-07 16:26:44 +02:00
Pierre de La Morinerie
f55f949b58 admin: disable fade on publish modal
It makes Capybara tests brittle.
2018-08-07 14:28:52 +02:00
Paul Chavard
c91abe73c5 Remove old user dossier form 2018-08-07 14:13:27 +02:00
Pierre de La Morinerie
c8409ecb89 dossier: remove route hack for show 2018-08-07 12:15:38 +02:00
Pierre de La Morinerie
4f9384d6bd webpack: add babel-polyfill at runtime
This includes the polyfills for features that need to be emulated at
runtime (see https://github.com/babel/babel-preset-env/issues/203#issuecomment-285820866)

It fixes a "Symbol not defined" error when using `for… in` loops on
Internet Explorer 11. This caused the dossiers not to be submitted.

Fix #2300
2018-08-06 16:30:36 +02:00
Pierre de La Morinerie
b4f8c69d89 browsers: add comment to minimum browsers version rules 2018-08-06 15:13:06 +02:00
Pierre de La Morinerie
a9ddadfdd2 browsers: remove IE-specific browser detection
- It doesn't work in IE >=10 (as support for conditionnal comments was
  removed)
- It is redundant with our all-browsers detection anyway
2018-08-06 15:13:06 +02:00
Pierre de La Morinerie
a9c9c491a2 browsers: fix outdated browsers banner styling when using the new design 2018-08-06 15:13:06 +02:00
Pierre de La Morinerie
c73da9d299 browsers: make outdated browser message more actionnable 2018-08-06 15:00:12 +02:00
Paul Chavard
46e75ac8ef Only notify on dossier supression if dossier is en_construction 2018-08-02 17:07:24 +02:00
Pierre de La Morinerie
1ca2ca9121 invite: support remote forms
This allows to keep the draft content when inviting a new user.
2018-08-01 17:41:12 +02:00
Pierre de La Morinerie
1cac0b80af invite: add button for invite someone to collaborate on a draft 2018-08-01 17:41:12 +02:00
Pierre de La Morinerie
9541e781bb invite: rename 'email' to 'invite_email' 2018-08-01 17:41:12 +02:00
Pierre de La Morinerie
030562a32f design: add styling for disabled buttons 2018-08-01 17:41:12 +02:00
Pierre de La Morinerie
0fa18c70bf form: extract the form header to its own partial 2018-08-01 17:41:11 +02:00
Pierre de La Morinerie
dee4acd802 dossier_facade: remplace followers by an equivalent implementation 2018-08-01 17:41:11 +02:00
Paul Chavard
78a9365fe1 Package mailjet widget with webpack 2018-08-01 16:54:39 +02:00
gregoirenovel
6d9648e88c [Fix #2214] Don’t suggest using the messagerie when it is not available 2018-08-01 15:36:52 +02:00
Pierre de La Morinerie
01cdd910df invite: don't display email of following accompagnateurs
We don't want the individual contact of Accompagnateurs to be displayed, for privacy reasons.
2018-08-01 13:48:58 +02:00
Paul Chavard
872e07b5e6 Fix global jQuery usage 2018-08-01 11:55:35 +02:00
Pierre de La Morinerie
b7382375e2 specs: fix disabling jQuery animations during tests 2018-08-01 11:46:04 +02:00
Paul Chavard
e358e72867 Do not display gestionnaire emails in the messaging interface
fix #2302
2018-07-31 15:27:36 +02:00
Pierre de La Morinerie
5011797e7a siret: fix spinner position 2018-07-30 17:49:00 +02:00
Pierre de La Morinerie
a399cef144 siret: make etablissement styled and visible 2018-07-30 17:49:00 +02:00
Pierre de La Morinerie
fcc7ffabcd siret: make validation error message red 2018-07-30 17:49:00 +02:00
Pierre de La Morinerie
728a92a0b3 siret: improve error messages 2018-07-30 17:49:00 +02:00
Pierre de La Morinerie
55847f011c siret: fix validity being broken after clearing the field 2018-07-30 14:29:44 +02:00
Pierre de La Morinerie
e1088d7952 dossier: fix layout of form action buttons on IE11
Fix #2311
2018-07-30 11:51:35 +02:00
Frederic Merizen
0e639030f9 [#2179] Generate denormalized search terms value for Dossier 2018-07-27 11:11:52 +02:00
Mathieu Magnin
84937e3d43 Fix Sentry error 2755 2018-07-26 17:38:19 +02:00
Paul Chavard
bf7c023380 Add webpacker and use it for new_design 2018-07-25 15:14:06 +02:00
Mathieu Magnin
e66d56be43 Fix text align on dropdown button 2018-07-25 14:37:15 +02:00
gregoirenovel
abbd4e3c69 [Fix #2277] Do not crash when creating a service with invalid data 2018-07-25 14:22:44 +02:00
Pierre de La Morinerie
c3de45307d dossiers: rename "Éditer" to "Modifier"
"Éditer" is a anglicism.
2018-07-25 14:06:09 +02:00
Pierre de La Morinerie
13182ad291 dossier: send deletion email also to the following gestionnaires 2018-07-25 13:49:55 +02:00
Mathieu Magnin
9788dcc931
Merge branch 'dev' into delete-brouillon 2018-07-25 12:25:48 +02:00
Pierre de La Morinerie
547c36243d dossier: add responsive layout for action buttons 2018-07-24 18:31:10 +02:00
Pierre de La Morinerie
0f1811dd4e dossier: add an button to delete a brouillon 2018-07-24 18:31:10 +02:00
Pierre de La Morinerie
768537fedc buttons: center text also on link styled as buttons 2018-07-24 18:25:37 +02:00
Pierre de La Morinerie
07be63b48e patron: add missing button styles 2018-07-24 17:43:28 +02:00
Pierre de La Morinerie
e613815ac6 mailer: remove last mention of TPS 2018-07-24 16:58:03 +02:00
Pierre de La Morinerie
6e5840e838 manager: allow searching for deleted dossier
Deleted dossiers don't appear in the unfiltered list though. You have to
know its id to find it.
2018-07-24 11:06:18 +02:00
Pierre de La Morinerie
f6c83cae1f manager: make resources searchable by id 2018-07-24 11:01:02 +02:00
Pierre de La Morinerie
5c6fa992f8 manager: fix exception when searching for a dossier
Text summary is a generated accessor, and not a true DB column – so
we should tell Administrate not to use it in a search query.
2018-07-24 11:01:02 +02:00
Pierre de La Morinerie
099fac69c0 manager: fix typo 2018-07-24 11:01:01 +02:00
Mathieu Magnin
20790569a9 fix-input-file-margin 2018-07-23 14:52:14 +02:00
gregoirenovel
ab2181ea13 [Fix #2280] Correct a typo 2018-07-20 10:23:34 +02:00
gregoirenovel
eb95fce194 [Fix #2272] Add a SIRET field to the Service form 2018-07-19 15:43:13 +02:00
gregoirenovel
81ac3d7c6b Bump development gems
- brakeman (4.3.0 → 4.3.1)
- rubocop (0.56.0 → 0.58.1)
2018-07-17 17:33:28 +02:00
gregoirenovel
ed436bfe77 [Fix #2260] Add a search field in the usager UI 2018-07-17 17:26:42 +02:00
gregoirenovel
4d41381155 Move the attestation route inside the member block 2018-07-17 17:26:42 +02:00
Paul Chavard
04821a6875 Disable Champ SIRET autocomplete for previews 2018-07-17 16:50:55 +02:00
Pierre de La Morinerie
7ca476fc61 manager: add confirmation email actions for the User
- Allow to re-send the confirmation email
- Allow to confirm the email address manually
2018-07-17 12:10:56 +02:00
Pierre de La Morinerie
5c9676678d manager: show if a user email address is confirmed or not 2018-07-17 11:45:30 +02:00
Pierre de La Morinerie
40aae2e20b mailers: mention the procedure when notifying about dossier deletion 2018-07-16 15:49:34 +02:00
Pierre de La Morinerie
540c744912 apercu: add quotes around the procedure name 2018-07-16 14:53:45 +02:00
Pierre de La Morinerie
a3442674f9 apercu: fix typo 2018-07-16 14:53:45 +02:00
simon lehericey
106263f5e7 [fix #2247] linked drop down list: fix js scope pb 2018-07-13 13:14:10 +02:00
simon lehericey
0e8a1f1678 [fix #2241] GestionnaireDossierController: allow linked drop down value in update 2018-07-12 14:11:42 +02:00
Mathieu Magnin
e748b6883f Fix comportement chelou in LinkedDropDownListChamp 2018-07-12 12:31:54 +02:00
Pierre de La Morinerie
da0a505cbc form: add folder icon next to the procedure title 2018-07-11 17:28:20 +02:00
Pierre de La Morinerie
0282994990 form: move the procedure notice link to a button 2018-07-11 17:13:18 +02:00
Pierre de La Morinerie
2ef6f46ef4 style: add the styling for hr elements inside forms 2018-07-11 17:13:15 +02:00
Pierre de La Morinerie
97a92e279b assets: add the info icon 2018-07-11 17:13:10 +02:00
Pierre de La Morinerie
6d26024aa1 patron: add missing icons 2018-07-11 17:12:35 +02:00
Mathieu Magnin
d113ca6ae4 Revert "Temporary fix to allow users to download files with extensions"
This reverts commit 1fb1d92fe7.
2018-07-11 15:46:22 +02:00
Pierre de La Morinerie
e5de401107 form: make the sample asterisk also red 2018-07-09 18:34:33 +02:00
Pierre de La Morinerie
c4bf47398e form: add missing spacing after explanations 2018-07-09 18:18:42 +02:00
Pierre de La Morinerie
adab8e44ff form: add spacing between paragraphs 2018-07-09 18:16:59 +02:00
Mathieu Magnin
1fb1d92fe7 Temporary fix to allow users to download files with extensions 2018-07-09 12:25:25 +02:00
Pierre de La Morinerie
d2eb597380 admin: fix Procédures pluralization and accent 2018-07-09 11:40:13 +02:00
gregoirenovel
bd13be1e89 Improve the landing page backgrounds 2018-07-06 13:49:53 +02:00
gregoirenovel
43836d05ad Small improvements to the landing page titles 2018-07-06 13:25:47 +02:00
gregoirenovel
d6c66f64bd Move the features panel down the landing page 2018-07-05 12:01:28 +02:00
gregoirenovel
b9efd846a1 Invert two buttons 2018-07-05 12:00:00 +02:00
gregoirenovel
e77a693f5a Clarify a button 2018-07-05 11:58:27 +02:00
gregoirenovel
1525adab8b Clarify some titles 2018-07-05 11:57:56 +02:00
gregoirenovel
bae4cd4f59 Fix a typo 2018-07-04 17:42:20 +02:00
Pierre de La Morinerie
f5d3adba5e dossiers: remove unused dossiers list code
This code is unused since the user dossiers list uses the new UI.
2018-07-04 12:23:49 +02:00
Pierre de La Morinerie
d7b54abd37 auth: add vertical spacing to the procedure description
Fix #2174
2018-07-04 12:14:50 +02:00
Pierre de La Morinerie
0b474a5b32 admin: explain purpose of the /admin/gestionnaires page 2018-07-04 12:11:00 +02:00
Pierre de La Morinerie
4ab5d30044 dossiers: move the index method to the top of the controller 2018-07-04 11:49:24 +02:00
Pierre de La Morinerie
f10205e3f5 dossiers: improve empty state wording 2018-07-04 11:43:39 +02:00
Pierre de La Morinerie
33c743ab77 helper: simplify DossierHelper.url_for_dossier
The argument is never an Invite
2018-07-04 11:43:39 +02:00
Pierre de La Morinerie
592331e9ac procedures: fix double N+1 requests in new_from_existing 2018-07-03 23:55:55 +02:00
Pierre de La Morinerie
b0a9e49549 procedures: group new_from_existing list by organization
As procedures are not grouped by Service (which are unique to an
administrator) but by organization, this allows procedures with the same
organization name to be displayed together.
2018-07-03 23:43:42 +02:00
Pierre de La Morinerie
56987e5147 procedures: add tests for new_from_existing 2018-07-03 23:43:41 +02:00
Mathieu Magnin
d2812a4a54 Add a confirm before changing dossier state in manager 2018-07-03 13:55:10 +02:00
Pierre de La Morinerie
d1301762d4 pipedrive: fix deals when no deals are returned 2018-07-02 17:07:24 +02:00
LeSim
8b7b9b438c
Merge branch 'dev' into change_dossier_state_from_manager 2018-07-02 16:16:40 +02:00
simon lehericey
73a14c7f09 [fix #2185] Messagerie: best commit ever 2018-07-02 16:11:20 +02:00
simon lehericey
49836564ce Manager: can change dossier state to instruction 2018-07-02 15:57:39 +02:00
Pierre de La Morinerie
b4b533f0c5 dossiers: change all links to use the new user dossiers list 2018-07-02 13:58:58 +02:00
Pierre de La Morinerie
148dc164f7 dossiers: generate the correct link to see the dossier details 2018-07-02 13:58:58 +02:00
Pierre de La Morinerie
07f3effb02 dossiers: add details to the empty state 2018-07-02 13:58:58 +02:00
Pierre de La Morinerie
f2ee88b278 dossiers: put last updated dossiers first 2018-07-02 13:58:58 +02:00
Pierre de La Morinerie
f781399309 form: validate forms only when submitting dossier, not on draft saves 2018-07-02 12:30:27 +02:00
Paul Chavard
2a8dbf521d form: fix action sent after navigating away and back again 2018-07-02 12:30:27 +02:00
Mathieu Magnin
34663db158 Translate devise view 2018-07-02 11:26:36 +02:00
Mathieu Magnin
47bc3a7ea3 Remove unused EN devise view 2018-07-02 11:26:36 +02:00
Mathieu Magnin
e694e7f9b9 [Fix #2145] When procedure is archived, usager should see a message explaining dossier submission is closed 2018-07-02 11:10:34 +02:00
Mathieu Magnin
9afbd16bbf [Fix #2145] When procedure is archived, usager should not be able to submit a dossier 2018-07-02 11:10:33 +02:00
Frederic Merizen
b003fe9221 [Fix #2176] Allow setting page size in API 2018-06-29 17:34:35 +02:00
Frederic Merizen
785c9cb9b9 [#1421] API export for linked drop down menus 2018-06-28 20:06:32 +02:00
Frederic Merizen
5192929730 [#1421] Format linked dropdown menus in attestations and mails 2018-06-28 20:06:32 +02:00
Frederic Merizen
b326cb9c3e [#1421] Handle mandatory fields 2018-06-28 20:06:32 +02:00
Frederic Merizen
e794515c8e [#1421] Format linked dropdown menus in spreadsheet export 2018-06-28 20:06:32 +02:00
Frederic Merizen
06efd9681c [#1421] Format linked dropdwon in user recapitulatif 2018-06-28 20:06:32 +02:00
Frederic Merizen
6dc79301ce [#1421] Format linked list in gestionnaire view 2018-06-28 20:06:32 +02:00
Frederic Merizen
04892f6c55 [#1421] Format value for display 2018-06-28 20:06:32 +02:00
Paul Chavard
d0a6957862 Remove old cerfa code 2018-06-28 15:16:20 +02:00
Paul Chavard
93d6d72df5 Do not copy service info when cloning from library 2018-06-28 11:33:10 +02:00
Frederic Merizen
7fdb523b1a We can use the shorter syntax fort ordered_champs(_private)
now that the old preview is gone
2018-06-28 10:27:07 +02:00
Frederic Merizen
44d9f72da4 [Fix #2147] Link to better France Connect about page 2018-06-28 10:09:12 +02:00
Pierre de La Morinerie
0cebf60c46 [#1421] replace master/slave by primary/secondary 2018-06-27 17:02:46 +02:00
Frederic Merizen
dad3bc092b [#1421] linked dropdwon user view 2018-06-27 17:02:46 +02:00
Frederic Merizen
2f206af0d6 [#1421] Make label clickable for drop-down lists 2018-06-27 17:02:46 +02:00
Frederic Merizen
7b1e8c2110 [#1421] Extract values for both drop down lists 2018-06-27 17:02:46 +02:00
Frederic Merizen
2214fc6b86 [#1421] Extract contents of both drop down lists 2018-06-27 17:02:46 +02:00
Mathieu Magnin
fee961ea1e In dev env, load xray 2018-06-27 14:20:15 +02:00
Pierre de La Morinerie
d77530b6a6 dossiers: move link back to the old ui 2018-06-27 11:37:06 +02:00
Pierre de La Morinerie
9f70e72d83 dossiers: add a button to start a new demarche 2018-06-26 18:13:52 +02:00
Pierre de La Morinerie
20aeae5029 dossiers: ask heavy users for feedback 2018-06-26 18:04:04 +02:00
Pierre de La Morinerie
8c36c8d26f dossiers: add an empty state 2018-06-26 18:04:04 +02:00
Pierre de La Morinerie
06de1d6cee dossiers: link individual dossiers to the old UI 2018-06-26 18:04:04 +02:00
Pierre de La Morinerie
f242c73974 dossiers: make link in the header point to the new UI 2018-06-26 18:04:04 +02:00
Pierre de La Morinerie
a569a566fc header: use active_link_to for setting the active class on links 2018-06-26 18:04:04 +02:00
Pierre de La Morinerie
8c680347dd header: leave horizontal space for both "Procedure" and "Avis" 2018-06-26 18:04:04 +02:00
Pierre de La Morinerie
b9c8a1ffbe dossiers: simpler display when there are not invited dossiers 2018-06-26 18:04:04 +02:00
Mathieu Magnin
202a1dd7ce Show siege social siret in accompagnateur view 2018-06-26 17:45:18 +02:00
Pierre de La Morinerie
805ea0595b identite: add mandatory asterisk to CGU field 2018-06-25 11:51:15 +02:00
Pierre de La Morinerie
a1f8baefdc auth: fit the signup button on a single line 2018-06-25 11:51:15 +02:00
Pierre de La Morinerie
956c3fe36c Replace hardcoded phone numbers by a CONTACT_PHONE constant 2018-06-25 11:51:15 +02:00
Pierre de La Morinerie
51e256e122 header: fix link to the contact email 2018-06-25 11:26:45 +02:00
Frederic Merizen
226e3ca562 [#1421] Subject linked dropdown field to feature toggle 2018-06-21 16:19:20 +02:00
Frederic Merizen
d3df6e813c [#1421] DRY up type de champ toggles 2018-06-21 16:19:20 +02:00
Frederic Merizen
15e8d8af05 [#1421] Add linked dropown fields 2018-06-21 16:19:20 +02:00
Mathieu Magnin
3058c4350f Fix design 2018-06-21 15:02:12 +02:00
Mathieu Magnin
d0d55c796d
Merge branch 'dev' into useless-method 2018-06-21 11:38:19 +02:00
Mathieu Magnin
c49b88453f
Merge branch 'dev' into add-gestionnaires-to-procedures-manager 2018-06-21 11:22:52 +02:00
gregoirenovel
901748c5aa Show the etablissement SIRET, not the siege social SIRET 2018-06-20 18:35:19 +02:00
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