Commit graph

344 commits

Author SHA1 Message Date
Kara Diaby
fa874a0ea3 Permet de configurer le mail de réexamen du dossier par l'administrateur 2023-11-10 08:54:27 +00:00
mfo
87c3615774 review(tech): utilise un code unique pr les elements de l'autocomplete, corrections de typos, amelioration du code
Co-authored-by: LeSim <mail@simon.lehericey.net>
2023-11-09 11:10:17 +01:00
Martin
d2657d83ac amelioration(chorus.update): oriente l'admin a remplir tous les champs du cadre budgetaire. une fois le cadre budgetaire renseigné, oriente l'admin a ajouter un champ EJ 2023-11-09 10:09:14 +01:00
Lisa Durand
ac834b0c0a add confirmation page after publishing procedure for admin 2023-11-08 12:07:32 +01:00
Eric Leroy-Terquem
4d95f49c82 chore(conditions): update controllers and routes 2023-11-06 15:25:45 +01:00
Lisa Durand
baaf4e3517
Merge pull request #9653 from demarches-simplifiees/fix-close-procedure-page
[Fix] ETQ admin, je souhaite associer une démarche existante depuis le bouton "clore" du tableau de bord de la démarche
2023-11-06 13:13:33 +00:00
Lisa Durand
be8303f1c4 feedback review - remove unused class and simplify method 2023-11-06 11:22:09 +01:00
Paul Chavard
026885ebcf feat(conditional): annotations can be conditioned by champs 2023-11-03 10:45:07 +00:00
Paul Chavard
869d83dda9 feat(dossier): validate on change and revalidate on input 2023-10-31 17:52:00 +00:00
Lisa Durand
1de9130ab5 fix not displaying select on page close procedure and make the 2 buttons redirect to this page 2023-10-30 15:02:26 +01:00
Christophe Robillard
ef4113f8f9 filter all demarches by departement 2023-10-27 14:15:03 +02:00
Martin
ecb3909e99 chorus(autocomplete): autocomplete sur le centre de cout, domaine fonctionnel, referentiel de programmation 2023-10-19 07:14:27 +02:00
Martin
87f435d2d3 amelioration(procedure.chorus): ajoute le form component pour le 'crud' du ChorusConfiguration 2023-10-19 07:14:27 +02:00
Martin
fea0cb1c60 amelioration(procedure.chorus): connecte la tuile a un controller basique ayant les ACL 2023-10-19 07:14:27 +02:00
Kara Diaby
3b5bbb0779 Add new type de champ expression_reguliere with tests 2023-10-16 08:53:52 +00:00
krichtof
78058bc52a
Merge pull request #9550 from demarches-simplifiees/9542-reactivation-procedure
ETQ admin, je suis averti que je ne peux pas réactiver une démarche tant que la date limite de dépôt de dossiers n'est pas dans le futur
2023-10-10 09:45:51 +00:00
Colin Darie
5314af52f2
Merge pull request #9575 from colinux/exports-fix-dossiers-count
ETQ instructeur: corrige le décompte du nombre de dossiers exportés une fois l'export généré
2023-10-09 12:40:36 +00:00
Colin Darie
640f729413
feat(exports): persist instructeur requestor & dossiers count 2023-10-09 11:23:15 +02:00
simon lehericey
564939e83a fix: allow conditional on first child of bloc based on the first champ
The upper_coordinates were wrong in administrateur/type_de_champ_controller. The upper coordinates outside the bloc where missing.

with the following tdc:
- number
- bloc
  - text # this text can be conditioned by the number
2023-10-03 15:17:50 +02:00
Christophe Robillard
ba56c79325 admin can't reactivate procedure if auto archive on past 2023-10-03 11:11:17 +02:00
krichtof
428ae4a45a
Merge pull request #9507 from demarches-simplifiees/9449-signature-groupe-instructeur
9449 ETQ instructeur ou admin, je peux apposer sur une attestation un tampon dédié à un groupe instructeur
2023-09-29 14:20:46 +00:00
Colin Darie
d4198869fb
chore(exports): dropdown menu re-uses the same pending export or create a fresh one
Pour permettre d'avoir des données fraiches dans un export tout
en conservant l'historique des exports,
la demande d'export depuis le menu créé toujours un nouvel export sauf:
- si un autre export identique est déjà en préparation
- si un autre export identique s'est terminé il y a moins de 5 minutes

