Mathieu Magnin
e468612d95
Admin should be owner of procedure to destroy it
2017-07-20 14:30:36 +02:00
Simon Lehericey
5ec0e2ed18
Dossier: remove unused ordered_commentaires
...
as commentaires are sorted on the view _messagerie.haml.html
dossier_facade.commentaires.object.sort
2017-07-20 11:03:10 +02:00
Mathieu Magnin
b0c0477622
[ Fix #315 ] Order champs by procedure order in export
2017-07-19 16:31:30 +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
2b7a148540
Remove Procedure#published?
2017-07-13 17:01:38 +02:00
gregoirenovel
36bee67085
Add Procedure#brouillon?
2017-07-13 17:01:38 +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
07d390db09
Remove comments that were wrong
...
Having a foo_at column automatically generates the
#foo_at? method, not the #foo? method
2017-07-13 14:46:09 +02:00
gregoirenovel
c43f3fa415
Improve the formatting of the Procedure scopes
2017-07-13 14:46:09 +02:00
gregoirenovel
2f4f10683f
Delete now unused scopes on Procedure
2017-07-13 14:46:09 +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
Simon Lehericey
4ae9d8ef0d
[ Fix #592 ] Convert html_safe to sanitize
2017-07-13 10:14:16 +02:00
Simon Lehericey
da7af28f9f
[ Fix #592 ] Remove useless html_safe
2017-07-13 10:14:16 +02:00
gregoirenovel
3d4c93a7fb
Autofocus on email fields when relevant
2017-07-13 00:04:52 +02:00
Simon Lehericey
35affd69fc
Commentaires: avoid xss injection
2017-07-12 13:53:25 +02:00
Simon Lehericey
2e03f77e4d
InfoDossier: avoid xss injection
2017-07-12 13:47:59 +02:00
gregoirenovel
bb10e13e2f
[Ref #145 ] Don't use Procedure.archived anymore
2017-07-11 15:03:35 +02:00
gregoirenovel
f55b7914cf
[Ref #144 ] Don't use Procedure.published anymore
2017-07-11 14:51:43 +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
Simon Lehericey
831ccac685
Turbolinks: do not reload mailjet js on every page
2017-07-11 10:00:29 +02:00
Simon Lehericey
b2e99dd755
Turbolinks: do not reload application js on every page
2017-07-11 10:00:29 +02:00
Simon Lehericey
27cd42a100
fix administration view
2017-07-11 09:09:20 +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
811723e5fb
Use the state_nouveaux Dossier scope
2017-07-10 16:54:02 +02:00
gregoirenovel
3a602b05a4
Use the archived and not_archived Dossier scopes
2017-07-10 16:54:02 +02:00
gregoirenovel
f480f26bd4
Use the state_not_brouillon Dossier scope
2017-07-10 16:54:02 +02:00
gregoirenovel
09d596eec1
Remove a useless call to all
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
Simon Lehericey
b2ba5c597d
[ FIX #558 ] Attestation: fix access with multiple logins
2017-07-10 10:23:15 +02:00
Mathieu Magnin
aa929bb5b2
[ Fix #554 ] If procedure is hidden, then don't crash
2017-07-06 14:40:06 +02:00
Simon Lehericey
4fad288a8a
lastWeekOverview: fix template
2017-07-04 17:33:01 +02:00
Simon Lehericey
82d8871d03
DossierShow: fix unattended bug on @champs_private
2017-07-04 16:37:29 +02:00
Mathieu Magnin
ce171208da
Fix redirect loop for gestionnaire if hidden procedure is saved in procedure_filter
2017-07-04 14:34:26 +02:00
Mathieu Magnin
70c7c42e1f
[ Fix #430 ] Add delete procedure button
2017-07-04 14:34:26 +02:00
Mathieu Magnin
be3304f71e
Add a scope to Dossier to check if procedure is not hidden
2017-07-04 14:34:16 +02:00
Mathieu Magnin
760efcdad3
Add hidden_at on procedure
2017-07-04 14:33:40 +02:00
Simon Lehericey
12c12953d6
[ FIX #433 ] Add Raven Metadata on the current user/gestionnaire/admin ...
2017-07-04 14:18:46 +02:00
gregoirenovel
4ee17e44dc
[ Fix #529 ] Add missing JS file to new_design/application.js
2017-07-04 14:11:06 +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
Simon Lehericey
8aaf7df579
AttestationTemplate edit: id.nil => new_record?
2017-07-04 13:59:54 +02:00
gregoirenovel
97fa7d811a
Merge pull request #537 from sgmap/fix_home_header
...
Header: fix alignement in ff
2017-07-04 13:52:13 +02:00
Simon Lehericey
1d4a0dce56
Header: fix alignement in ff
2017-07-04 13:48:56 +02:00
gregoirenovel
84751cdedf
[ Fix #528 ] Fix a spelling mistake
2017-07-04 12:18:13 +02:00
Mathieu Magnin
dc4decc827
Add profile switcher in header
2017-07-03 14:34:31 +02:00
Mathieu Magnin
5d8c798369
Connexion button is a secondary button
2017-07-03 14:34:31 +02:00
Mathieu Magnin
33af09cae5
Account menu on header
2017-07-03 14:34:31 +02:00
Mathieu Magnin
b7dc511a7d
Create a clean application.js file for new design
2017-07-03 14:34:31 +02:00
Mathieu Magnin
649af19443
Add search field in navbar
2017-07-03 14:34:30 +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
gregoirenovel
38400cc2ce
Fix a capitalization mistake
2017-07-03 10:19:45 +02:00
gregoirenovel
0a1543c630
[ Fix #523 ] prioritaites -> prioritaires
2017-07-03 10:19:45 +02:00
gregoirenovel
6b90e0ccfa
[Ref #145 ] Record archived_at when archiving a procedure
2017-07-03 10:18:49 +02:00
gregoirenovel
cf573a1ec6
Use Procedure#archive instead of duplicating code
2017-07-03 10:18:48 +02:00
Simon Lehericey
fb50606680
Admin: remove useless data in admin creation mail
2017-06-30 17:21:41 +02:00
Simon Lehericey
149c1ba459
ProcedureOverview: change email title
2017-06-29 16:07:46 +02:00
Simon Lehericey
603e2dd020
ProcedureOverview: reboot model and layout
2017-06-29 16:07:46 +02:00
Simon Lehericey
689d0c2dd7
ProcedureOverview: add layout
2017-06-29 16:07:46 +02:00
Simon Lehericey
26afa24e49
[ Fix #512 ] Crisp: add crisp to homepage
2017-06-29 14:35:24 +02:00
Simon Lehericey
ee415c4aa6
[ FIX #509 ] add dossier id tag in attestation template
2017-06-28 10:59:14 +02:00
gregoirenovel
aeeb0dd22f
[ Fix #170 ] Keep drop down menu values for annot. privées when cloning
2017-06-27 14:31:33 +02:00
gregoirenovel
556359cd05
[ Fix #318 ] Add annotations privées to exported files
2017-06-27 14:27:02 +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
cf5398fe99
Record published_at when publishing a procedure
2017-06-27 13:55:17 +02:00
Simon Lehericey
3d99407495
[ Fix #499 ] Attestation: add maxlength to footer
2017-06-27 13:35:01 +02:00
Simon Lehericey
81984d2883
Attestation: remove misleading footer placeholder
2017-06-27 13:34:49 +02:00
Simon Lehericey
c16c19f8e6
[ Fix #499 ] Attestation: footer is now an text_field instead of a text_area
2017-06-27 13:14:47 +02:00
Simon Lehericey
84e3d8fbe0
Attestation_template: use etablissement inline_adresse
2017-06-27 11:15:25 +02:00
Simon Lehericey
d69d0f8a78
Etablissement: add inline_adresse
2017-06-27 11:15:25 +02:00
gregoirenovel
0e3ebfd819
[ Fix #183 ] Display “oui” or “non” instead of “true” or “false”
2017-06-26 14:53:38 +02:00
gregoirenovel
96dd853dbb
[ Fix #396 ] Don’t submit the publish form after a transfer
2017-06-26 10:51:28 +02:00
gregoirenovel
ed51c77895
Correctly display the success message when transfer was successful
2017-06-26 10:51:28 +02:00
gregoirenovel
12f61b490a
Reformat transfer.js.erb
2017-06-26 10:51:28 +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
8d9ca18406
Improve spacing in _model_transfer.html.haml
2017-06-26 10:51:27 +02:00
gregoirenovel
0e3f431d7d
Fix indentation in _modal_transfer.html.haml
2017-06-26 10:51:26 +02:00
gregoirenovel
bd2fcebf95
Change a silly title
2017-06-26 10:51:26 +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
gregoirenovel
3d11a35da8
Remove some commented code
2017-06-26 10:49:02 +02:00
Mathieu Magnin
3f90e82d09
[ Fix #327 ] flashes messages can deal with Arrays
2017-06-21 18:08:05 +02:00
Mathieu Magnin
8d008a51d0
[ fix #474 ] display devise errors with flashes
2017-06-21 18:07:58 +02:00
Mathieu Magnin
ac5c00c26f
[ fix #452 ] redesign sign up form
2017-06-21 17:38:38 +02:00
Mathieu Magnin
6777b51331
rename login css to auth, since it will also be used by sign up
2017-06-21 17:38:34 +02:00
Mathieu Magnin
f1ab350897
fix turbolinks bug when switching between layouts
2017-06-20 17:34:48 +02:00
Mathieu Magnin
250b858128
json style for hashes
2017-06-20 17:31:58 +02:00
Mathieu Magnin
e51d8965a2
[ Fix #468 ] fix demo login
2017-06-20 17:05:05 +02:00
Mathieu Magnin
482002fe79
Avis sign up should use generic layout
2017-06-20 13:56:49 +02:00
Mathieu Magnin
3f20d6fb9d
login should use generic two columns layout
2017-06-20 11:42:54 +02:00
Mathieu Magnin
3388dc0e1f
Create generic two-columns layout
2017-06-20 11:13:24 +02:00
Mathieu Magnin
a69915d8b5
standardize form title
2017-06-20 10:24:53 +02:00
Mathieu Magnin
f74462d826
Use generic css for avis_sign_up
2017-06-20 10:03:49 +02:00
Mathieu Magnin
2e795fb2a5
single quote => double quotes
2017-06-20 09:51:18 +02:00
Mathieu Magnin
c944088076
Add procedure overview on login
2017-06-19 18:21:15 +02:00
Mathieu Magnin
8b9eda0f43
No login link on header on login page
2017-06-19 18:21:15 +02:00
Mathieu Magnin
fb5c7e7d23
Make login responsive
2017-06-19 18:21:15 +02:00
Mathieu Magnin
b68a8b37e8
Redesign the login form
2017-06-19 18:21:15 +02:00
Mathieu Magnin
a82994f00f
Add inputs & labels to patron
2017-06-19 18:21:15 +02:00
Mathieu Magnin
765be88d6d
Add expand button on patron
2017-06-19 18:21:15 +02:00
Mathieu Magnin
90a643d4fb
Add /patron page 🎨
2017-06-19 18:21:15 +02:00
Mathieu Magnin
624fb13964
Buttons style
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
gregoirenovel
14823560a1
Expose the motivation on exported files
2017-06-19 15:01:14 +02:00
gregoirenovel
ce2def9c40
Expose the motivation on the API
2017-06-19 15:01:14 +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
523df76ecb
Attestation: fix attestation_template_admin_link
2017-06-16 15:44:40 +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
602527a09d
[ Fix #196 ] Attestation: building logic from template
2017-06-16 12:11:09 +02:00
Simon Lehericey
b443b5cefd
[ Fix #196 ] Dossier: add Attestation
2017-06-16 12:11:09 +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
Simon Lehericey
d7ff3d6139
[ Fix #196 ] AttestationTemplate: add model
2017-06-16 11:35:13 +02:00
gregoirenovel
b64c6d8817
Add a separator before the “Reouvrir” button
2017-06-13 15:14:51 +02:00
gregoirenovel
12d74be668
Refactor Backoffice::DossiersController#process_dossier
2017-06-13 15:14:51 +02:00
gregoirenovel
0120995533
[ Fix #197 ] Add the TAG_MOTIVATION email tag
2017-06-13 15:14:50 +02:00
gregoirenovel
b58c02180c
[ Fix #197 ] Allow a gestionnaire to add a motivation
2017-06-13 15:14:50 +02:00
gregoirenovel
88267a990d
[ Fix #197 ] Show the motivation on a dossier’s details
2017-06-13 15:14:48 +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
f1d66e40c3
Enable the Layout/EmptyLinesAroundModuleBody cop
2017-06-13 10:35:34 +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
f1907f4d0e
Enable the Layout/EmptyLinesAroundBlockBody cop
2017-06-13 10:35:23 +02:00