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