Co-Authored-By: Lisa Durand <lisa.c.durand@gmail.com>
2023-09-28 15:23:31 +02:00
Colin Darie
d9687f7418
chore(exports): minor wording improvements and clarifications 2023-09-28 12:35:26 +02:00
Lisa Durand
58a143b2c7
improve wording and display for export page 2023-09-28 12:35:15 +02:00
Lisa Durand
282df1b44b
add link to export page in flash message for instructeur 2023-09-28 12:35:14 +02:00
Colin Darie
fc66f4b05d
refactor(exports): drop useless exports relation dependency for exports dropdown
Since the dropdown does not list download links anymore,
we don't have to pass them a dynamic exports list.

Co-Authored-By: Lisa Durand <lisa.c.durand@gmail.com>
2023-09-28 12:35:08 +02:00
Colin Darie
82dd05c189
chore(exports): finders by groupe instructeurs compatible across exports components
Co-Authored-By: Lisa Durand <lisa.c.durand@gmail.com>
2023-09-28 12:35:07 +02:00
Colin Darie
d231ec35f4 refactor(attestation): groupe instructeur add signature shared
Co-Authored-By: Christophe Robillard <christophe.robillard@beta.gouv.fr>
2023-09-22 10:24:16 +02:00
Colin Darie
4c7664d61c fix(admin): missing siret & service alert don't override action alert
Co-Authored-By: Christophe Robillard <christophe.robillard@beta.gouv.fr>
2023-09-22 10:24:16 +02:00
Colin Darie
934e86a465 refactor(attestation): groupe instructeur signature shared
Co-Authored-By: Christophe Robillard <christophe.robillard@beta.gouv.fr>
2023-09-22 10:24:16 +02:00
Colin Darie
ad10335888 feat(groupe-instructeur): admin can preview signature in attestation
Co-Authored-By: Christophe Robillard <christophe.robillard@beta.gouv.fr>
2023-09-22 10:24:16 +02:00
Christophe Robillard
c121a8b2dc admin can add groupe_instructeur signature 2023-09-22 10:24:16 +02:00
Christophe Robillard
46edaed6bc extract uninterlace_png method 2023-09-22 10:24:16 +02:00
seb-by-ouidou
d29bbf6d4f
Merge branch 'main' into feature-ouidou/existing_procedure_hidden_as_template 2023-09-21 15:53:38 +02:00
seb-by-ouidou
5b9423bab3 fix: remove hidden_at_as_template from filter 2023-09-21 13:50:23 +00:00
seb-by-ouidou
0d2cd0fe5d feat(procedure): hide as template 2023-09-19 11:21:27 +00:00
Eric Leroy-Terquem
588143f9fd feat(routing): can create simple routing from epci tdc 2023-09-18 09:32:07 +02:00
Eric Leroy-Terquem
370d853378 feat(routing): can create simple routing from communes tdc 2023-09-13 10:45:21 +02:00
Eric Leroy-Terquem
e255bb9929 refactor(routing): extract methods to create groups from tdcs 2023-09-13 10:22:00 +02:00
Eric Leroy-Terquem
c2beca7d6d feat(routing): can create simple routing from regions tdc 2023-09-13 10:22:00 +02:00
Eric Leroy-Terquem
d0da808325 feat(routing): can add a routing rule with not_eq operator 2023-09-05 15:57:31 +02:00
LeSim
3e193675aa
Merge pull request #9392 from demarches-simplifiees/move-groupe-instructeur-validation-to-model
Tech : déplace une validation sur le groupe d'instructeurs défaut du controleur au modèle
2023-08-31 09:45:03 +00:00
Eric Leroy-Terquem
ca25788f07 feat(routing): use only department codes in routing rules 2023-08-29 15:50:42 +02:00
Eric Leroy-Terquem
8d0fffe44f refactor(type de champ): extract codes_and_names method 2023-08-29 15:50:42 +02:00
Eric Leroy-Terquem
2827db5263 feat(routing): can create simple routing from departements tdc 2023-08-29 15:50:42 +02:00
Eric Leroy-Terquem
fc2c196cfa chore(groupe instructeur): move closed validation for defaut groupe to model 2023-08-21 16:31:54 +02:00
Eric Leroy-Terquem
7680d5093e feat(routing): create routing rule for dropdown other option 2023-07-27 15:42:43 +02:00
Eric Leroy-Terquem
4749b43697 refactor(routing): use drop_down_options 2023-07-27 15:42:26 +02:00
Christophe Robillard
ef7b0c7377 alert admin with procedures without service 2023-07-27 10:08:30 +02:00
Christophe Robillard
beaf5751bb alert admin with service without siret 2023-07-27 10:08:30 +02:00
simon lehericey
114bc9bd9b clean: remove unused var 2023-07-19 09:56:35 +02:00
Eric Leroy-Terquem
0e58e10b82 refactor(DossierAssignment): move create_assignment to assign_to_groupe_instructeur 2023-07-18 16:54:00 +02:00
Eric Leroy-Terquem
96d17d03ec feat(DossierAssignment): create assignments when admin reaffect all dossiers 2023-07-18 16:54:00 +02:00
Eric Leroy-Terquem
082db0ed02 feat(DossierAssignment): create Assignment when admin reaffect dossiers 2023-07-18 16:54:00 +02:00
Lisa Durand
7b1b771b25 fix fropdown navbar profile 2023-07-12 18:07:10 +02:00
Colin Darie
8c210e6fc7
feat(admin): config sva/svr 2023-07-11 10:01:45 +02:00
Eric Leroy-Terquem
f959450477
Merge pull request #9244 from demarches-simplifiees/refactor-routing-update
Tech : mise à jour du routage sans callback
2023-07-04 09:39:00 +00:00
Eric Leroy-Terquem
1923eb7d23 feat(routing): filter with only one form 2023-07-04 10:04:55 +02:00
Eric Leroy-Terquem
1b5f3a67eb feat(routing): filter only groups to configure 2023-07-04 10:04:35 +02:00
Eric Leroy-Terquem
7598b0a513 remove previous routing sytem code 2023-07-03 14:58:45 +02:00
Eric Leroy-Terquem
b94e8edb67 refactor(routing): move toggle_routing to procedure model 2023-07-03 14:47:56 +02:00
Eric Leroy-Terquem
2eb3685d38 refactor(routing): do not disable instructeurs_self_management when reseting routing 2023-07-03 14:47:56 +02:00
Eric Leroy-Terquem
d6fea4ed95 refactor(routing): toggle routing when custom routing 2023-07-03 14:47:56 +02:00
Eric Leroy-Terquem
520050933e refactor(routing): toggle routing when simple routing 2023-07-03 14:47:56 +02:00
Eric Leroy-Terquem
f03d10e246 perf(routing): use instance variable of procedure 2023-07-03 14:47:56 +02:00
Eric Leroy-Terquem
5929c8354c refactor(routing): toggle routing when destroy group 2023-07-03 14:47:56 +02:00
Eric Leroy-Terquem
ebb48b0aec refactor(routing): toggle routing from controller 2023-07-03 14:47:56 +02:00
Lisa Durand
9338a73362 add possibility to override generated pj list by admin 2023-06-22 09:50:38 +02:00
Colin Darie
f675d2d1a7
Merge pull request #9196 from colinux/fix-admin-publication-errors
ETQ admin je veux voir les erreurs lorsque la (re-)publication échoue
2023-06-14 09:56:46 +00:00
Paul Chavard
b3aeb46c1b fix(prefill): it should be possible to prefill a dossier on a test procedure 2023-06-14 09:14:12 +01:00
Colin Darie
889940af2a fix(administrateur): renders errors when publication fails 2023-06-13 19:11:59 +02:00
Eric Leroy-Terquem
5f1709f62d add a flash notice after reset draft 2023-06-13 09:34:48 +02:00
simon lehericey
25ebfc4928 always set procedure.instructeurs_self_management_enabled to true when routing_enabled? 2023-05-31 11:38:16 +02:00
Eric Leroy-Terquem
692010fa32 destroy all groups but defaut 2023-05-31 11:38:16 +02:00
Eric Leroy-Terquem
526f70f9c0 add wizard 2023-05-31 11:38:16 +02:00
simon lehericey
01caa498d3 add simple_routing 2023-05-31 11:38:16 +02:00
simon lehericey
8b568c2035 add ajout 2023-05-31 11:38:16 +02:00
simon lehericey
6b3447d71b add options 2023-05-31 11:38:16 +02:00
simon lehericey
174f7a7c53 add one_groupe_management_component 2023-05-31 11:38:16 +02:00
simon lehericey
142ac9173d add groupes_search_component 2023-05-31 11:38:16 +02:00
Lisa Durand
a20ec44841
Merge pull request #9074 from demarches-simplifiees/add-more-info-on-procedure-description
[Refonte page accueil demarche] Détailler la description pour plus de clarté pour l'usager
2023-05-30 09:45:32 +00:00
Lisa Durand
7340206f81 rollback - add just one new field and use actual description field 2023-05-24 11:31:24 +02:00
Eric Leroy-Terquem
00561999ec fix(type de champ): do not raise error if tdc already destroyed 2023-05-23 15:52:51 +02:00
Lisa Durand
4a51a9a351 add two more fields for procedure description what et and for_who 2023-05-22 15:36:48 +02:00
Lisa Durand
7e39e8113b feedback PR Colin 2023-05-16 17:54:37 +02:00
simon lehericey
6148f24387 Revert "Merge pull request #9002 from tchak/feat-procedure-clone-preview-published"
This reverts commit 7a6f46a8ad, reversing
changes made to 4513c52213.
2023-05-12 11:29:11 +02:00
Paul Chavard
f563fb3269
Merge pull request #8990 from tchak/fix-limit-textarea-size
ETQ administrateur, je veux pouvoir limiter le nombre de caractères dans les champs "texte long"
2023-05-05 14:54:41 +00:00
Paul Chavard
fe041b4c6c fix(textarea): fix character limit option 2023-05-05 16:36:51 +02:00
Paul Chavard
471da7eb61 Revert "Revert "Merge pull request #8844 from demarches-simplifiees/feat/7739""
This reverts commit 909d726429.
2023-05-05 16:36:51 +02:00
Paul Chavard
616188bfe3 feat(administrateur): when clone or preview procedure should use published revision if not the owned 2023-05-04 16:15:55 +02:00
Nicolas Cavigneaux
940405cea8
fix: Avoid Brakeman warning about insecure redirect 2023-05-03 11:35:29 +02:00
Nicolas Cavigneaux
3aa6a5e28e
fix: url helper method calls for files 2023-05-03 11:35:28 +02:00
Paul Chavard
909d726429 Revert "Merge pull request #8844 from demarches-simplifiees/feat/7739"
This reverts commit 04fbfa15b7, reversing
changes made to aac1cc7161.
2023-04-28 16:08:24 +02:00
Kara Diaby
f3f49941b6 Ajoute un compteur sur les champ de type textarea sur l'interface usager 2023-04-27 10:28:43 +02:00
LeSim
4c5e903673
Merge pull request #8887 from demarches-simplifiees/8839-filter-by-siret
Filtrer les démarches par service
2023-04-26 19:44:08 +00:00
Paul Chavard
586286cb08
Merge pull request #8916 from demarches-simplifiees/can-update-defaut-groupe-instructeur-2
feat(routage): permet de changer le groupe par défaut
2023-04-20 08:28:46 +00:00
simon lehericey
e64ac79f05 tech(refactor): much nicer code, thx LeSim
root -> rooted_tree

