simon lehericey
4f86b6305b
FC ParticulierControllerSpec: callback handle empty string
2018-01-17 16:37:26 +01:00
simon lehericey
02dd1e209c
FC ParticulierController: implement auto reconciliation based on user email
2018-01-17 16:37:26 +01:00
simon lehericey
ecfb0f4ec2
FC ParticulierController: move defense logic to before_action
2018-01-17 16:37:26 +01:00
Simon Lehericey
4afc41bca2
FC ParticulierController: inline fci.user
2018-01-17 16:37:26 +01:00
simon lehericey
d348e5fde0
FC ParticulierController: smaller variable
2018-01-17 16:37:26 +01:00
simon lehericey
c6c4dd7c7e
FC ParticulierController: use find or tap
2018-01-17 16:37:26 +01:00
simon lehericey
7cbd6ed067
FC ParticulierController: create is private
...
yep, I know this is strange
2018-01-17 16:37:26 +01:00
gregoirenovel
16254899e1
[ Fix #1199 ] Make id search work for experts
2018-01-16 11:03:53 +01:00
gregoirenovel
d33d488db7
Avoid EOL if statements
2018-01-16 11:01:52 +01:00
Paul Chavard
bbf55ab85e
Create administrateurs with invitation link and no password
2018-01-16 10:49:07 +01:00
gregoirenovel
73dd58b6cd
Enable the Layout/MultilineMethodCallIndentation cop
2018-01-15 22:33:13 +01:00
gregoirenovel
b77837bfd1
Enable the Layout/MultilineMethodCallBraceLayout cop
2018-01-15 22:33:13 +01:00
gregoirenovel
9d75526460
Enable the Layout/MultilineAssignmentLayout cop
2018-01-15 22:33:13 +01:00
gregoirenovel
345b892956
Enable the Layout/LeadingCommentSpace cop
2018-01-15 22:33:13 +01:00
gregoirenovel
1e71188d4d
Enable the Layout/IndentationConsistency cop
2018-01-15 22:33:13 +01:00
gregoirenovel
0be657c0d7
Enable the Layout/IndentHash cop
2018-01-15 22:33:12 +01:00
gregoirenovel
5125cf8396
Enable the Layout/FirstParameterIndentation cop
2018-01-15 22:14:39 +01:00
simon lehericey
d086b82d44
FC ParticulierController: remove one return
2018-01-15 17:14:12 +01:00
simon lehericey
34bd3a11e9
FC ParticulierController: remove superfluous if
2018-01-15 17:14:12 +01:00
simon lehericey
02395e732c
FC service: return domain info
2018-01-15 17:14:12 +01:00
simon lehericey
7024e14d1c
FC information: remove funny find_by
2018-01-15 17:14:12 +01:00
simon lehericey
e68fc0811f
FC ParticulierController: callback syntax cleaning
2018-01-15 17:14:12 +01:00
simon lehericey
9dc242d907
FC Particulier Controller: simplier login
2018-01-15 17:14:12 +01:00
simon lehericey
fc4ce4460c
FC Particulier Controller: do not parse an URI into URI
2018-01-15 17:14:12 +01:00
simon lehericey
f8519c5345
FC initializers: remove Hashie
2018-01-15 17:08:38 +01:00
Simon Lehericey
0d46f92795
FC: move FC constants under particulier namespace
2018-01-15 16:59:50 +01:00
Simon Lehericey
8c487c65a9
FC: remove unused code
2018-01-15 11:27:56 +01:00
gregoirenovel
1368cd4b03
[ Fix #1120 ] Delete the old accompagnateur UI
2018-01-15 10:02:10 +01:00
gregoirenovel
3593adbe66
!foo.empty? -> foo.present?
2018-01-12 11:32:43 +01:00
gregoirenovel
bbaebe0602
!foo.nil? -> foo.present?
2018-01-12 11:32:43 +01:00
gregoirenovel
7c34807f46
Don’t use unless
2018-01-12 11:32:43 +01:00
Frederic Merizen
32be8213da
[ #1209 ] Make sure date de dépôt is available before sending mail
2018-01-10 18:31:55 +01:00
Mathieu Magnin
f772adc582
Add flash when procedure is whitelisted
2018-01-10 18:17:05 +01:00
Mathieu Magnin
4c0592d631
Rails-ish route
2018-01-10 18:17:05 +01:00
simon lehericey
53687bf84a
Whitelist: add whitelist button in admin
2018-01-10 17:18:44 +01:00
Mathieu Magnin
d8d2ecf515
[ Fix #1098 ] Administrateur dashboard
2018-01-10 13:44:02 +01:00
Mathieu Magnin
d0de9b9ae2
[ Fix #1098 ] Add procedures dashboard
2018-01-10 13:44:00 +01:00
Frederic Merizen
56749769d6
[ Fix #1186 ] Rename object to subject for mail templates
2018-01-09 16:00:31 +01:00
gregoirenovel
c77558aeed
Correctly handle errors when cloning someone else’s procedure
2018-01-09 11:07:26 +01:00
gregoirenovel
093d853ecc
Fix some buggy error handling code in Admin::ProcedureController#clone
2018-01-09 11:05:19 +01:00
simon lehericey
d7d5d7eff4
Rename new_admin_mailer to administration_mailer
2018-01-09 10:29:54 +01:00
Mathieu Magnin
04e9f7be3e
[ Fix #1149 ] Move avis actions to new gestionnaire controller
2018-01-08 16:50:15 +01:00
gregoirenovel
bf5e21d6de
[ Fix #1182 ] Add a “create new procedure from an existing one” feature
2018-01-08 14:55:07 +01:00
gregoirenovel
27a8aba53e
Allow the cloning of another admininistrateur’s procedure
2018-01-08 14:55:07 +01:00
gregoirenovel
ec5b9c86ce
Add the admin argument to Procedure#clone
2018-01-08 14:55:07 +01:00
Frederic Merizen
6a85094e1a
[ #1110 ] Make processed_at date available for attestation generation
2018-01-05 11:51:08 +01:00
Mathieu Magnin
62d8381ef7
Remove will paginate
2018-01-03 14:35:48 +01:00
Mathieu Magnin
98ac496aa5
[ Fix #1100 ] Administrateur can renew his API Token
2017-12-26 18:30:36 +01:00
Mathieu Magnin
fab00b1674
[ Fix #1096 ] Add administration email in new administrateur email
2017-12-22 11:10:25 +01:00
Mathieu Magnin
4990595430
[ Fix #1096 ] Sign in with GitHub page
2017-12-22 11:10:24 +01:00
Mathieu Magnin
7c0fdbc9f8
[ Fix #1096 ] Github Oauth
2017-12-22 11:10:24 +01:00
Frederic Merizen
2ae67a44f2
[ Fix #1143 ] Set motivation before generating attestation
2017-12-22 10:23:40 +01:00
Mathieu Magnin
642dc4ba21
[ Fix #1118 ] New ui is the default ui for gestionnaire
2017-12-21 23:20:59 +01:00
Mathieu Magnin
142f01d1bb
Revert "ProcedureController: remove unused destroy method" (Sentry : #2149 )
...
This reverts commit 6ca6669144
.
2017-12-21 18:33:42 +01:00
gregoirenovel
8c1eeb9f25
[ Fix #1011 ] Change the “Enregistrer un brouillon” button behaviour
...
And add the “Voir mes brouillons et dossiers”
button
2017-12-21 15:05:13 +01:00
LeSim
bd29b3c4f8
[ fix #1039 ] hide a procedure release its procedure_path
2017-12-15 17:57:34 +01:00
LeSim
6ca6669144
ProcedureController: remove unused destroy method
2017-12-15 17:57:34 +01:00
Simon Lehericey
9c354e18eb
[fix 363] Dossier: remove next_step!
2017-12-15 15:43:30 +01:00
Simon Lehericey
201862d450
[fix 363] Dossier: remove next_step! action = initiate, role = user
2017-12-15 15:43:30 +01:00
Simon Lehericey
907db89371
[fix 363] Dossier: remove next_step! action = follow
2017-12-15 15:43:30 +01:00
Simon Lehericey
11c010859c
[fix 363] Dossier: remove next_step! action = update
2017-12-15 15:43:30 +01:00
Simon Lehericey
629cccbf27
[fix 363] Dossier: remove next_step! action = comment
2017-12-15 15:43:30 +01:00
Simon Lehericey
c83552f423
[ fix #504 ] Dossier: without_continuation -> sans_suite
2017-12-15 12:10:54 +01:00
Simon Lehericey
2be9b8d2ba
[ fix #504 ] Dossier: refused -> refuse
2017-12-15 12:10:54 +01:00
Simon Lehericey
a13256f73d
[ fix #504 ] Dossier: closed -> accepte
2017-12-15 12:10:54 +01:00
LeSim
3dda27b281
[ fix #504 ] Dossier: received -> en_instruction
2017-12-15 12:10:54 +01:00
Simon Lehericey
72bae2c374
[ fix #504 ] Dossier: draft -> brouillon
2017-12-15 11:52:09 +01:00
LeSim
56545933a9
[ fix #504 ] Dossier: initiated -> en_construction
...
The change must not impact the api
2017-12-15 11:52:09 +01:00
Mathieu Magnin
7d668315db
[ Fix #1016 ] display notifications for annotations privées
2017-12-14 13:57:20 +01:00
Mathieu Magnin
c3e7e39947
[ Fix #1016 ] display notifications for avis
2017-12-14 13:57:20 +01:00
Mathieu Magnin
8e67e5c057
[ Fix #1016 ] display notifications for new messages
2017-12-14 13:57:19 +01:00
Mathieu Magnin
c6be745067
[ Fix #1016 ] display notifications for champs publics
2017-12-14 13:57:15 +01:00
LeSim
c3b4e3f964
[ fix #1067 , fix #1030 ] AvisController inherit from GestionnaireController
...
Should not break anything as avis controller already supposed a gestionnaire is logged in.
2017-12-14 11:43:20 +01:00
gregoirenovel
0d22ecfe5a
Delete the CGU-related files and mentions
2017-12-07 16:15:44 +01:00
gregoirenovel
d6b093fd2c
Do not add filters with blank values
2017-12-06 17:26:45 +01:00
gregoirenovel
8e07ade8b2
Correctly filter date columns
2017-12-06 17:26:45 +01:00
gregoirenovel
d75a3872d1
[ Fix #963 ] Add a "personnes impliquées" tab
2017-12-05 17:04:17 +01:00
gregoirenovel
dd47f96424
Improve the names of some parameters in DossiersController
2017-12-01 14:28:07 +01:00
gregoirenovel
684dafb6d4
Remove now obsolete code
2017-12-01 14:28:07 +01:00
gregoirenovel
a04af24cbf
Add DossiersController#terminer
2017-12-01 14:28:07 +01:00
gregoirenovel
a5b4b20a7d
Add DossiersController#repasser_en_construction
2017-12-01 14:28:07 +01:00
gregoirenovel
eb55dfc0c8
Add and use DossiersController#passer_en_instruction
2017-12-01 14:28:07 +01:00
gregoirenovel
6c785d71b4
Simplify code in NewGestionnaire::DossiersController
...
We already have procedure: it is given by
ProceduresController, which this controller
inherits form
2017-11-30 17:18:32 +01:00
Simon Lehericey
bbcf350d7d
[ fix #997 ] New Style: allow new line in messagerie
2017-11-30 16:07:48 +01:00
Mathieu Magnin
fa95c312ff
Old UI : Plug messagerie on new commentaire file system
2017-11-28 15:07:10 +01:00
Mathieu Magnin
eae16f7746
New UI : Regular messagerie and avis messagerie should use same partials
2017-11-28 15:07:10 +01:00
Mathieu Magnin
158adc2472
New UI : Check if commentaire is correctly saved
2017-11-28 15:07:10 +01:00
Mathieu Magnin
ae5e6653cb
[ Fix #888 ] New UI : Add upload on commentaire form
2017-11-28 15:07:09 +01:00
gregoirenovel
1d7e7fc654
[ Fix #432 ] Stop raising a useless exception in get_position
...
When an accompagnateur, in the old UI, wants to
see a map, this call crashes because he’s not
the owner or invitee on the dossier he’s looking
at, therefore current_user_dossier raises an
exception
2017-11-22 17:49:32 +01:00
gregoirenovel
5361e4e1e9
[ Fix #871 ] Add the date at the end of exported files
2017-11-22 17:27:57 +01:00
gregoirenovel
c8e62ad095
recherches -> recherche
2017-11-22 10:48:38 +01:00
Mathieu Magnin
b4b394bf18
If user_return_to procedure is invalid then remove it from session
2017-11-21 17:53:16 +01:00
gregoirenovel
379e7b74d6
Enable all the rubicop perf cops
2017-11-21 10:31:16 +01:00
Simon Lehericey
2b146a6d62
Notifications: show dossiers with notification in first place
2017-11-20 17:22:52 +01:00
gregoirenovel
dbdd7098e3
Remove a now outdated message
2017-11-20 14:37:17 +01:00
Mathieu Magnin
b187e7163a
Remove demo accounts routes
2017-11-16 12:36:58 +01:00
Mathieu Magnin
adaa1e0dec
[ Fix #939 ] Remove demo page in staging
2017-11-10 18:19:41 +01:00
Simon Lehericey
ed4e885e6f
Notification: new acknowledgment system
2017-11-10 16:29:45 +01:00
Mathieu Magnin
da5dfdff40
Alert users after OVH outage
2017-11-09 12:09:45 +01:00
gregoirenovel
7be86796c1
After deleting a brouillon, stay on the brouillon tab
...
Instead of redirecting on another tab
2017-10-19 11:20:52 +02:00
Mathieu Magnin
08f76f336c
If not super admin do not display current month in cumul
2017-10-17 12:55:17 +02:00
gregoirenovel
316d8e09b5
Allow accompagnateurs to print a Dossier
2017-10-16 09:33:58 +02:00
Simon Lehericey
6f4ddb9e3e
[ fix #728 ] Reduce flash error size to avoid cookies overflow
2017-10-12 09:02:54 +02:00
gregoirenovel
8281a6474e
Force a single query for some includes
...
As explained in
https://blog.bigbinary.com/2013/07/01/preload-vs-eager-load-vs-joins-vs-includes.html
Otherwise the `where` fails because the `includes`
is done using another query
2017-10-10 18:33:20 +02:00
Simon Lehericey
e20d403b20
DossierController: a archived dossier is not followed
2017-10-05 16:59:26 +02:00
Simon Lehericey
19b3416361
Gestionnaire: add unfollow method
2017-10-05 16:59:26 +02:00
Simon Lehericey
01da457ad0
DossierController: a dossier commented is followed
2017-10-05 16:59:26 +02:00
Simon Lehericey
c602efee18
Gestionnaire Legacy UI: fix nouveaux dossier list filter
2017-10-05 15:58:52 +02:00
gregoirenovel
31b9f8950e
Increase the number of dossiers on the procedure page
...
Plus remove some trailing whitespace
2017-10-05 13:28:24 +02:00
gregoirenovel
0705efde30
Add filtering to the dossiers table
2017-10-02 17:45:22 +02:00
gregoirenovel
801318b053
Memoize statut
2017-10-02 17:45:22 +02:00
gregoirenovel
3df9356021
Add field sort to the dossiers table
2017-10-02 17:45:22 +02:00
gregoirenovel
88ad986143
Remove the ordering from the dossier scopes
2017-10-02 17:45:22 +02:00
gregoirenovel
e1bdbec815
Allow the customization of the dossiers table
2017-10-02 17:45:22 +02:00
Simon Lehericey
2b760c85c4
[ Fix #763 ] Add annotations_privees to buggy annotation system
2017-09-27 15:08:34 +02:00
Simon Lehericey
04d1e0f0e8
Notification: instruction -> avis
2017-09-27 12:16:33 +02:00
Simon Lehericey
f5a227fa92
[ Fix #762 ] move dossier instruction -> dossier annotations_privees
2017-09-27 12:16:33 +02:00
Simon Lehericey
a421f0257e
[ Fix #762 ] split annotations and avis
2017-09-27 12:08:55 +02:00
Simon Lehericey
1cfeb10ce9
[ Fix #503 ] Dossier: remove updated
2017-09-26 14:42:54 +02:00
Simon Lehericey
633b55aca0
[ Fix #503 ] Dossier: remove replied
2017-09-26 14:42:54 +02:00
Simon Lehericey
53f0a16186
BackofficeAvisController: make new avis confidentiel by default
2017-09-22 17:58:16 +02:00
Mathieu Magnin
6a58873ba7
Add pagination on avis
2017-09-22 10:19:26 +02:00
Mathieu Magnin
2737a8d529
Add pagination on dossiers list
2017-09-22 10:19:25 +02:00
Simon Lehericey
3c3e303a59
Dossier instruction: can ask for a confidentiel avis
2017-09-20 15:42:26 +02:00
Simon Lehericey
caaa3169e5
Avis instruction: can ask for a confidentiel avis
2017-09-20 15:42:26 +02:00
Simon Lehericey
112e3a5793
Procedures: redirect to avis if suitable
2017-09-20 15:42:26 +02:00
Simon Lehericey
3dfd77e914
Avis: add messagerie
2017-09-20 15:42:26 +02:00
Simon Lehericey
88c27479ee
Avis: instruction
2017-09-20 15:42:26 +02:00
Simon Lehericey
a1f9f7aa75
Avis: show
2017-09-20 15:42:26 +02:00
Simon Lehericey
3cc09c98f9
Avis: index
2017-09-20 15:42:26 +02:00
Mathieu Magnin
ca82fba170
[ Fix #738 ] TPS link on header should navigate on same UI
2017-09-19 17:53:38 +02:00
Mathieu Magnin
581da1921e
Add a flash message after comment is created
2017-09-13 16:27:08 +02:00
Mathieu Magnin
530998dad5
If gestionnaire is known on avis, use his email
2017-09-13 11:42:41 +02:00
Mathieu Magnin
31995c270c
[ Fix #721 ] If an avis is created with uppercase email, downcase it before save
2017-09-13 10:59:59 +02:00
Mathieu Magnin
a4ea5ddcee
When changing dossier state do not switch the UI
2017-09-13 09:24:51 +02:00
Mathieu Magnin
39c556f70e
Enable Rack mini profiler, on every environment
2017-09-07 15:12:19 +02:00
Mathieu Magnin
feda7213f9
Action button for instruction state
2017-09-06 11:13:59 +02:00
Mathieu Magnin
059a0b961b
Action button for construction state
2017-09-06 11:13:59 +02:00
Simon Lehericey
a298c48e8f
Dossier: add notification icon
2017-09-06 11:13:50 +02:00
Simon Lehericey
fbd16b8c75
Procedure show: add notification icon
2017-09-06 11:11:47 +02:00
Simon Lehericey
3e93d21bf5
Procedure Index: add notification icon
2017-09-06 11:11:47 +02:00
Mathieu Magnin
bf97a111f9
Old recherche with new design
2017-09-06 11:11:43 +02:00
Mathieu Magnin
1e61f1388b
Move layout configuration on gestionnaire controller
2017-09-06 11:11:41 +02:00
Simon Lehericey
3e5d0dce6a
NewDesign: can add annotations
2017-09-06 11:11:37 +02:00
Simon Lehericey
2923d4448b
NewDesign: can ask a new avis
2017-09-06 11:11:36 +02:00
Simon Lehericey
f03d8ef909
NewDesign: add dossier instruction view
2017-09-06 11:11:36 +02:00
Simon Lehericey
46c144146c
Form: add description
2017-09-06 11:11:35 +02:00
Simon Lehericey
74c71a3776
Form: use rails form helper
2017-09-06 11:11:34 +02:00
Mathieu Magnin
f3f2b6acc2
Avoid n+1 because of gestionnaire.follows?(dossier)
2017-09-06 11:11:32 +02:00
Mathieu Magnin
d780ab1c90
Avoid n+1 because of user.email
2017-09-06 11:11:32 +02:00
Simon Lehericey
1a485f173e
Form: add required
2017-09-06 11:11:30 +02:00
Simon Lehericey
9c2e71afa3
Form: add various champs html and style
2017-09-06 11:11:29 +02:00
Mathieu Magnin
373d9999fc
Add map for gestionnaire
2017-09-06 11:11:28 +02:00
gregoirenovel
b4a1f4f248
Remove a useless scope call
...
A gestionnaire’s dossiers are already filtered so
that the brouillon ones do not appear
2017-09-06 11:11:27 +02:00
gregoirenovel
091fa1d099
Order a Gestionnaire’s procedures
...
First display the procédures publiées, sorted
by publication date, and then the procédures
archivées, sorted by archiving date
2017-09-06 11:11:27 +02:00
Simon Lehericey
714b2a5f08
NewDesign: gestionnaire can add a new commentaire
2017-09-06 11:11:25 +02:00
Simon Lehericey
497f898e1b
NewDesign: add dossier messagerie show
2017-09-06 11:11:24 +02:00
Simon Lehericey
86ea47bb0d
BackofficeDossierController: follow dossier when receive
2017-09-06 11:11:23 +02:00
Simon Lehericey
b80d6a6a59
Follow: add flash notice to dossier_controller
2017-09-06 11:11:23 +02:00
Simon Lehericey
95fbd1824a
Follow: remove old backoffice follow and toggle_follow
2017-09-06 11:11:22 +02:00
Simon Lehericey
f07b6eab53
Follow: use follow instead of toggle_follow_dossier
2017-09-06 11:11:22 +02:00
Simon Lehericey
6cff044a50
NewDossierController: add next_step follow
2017-09-06 11:11:22 +02:00
Simon Lehericey
8b2366cb98
GestionnaireDossierController: use gestionnaire follow
2017-09-06 11:11:21 +02:00
Mathieu Magnin
f9f313e990
Add identité demandeur for entreprise on dossier detail page
2017-09-06 11:11:15 +02:00
Mathieu Magnin
5b417889b2
Use same counters on procedures index than show
2017-09-06 11:11:14 +02:00
Simon Lehericey
a064ae64a4
NewDesign: add archive and unarchive actions on dossier
2017-09-06 11:11:12 +02:00
Simon Lehericey
eb65318844
NewDesign: add follow and unfollow actions on dossier
2017-09-06 11:11:12 +02:00
Simon Lehericey
ad1a11ab52
NewDesign: procedure show add dossier table
2017-09-06 11:11:11 +02:00
Simon Lehericey
b48af51ee9
NewDesign: procedure show only header
2017-09-06 11:11:11 +02:00
Mathieu Magnin
622a170793
Add and design new #index on procedures for gestionnaires
2017-09-06 11:11:07 +02:00
gregoirenovel
650a39b371
Use delete_all instead of destroy_all to batch delete
2017-08-29 14:22:14 +02:00
Simon Lehericey
806c41af38
[ Fix #667 ] Can add an already register gestionnaire with uppercase email
2017-08-28 15:36:34 +02:00
Simon Lehericey
62f1b9c712
Rubocop: enable indentation width rule
2017-08-28 12:20:58 +02:00
Mathieu Magnin
dd1fea78ac
[ Fix #658 ] when dossier linked to avis is hidden, do not crash application
2017-08-28 10:11:50 +02:00
Mathieu Magnin
a3b069e501
[ Fix #589 ] When getting birthdate from France Connect format it to ISO
2017-08-01 16:47:44 +02:00
Mathieu Magnin
03fde0a502
[ FIX #589 ] Force birthdate format when saving
2017-08-01 16:47:43 +02:00
Mathieu Magnin
1aabc6c82b
[ FIX #589 ] Validate birthdate from user input
2017-08-01 16:47:43 +02:00
Mathieu Magnin
d097860b04
Enable rack mini profiler when super admin is connected
2017-07-25 14:35:54 +02:00
Simon Lehericey
7016bdc49a
Avis: move assign_gestionnaire logic to avis model
2017-07-21 11:22:16 +02:00
Mathieu Magnin
ed11ee4fb4
Fix SQL injections
2017-07-20 18:22:14 +02:00
Mathieu Magnin
1d0734dda2
Admin should be owner of procedure to hide it
2017-07-20 16:40:11 +02:00
Mathieu Magnin
e468612d95
Admin should be owner of procedure to destroy it
2017-07-20 14:30:36 +02:00
Mathieu Magnin
015260ff13
Gestionnaire can download export only for his procedures
2017-07-19 16:31:30 +02:00
gregoirenovel
c464a6faba
[ Fix #168 ] Sort published and archived procedures by publication_date
2017-07-18 13:44:03 +02:00
gregoirenovel
6f2c63c094
Remove default values for some stat methods’ arguments
2017-07-17 16:00:16 +02:00
gregoirenovel
20b4c7ce6f
[ Fix #146 ] Use published_at for procedures in Stats
...
Instead of created_at, which is less
representative
2017-07-17 15:10:05 +02:00
gregoirenovel
1c1a47d83a
publiee_ou_archivee -> publiees_ou_archivees
2017-07-17 15:06:36 +02:00
Simon Lehericey
a1ddcb6d34
DossierController: remove useless facade
2017-07-17 13:36:22 +02:00
gregoirenovel
32e0fa9f69
Add Procedure#publiee_ou_archivee?
2017-07-13 17:01:39 +02:00
gregoirenovel
9a7d5d1833
Add Procedure#publiee?
2017-07-13 15:44:18 +02:00
gregoirenovel
cfec05506a
Rename Procedure#archived? -> #archivee?
2017-07-13 15:32:13 +02:00
gregoirenovel
75aebe4f07
Add the archivees scope on Procedure
2017-07-13 14:46:09 +02:00
gregoirenovel
89feb6cdf7
Add the brouillons scope on Procedure
2017-07-13 14:46:08 +02:00
gregoirenovel
fc2540649f
Add the publiees scope on Procedure
2017-07-13 14:46:07 +02:00
gregoirenovel
ab9cf1c351
Rename the published scope on Procedure
2017-07-13 14:40:41 +02:00
benjaminhenkel
0a060dbb53
Wording spelling mistake
2017-07-13 11:02:30 +02:00
Simon Lehericey
693c2a43ac
[ Fix #592 ] mutualize sanitize and clean flash messages
2017-07-13 10:14:16 +02:00
gregoirenovel
bb10e13e2f
[Ref #145 ] Don't use Procedure.archived anymore
2017-07-11 15:03:35 +02:00
Mathieu Magnin
c3fa1e01b9
[ Fix #577 ] Restrict comment creation to Users/Gestionnaires allowed on dossier
2017-07-11 11:01:06 +02:00
Mathieu Magnin
065719ea06
[ Fix #576 ] When user or gestionnaire has no access to dossier, he cannot create an invitation
2017-07-11 10:43:33 +02:00
gregoirenovel
6a381caaee
Add the archived scope to Procedure
2017-07-10 17:24:53 +02:00
gregoirenovel
411c5791c8
Use the not_archived Procedure scope
2017-07-10 17:24:43 +02:00
gregoirenovel
31b23ac74e
Add the not_published Procedure scope
2017-07-10 17:24:39 +02:00
gregoirenovel
f480f26bd4
Use the state_not_brouillon Dossier scope
2017-07-10 16:54:02 +02:00
gregoirenovel
5f50f76341
Add the published scope en Procedure
2017-07-10 16:54:01 +02:00
Simon Lehericey
9d48249660
Attestation: uninterlaced png file to be compatible with Prawn
2017-07-10 10:52:27 +02:00
Mathieu Magnin
aa929bb5b2
[ Fix #554 ] If procedure is hidden, then don't crash
2017-07-06 14:40:06 +02:00
Mathieu Magnin
70c7c42e1f
[ Fix #430 ] Add delete procedure button
2017-07-04 14:34:26 +02:00
Simon Lehericey
12c12953d6
[ FIX #433 ] Add Raven Metadata on the current user/gestionnaire/admin ...
2017-07-04 14:18:46 +02:00
Simon Lehericey
48e881f9ec
[ FIX #491 ] Attestation: allow administrateur to change attestation template on a published procedure
2017-07-04 13:59:54 +02:00
gregoirenovel
84751cdedf
[ Fix #528 ] Fix a spelling mistake
2017-07-04 12:18:13 +02:00
Simon Lehericey
b1d96f4a94
[ FIX #492 ] switch to new attestation download system
2017-07-03 14:09:14 +02:00
Simon Lehericey
4e6a8c5939
New Routes: add new_gestionnaire/dossier_controller attestation
2017-07-03 14:09:14 +02:00
Simon Lehericey
94f8fb748f
New Routes: add new_gestionnaire/procedures_controller
2017-07-03 14:09:14 +02:00
Simon Lehericey
3eec07ac08
New Routes: add new_gestionnaire/gestionnaire_controller
2017-07-03 14:09:14 +02:00
Simon Lehericey
1e661fa686
New Routes: add new_user/dossier_controller attestation
2017-07-03 14:09:14 +02:00
Simon Lehericey
15b16f36b7
New Routes: add new_user/dossier_controller
2017-07-03 14:09:14 +02:00
Simon Lehericey
081ed90968
New Routes: add new_user/user_controller
2017-07-03 14:09:13 +02:00
Simon Lehericey
fb50606680
Admin: remove useless data in admin creation mail
2017-06-30 17:21:41 +02:00
gregoirenovel
bb57002eff
[ Fix #352 ] Downcase admin emails when transferring a procedure
...
See config/initializers/devise.rb:L44
config.case_insensitive_keys = [ :email ]
We therefore need to downcase the email before
looking for an admin by its email address
2017-06-27 14:25:56 +02:00
gregoirenovel
0ea29d131f
Refactor Admin::ProceduresController#transfer
2017-06-26 10:51:28 +02:00
gregoirenovel
a3e3284c5d
Fix a spelling mistake
2017-06-26 10:51:27 +02:00
gregoirenovel
469f0aed4b
[ Fix #440 ] Show the current month only if logged in as superadmin
2017-06-26 10:50:31 +02:00
gregoirenovel
ba5d816ce6
[ Fix #176 ] Delete useless new_assignement email
2017-06-26 10:49:42 +02:00
Mathieu Magnin
3f90e82d09
[ Fix #327 ] flashes messages can deal with Arrays
2017-06-21 18:08:05 +02:00
Mathieu Magnin
ac5c00c26f
[ fix #452 ] redesign sign up form
2017-06-21 17:38:38 +02:00
Mathieu Magnin
e51d8965a2
[ Fix #468 ] fix demo login
2017-06-20 17:05:05 +02:00
Mathieu Magnin
90a643d4fb
Add /patron page 🎨
2017-06-19 18:21:15 +02:00
Mathieu Magnin
0bed3ae956
Use new layout for login
2017-06-19 18:21:14 +02:00
gregoirenovel
d0b927857a
Add stats for encart motivation
2017-06-19 18:01:59 +02:00
gregoirenovel
19696da736
Add StatsController#percentage
2017-06-19 18:01:57 +02:00
Simon Lehericey
dd441ff0c7
Attestation: fix mail attachment when the files are remotely stored
2017-06-19 13:47:32 +02:00
Simon Lehericey
5c70d38a23
Attestation: fix missing_attachment
2017-06-16 14:47:44 +02:00
Simon Lehericey
e60ce35ae8
[ Fix #196 ] Attestation: join the attestation to the closed mail
...
Add a upper limit to the attachment size as it could be a problem with Mailjet and receiver
(https://www.mailjet.com/support/what-is-the-size-limit-for-attachments-files-sent-via-mailjet,289.htm )
If the attestation cannot be sent, it is logged in sentry
2017-06-16 12:11:10 +02:00
Simon Lehericey
b664709c3d
[ Fix #196 ] Attestation: allow vizualisation after the procedure is published
2017-06-16 12:11:10 +02:00
Simon Lehericey
671a0575ce
[ Fix #196 ] Recapitulatif: user can download its attestation
2017-06-16 12:11:10 +02:00
Simon Lehericey
c0facbf679
[ Fix #196 ] AttestionTemplate: add preview
2017-06-16 12:11:09 +02:00
Simon Lehericey
fdb4d15bcf
[ Fix #196 ] AttestationTemplate: add edition
2017-06-16 12:11:09 +02:00
gregoirenovel
12d74be668
Refactor Backoffice::DossiersController#process_dossier
2017-06-13 15:14:51 +02:00
gregoirenovel
b58c02180c
[ Fix #197 ] Allow a gestionnaire to add a motivation
2017-06-13 15:14:50 +02:00
gregoirenovel
33944e343a
Add Backoffice::DossiersController#process_dossier and use it
2017-06-13 15:05:09 +02:00
gregoirenovel
d248afc376
Enable the Layout/ExtraSpacing cop
2017-06-13 10:35:35 +02:00
gregoirenovel
82eb66cfe8
Enable the Layout/EmptyLinesAroundMethodBody cop
2017-06-13 10:35:33 +02:00
gregoirenovel
24e7537c49
Enable the Layout/EmptyLinesAroundClassBody cop
2017-06-13 10:35:32 +02:00
gregoirenovel
f496f1adab
Enable the Layout/EmptyLines cop
2017-06-13 10:35:20 +02:00
gregoirenovel
ff1f679c7b
Enable the Layout/EmptyLineBetweenDefs cop
2017-06-13 10:35:20 +02:00
gregoirenovel
f2cf32a15c
Enable the Layout/CommentIndentation cop
2017-06-13 10:35:19 +02:00
gregoirenovel
9439e1abb1
Enable the Layout/AlignParameters cop
2017-06-13 10:35:16 +02:00
gregoirenovel
96532cea6d
[ Fix #388 ] In avis email, redirect a signed out gest. to the dossier
2017-06-12 11:03:02 +02:00
gregoirenovel
107c322062
[ Fix #323 ] Refactor received dossier notification: use a callback
2017-06-08 15:06:01 +02:00
gregoirenovel
ec69086ebc
Don’t use alias_method_chain, use a proxy method
2017-06-08 12:22:48 +02:00
gregoirenovel
d557906fe9
Remove unused variable in MailTemplatesController#edit
2017-06-08 12:22:47 +02:00
gregoirenovel
07ad7b4c84
mails -> mail_templates
2017-06-08 12:22:46 +02:00
gregoirenovel
07ea0ceea1
Make MailTemplateConcern.slug a constant
2017-06-08 12:22:44 +02:00
gregoirenovel
18d6204980
find_the_right_email -> find_mail_template_by_slug
2017-06-08 12:22:42 +02:00
gregoirenovel
41b3fa62ed
Refactor MailTemplatesController#mails
2017-06-08 12:22:42 +02:00
gregoirenovel
ab1c19c09b
Rename some Dossier scopes
2017-06-01 10:58:08 +02:00
Mathieu Magnin
8e9144f565
[ Fix #378 ] Remove redirect based on referrer
2017-06-01 10:36:36 +02:00
Mathieu Magnin
d2d2c78461
Remove unused code
2017-06-01 10:36:36 +02:00
Mathieu Magnin
705a3f3e1b
Fix cache bug on stats page
2017-06-01 09:44:22 +02:00
Simon Lehericey
9e6098dc09
Add the weekly avis answer percentage to Stats
2017-05-31 14:24:33 +02:00
Mathieu Magnin
068b635b7c
Add the weekly avis answer time average to Stats
2017-05-31 14:24:32 +02:00
Simon Lehericey
b5f1b898c7
Add the weekly avis usage to Stats
2017-05-31 13:31:19 +02:00
gregoirenovel
d54fe12a9c
Remove inconsistent and useless blank lines in controllers
2017-05-30 15:54:49 +02:00
Mathieu Magnin
69a5857322
[ Fix #264 ] Add pie chart to count administrations
2017-05-30 15:36:21 +02:00
gregoirenovel
9585142468
Group the cumulative and monthly charts
2017-05-30 12:05:28 +02:00
gregoirenovel
3215411547
Delete the 30 days flows graphs
2017-05-30 12:05:28 +02:00
gregoirenovel
58aa94359c
On the Stats page, move the total numbers at the top of the page
2017-05-30 12:05:27 +02:00
gregoirenovel
711f21c458
[ Fix #264 ] Add the mean filling time graph to Stats
2017-05-30 12:05:27 +02:00
gregoirenovel
faa547e891
[ Fix #264 ] Add the mean instruction time graph to Stats
2017-05-30 12:05:27 +02:00
gregoirenovel
ed7ba60cf0
[ Fix #264 ] Add the last 4 months evolution graphs to Stats
2017-05-30 12:05:26 +02:00
gregoirenovel
f82533be19
Use the new_application layout for the Stats page
2017-05-29 15:46:54 +02:00
Simon Lehericey
64f7cab3cf
Avis: add claimant gestionnaire to track who asks for an avis
2017-05-29 11:44:28 +02:00
Simon Lehericey
cdcd5b951f
AvisController: add a notification when a avis has been received
2017-05-29 11:44:28 +02:00
Simon Lehericey
34a7905828
DossierController: giving an advice does not remove the notifications
2017-05-29 11:44:28 +02:00
Simon Lehericey
3483ec075b
DossierController: extract dossier_id from params[:id]
2017-05-29 11:44:28 +02:00
Mathieu Magnin
612a8c4b91
Confirm with flash after avis is sent
2017-05-29 11:44:28 +02:00
Simon Lehericey
f9aee06040
AvisController: add redirection logic for various login cases
2017-05-29 11:44:28 +02:00
Simon Lehericey
842999d229
Avis: add create_gestionnaire logic
2017-05-29 11:44:28 +02:00
Simon Lehericey
aaf155df72
Avis: add sign_up logic for new tps gestionnaire
2017-05-29 11:44:28 +02:00
Simon Lehericey
f6359cb7aa
gestionnaire invited on dossier for avis, can update Avis
2017-05-29 11:44:28 +02:00
Mathieu Magnin
f24e4a77d3
Gestionnaire can view dossier if he is invited on dossier
2017-05-29 11:44:28 +02:00
Mathieu Magnin
7c662aa7b2
Gestionnaire invited on dossier for avis, cannot see private form / change dossier state / follow dossier / see invited people / see others avis
2017-05-29 11:44:28 +02:00
Mathieu Magnin
43f481b7ff
Gestionnaire can list dossiers where he is invited for avis
2017-05-29 11:44:28 +02:00
Mathieu Magnin
e831442cbd
Associate gestionnaire to avis if gestionnaire is known
2017-05-29 11:44:28 +02:00
Mathieu Magnin
c3bf15d49f
Create and list Avis on Dossier detail page
2017-05-29 11:44:28 +02:00
Simon Lehericey
f1b923e30f
ApiControllers: remove useless meta data
2017-05-23 10:46:37 +02:00
Simon Lehericey
a213032f28
Refactor: use select block to select stuff
2017-05-17 11:18:01 +02:00
gregoirenovel
9c3cde2b2e
Move CommentairesController#notify_user_user_with_mail to Commentaire
2017-05-12 16:31:02 +02:00
gregoirenovel
02a8cf3fe1
Use the initialisation date for the cumulative dossiers
...
We want to show when dossiers were published, not
created
2017-05-05 12:03:54 +02:00
gregoirenovel
06714b5fc3
Add a date_attribute argument to StatsController#cumulative_hash
2017-05-05 12:03:53 +02:00
gregoirenovel
dbf891b333
Use the initialisation date for the dossiers 30 days flow
...
We want to show when dossiers were published, not
created
2017-05-05 12:03:53 +02:00
gregoirenovel
c7999b9691
Add a date_attribute argument to StatsController#thirty_days_flow
2017-05-05 12:03:53 +02:00
gregoirenovel
3bd5e32dff
Add a system to restrain the email templates tags to specific templates
2017-05-04 16:17:39 +02:00
gregoirenovel
eff9e556e9
[ Fix #162 ] Deny dossier access for an unauthorized accompagnateur
2017-05-03 10:28:29 +02:00
gregoirenovel
f58a626648
[ Fix #99 ] Improve the info message in _dossier_link.html.haml
2017-04-26 16:47:38 +02:00
gregoirenovel
14b7badfed
Eager-load the dossier’s procedure when possible
2017-04-26 09:53:10 +02:00
Mathieu Magnin
822c7cdd96
Add human version translation for state
2017-04-21 14:51:35 +02:00
Mathieu Magnin
d87989622c
Remove useless code
2017-04-21 14:51:34 +02:00
Mathieu Magnin
762a11fc6f
Define .termine as a scope and remove archived=false filter
2017-04-21 14:36:50 +02:00
Mathieu Magnin
320ff4839f
Define .en_instruction as a scope and remove archived=false filter
2017-04-21 14:36:50 +02:00
Mathieu Magnin
7a9fd77af0
Remove archived=false filter from en_construction scope (Fix : archived dossier is not shown to user)
2017-04-21 14:36:50 +02:00
Mathieu Magnin
688a3d8f31
Define .brouillon as a scope and remove archived=false filter
2017-04-21 14:36:50 +02:00
Mathieu Magnin
21a2a5402b
Remove unused service
2017-04-21 14:36:50 +02:00
Mathieu Magnin
1a628dc42c
Remove DossierListFacade dependency
2017-04-21 14:36:50 +02:00
gregoirenovel
e504531ca0
Use the new_application layout for the landing page
2017-04-20 12:18:16 +02:00
Simon Lehericey
2b969ef575
MandatoryAttachment: group missing errors logic together
...
and show errors only if not draft
2017-04-19 15:45:45 +02:00
gregoirenovel
b00eb914da
Use case statements instead of if statements where appropriated
2017-04-19 11:57:49 +02:00
gregoirenovel
9071656b55
Use #each instead of #map where appropriated
2017-04-19 11:57:49 +02:00
Simon Lehericey
4cd21580fb
DescriptionController: move html_safe to the view
...
html_safe could not work upon redirection as stated here :
https://groups.google.com/forum/#!topic/rubyonrails-core/z52zgDgUmbs
2017-04-19 10:52:04 +02:00
Simon Lehericey
eb3bb63a8f
DescriptionController: remove useless @champs
2017-04-19 10:52:04 +02:00
Simon Lehericey
866a54085c
DescriptionController: cosmetic
2017-04-19 10:52:04 +02:00
Simon Lehericey
157d1818b2
DescriptionController: move instance var to local var
2017-04-19 10:52:04 +02:00
Simon Lehericey
367b7c6ae1
DescriptionController: use common system to redirect with errors
2017-04-18 17:48:03 +02:00
Simon Lehericey
e49ea2d0e0
PiecesJustificative: add field to set it mandatory
...
small css to align the fields
2017-04-18 17:48:03 +02:00
gregoirenovel
f4ff778a5c
Add a missing newline before the end of the controller
...
Same spacing rules at the top and at the bottom
of the file
2017-04-11 16:58:27 +02:00
gregoirenovel
913735554c
Improve StatsController#thirty_days_flow and #clean_hash
2017-04-11 16:58:27 +02:00
gregoirenovel
11015787bf
Add new total numbers to the Stats page
2017-04-11 16:51:38 +02:00
gregoirenovel
52ea4a1b8d
Add new charts and a segmented control to the Stats page
2017-04-11 16:51:38 +02:00
gregoirenovel
e370c4e393
Exclude draft Dossiers and unpublished Procedures from Stats
2017-04-11 15:29:19 +02:00
gregoirenovel
2074ac93ba
Add StatsController#thirty_days_flow_hash
2017-04-11 15:29:19 +02:00
gregoirenovel
e192038045
Rename the variables in StatsController#index
2017-04-11 15:29:19 +02:00
gregoirenovel
c4c6095abd
Only show the last 30 days of data in Stats
2017-04-11 15:29:19 +02:00
gregoirenovel
de01914fa7
Fix the where clause in Stats
...
Now properly show the last 90 days of data instead
of strict quarters.
With the previous code, on the
1st of january, april, july and october, only one
day of data would be shown.
2017-04-11 15:29:18 +02:00
gregoirenovel
f84cd7f11b
Make Stats a public page
2017-04-11 15:29:18 +02:00
Simon Lehericey
4a16fb2ce2
DescriptionController: refacto
2017-04-11 14:45:30 +02:00
Simon Lehericey
ed36897337
DossiersController: add get procedure libelle
2017-04-11 13:54:33 +02:00
Simon Lehericey
ccf956ec01
DescriptionController: refactor redirection for draft
2017-04-11 12:11:10 +02:00
Simon Lehericey
d14a75c24a
DescriptionController: refactor check_mandatory_fields
2017-04-11 12:11:10 +02:00
Simon Lehericey
191b29aff5
DescriptionController: simplify update logic
2017-04-11 12:11:10 +02:00
Simon Lehericey
3a9065e4c1
DescriptionController: remove useless code
2017-04-11 12:11:10 +02:00
Simon Lehericey
c4e128a506
DescriptionController: rename variable
2017-04-11 12:11:09 +02:00
Simon Lehericey
4df03fc28e
ChampsService: add tests and refactor
2017-04-11 12:11:09 +02:00
Mathieu Magnin
bf0d466f4b
Move export_full_generation method from Dossier to Procedure
2017-04-05 12:26:38 +02:00
Mathieu Magnin
b18c09e9fd
Download dossiers button exports all dossiers except draft
2017-04-05 11:04:53 +02:00
gregoirenovel
d5e7bbd80d
Files should end with a new line
2017-04-04 16:59:38 +02:00
gregoirenovel
6cb78acd85
Make the birthday field a date field
...
And remove the date picker (you can now use the
native one)
2017-04-03 16:03:38 +02:00
Mathieu Magnin
6a8ca67a83
Merge branch 'develop' into auto_archive_on_date
2017-03-27 15:35:52 +02:00
gregoirenovel
458f557c93
Add a sort order to the demo procedures list
2017-03-22 17:52:56 +01:00
Mathieu Magnin
4d323497e7
Remove puts
2017-03-15 15:16:00 +01:00
Mathieu Magnin
359807b4f7
Procedure has an auto_archive date
2017-03-14 10:45:59 +01:00
Mathieu Magnin
5d4e8622f6
Merge pull request #38 from sgmap/stats
...
Stats: add adminitrations stats view
2017-03-08 10:59:06 +01:00
LeSim
78325cc9f9
Merge pull request #34 from sgmap/customize_submission_mail
...
Customize submission mail
2017-03-07 18:32:55 +01:00
Simon Lehericey
6cb88a995f
Stats: add adminitrations stats view
2017-03-07 18:09:09 +01:00
LeSim
2e19dd26b7
Merge pull request #36 from sgmap/remember_me
...
Add remember me on login
2017-03-07 14:15:37 +01:00
LeSim
9764604430
Merge branch 'develop' into customize_submission_mail
2017-03-07 11:05:04 +01:00
Mathieu Magnin
a88b150c3c
Add remember me on login
2017-03-07 10:29:48 +01:00
Simon Lehericey
2536774519
DescriptionController: send initiatedMail notification
2017-03-07 10:27:14 +01:00
Simon Lehericey
3d7f04ad3d
DossierController: send receivedMail when the mail is ... received
2017-03-07 10:27:14 +01:00
Simon Lehericey
9d710336b3
MailTemplate: allow edition of all the new mails
2017-03-07 10:27:13 +01:00