depth_cach -> walk

smal refactor

comment

remove form for header_section

remove seen_at from header section

header_section: champ -> header_section

champ_subree: remove if not

remove root_depth use header_section_level_value instead

remove unused include

remove ChampTreeComponent

rename ChampsSubtreeComponent to SectionComponent

use TreeableConcern only in section component

remove fields_for_champ_component

champs -> tail

add split_section_champ helper

refactor(editable_champ::header_section): keep same interface everywhere

fix(repetition): add spec for SectionComponent on repetitions
2023-04-20 08:22:02 +02:00
Martin
b9faa26560 amelioration(editeur-de-champs): permet de choisir un niveau de titre (de 1 à 3) pour les champs de type Champs::HeaderSectionChamp. Gère les erreurs dans le cas ou un administrateur supprimerait un HeaderSection qui casserait l'ordre des titre [ex: titre 1,2,3. et l'admin supprime le titre 1 et il reste que 2,3]. 2023-04-20 08:22:02 +02:00
Eric Leroy-Terquem
aecd7559d2 feat(groupe instructeur): cannot disable default groupe instructeur 2023-04-19 13:52:42 +02:00
Eric Leroy-Terquem
09b05550ab feat(groupe instructeur): cannot delete defaut_groupe_instructeur 2023-04-19 13:52:42 +02:00