Commit graph

267 commits

Author SHA1 Message Date
mfo
1989c3e75b
fix(Champ.carte): add missing label to search input instead of placeholder
Co-authored-by: Corinne Durrmeyer <corinne@inseo.fr>
2024-04-12 11:56:34 +02:00
mfo
35c92ee906
feat(champs.errors.format): better format for error below champs
Co-authored-by: Corinne Durrmeyer <corinne@inseo.fr>
2024-04-12 11:50:43 +02:00
mfo
d8a8fb53ce
feat(Champ.carte): some error style on carte 2024-04-12 10:59:42 +02:00
mfo
a052341c93
fix(Champ.address): add missing fr-select dsfr class name 2024-04-12 10:45:37 +02:00
mfo
626f3780f6
fix(Champ.commune): add missing fr-select dsfr class name 2024-04-12 10:45:24 +02:00
mfo
c22438fb75
feat(Champ.annuaire_education): add missing fr-input class name 2024-04-12 10:45:12 +02:00
mfo
4773d9ebad
feat(Champ.repetition): hide destroy button of first repetition row when the repetition is mandatory 2024-04-12 09:29:00 +02:00
mfo
b245d9b063
Merge pull request #10220 from demarches-simplifiees/fix-drop-down-missing-hint
ETQ usager : Champ choix multiple, ajouter une aide a a la saisie
2024-04-02 09:28:34 +00:00
Corinne Durrmeyer
ba290110e5 feat(multiple_drop_down_list): Replace blank option 2024-03-26 15:39:27 +01:00
Corinne Durrmeyer
ab6a76ad46 feat(multiple_drop_down_list) : Add missing space - fix #10185 2024-03-26 15:27:59 +01:00
Paul Chavard
06d81dcfaf
Merge pull request #10169 from tchak/refactor-champ-public_id
fix(champ): use public_id in views
2024-03-26 10:31:13 +00:00
Paul Chavard
6ad0b901b6 fix(champ): use public_id in views 2024-03-26 11:23:23 +01:00
Paul Chavard
b02ba1e909 feat(textarea): autoresize textareas 2024-03-25 19:53:29 +01:00
Paul Chavard
f589129ef5 chore(attachment): remove unused replace code 2024-03-25 15:13:14 +01:00
Paul Chavard
eff03aaf23 refactor(dossier): label indexes based on type_de_champ not champ 2024-03-20 09:58:47 +01:00
Paul Chavard
900db5624f refactor(champs): if champ not found - build it 2024-03-17 23:51:45 +01:00
Paul Chavard
3b13595a41
Merge pull request #10027 from mfo/US/input-state-valid-after-update
correctif(Champs::Civilite): ETQ usager, j'aimerais que le champs de type civilité ait le même style d'erreur que les autres
2024-03-07 14:03:06 +00:00
Martin
0519dece96 fix(Champs::Civilite): fix dsfr missing red feedback, add green feedback 2024-03-06 15:56:36 +01:00
Paul Chavard
a247ec6c12
Merge pull request #9695 from tchak/use-types-de-champ-as-source-of-truth
refactor(dossier): use revision as source of truth to diplay champs
2024-03-04 15:03:02 +00:00
Paul Chavard
02591da16b refactor(section): update section components 2024-03-04 10:59:11 +01:00
Paul Chavard
6a69b350f7 fix(address): nullify data when empty or invalid address is entered 2024-03-04 09:06:50 +01:00
Colin Darie
01ab59c2ed
style(form): position correctly the mandatory star on checkbox when text is on multiple lines 2024-02-21 18:04:33 +01:00
Colin Darie
e1eba45739
style: improve readibility of updated-at/rebase notices, closer to dsfr colors 2024-02-21 18:04:32 +01:00
Paul Chavard
702b9dd8b3 fix(champ): do not reset data on champs without fetch_external_data 2024-02-21 08:54:08 +01:00
Paul Chavard
20307f1d21 refactor(address): use directly BAN data 2024-02-16 12:15:14 +01:00
Colin Darie
bd3c2c070a
Merge pull request #9957 from demarches-simplifiees/finalize-rna-rnf-ldu
ETQ instructeur et consommateur API, la vue du champ RNA est harmonisée avec le champ RNF
2024-02-14 15:30:54 +00:00
Paul Chavard
ff95a812e2 fix(combobox): always sort on the client 2024-02-13 12:26:43 +01:00
Lisa Durand
9e3f28e87b
add rnf and rna address in form view 2024-02-12 17:20:05 +01:00
Colin Darie
f112569192
fix(haml-lint): TrailingEmptyLine 2024-02-12 09:33:23 +01:00
Colin Darie
9639d68ebf fix(checkbox): show mandatory icon on mandatory champ
Closes #9891
2024-02-09 12:52:21 +01:00
Colin Darie
fb14afc530 fix(rna): real RNA identifier could contain at least 1 letter, despite of specs 2024-02-06 15:02:57 +01:00
Colin Darie
e17c3bd046
Merge pull request #9839 from mfo/US/fix-filter-focus-out-with-not-selected-filter
correctif : ETQ instructeurs, lorsque je sors du composant de filtrage sans choisir une option, le site renvoie une erreur
2023-12-21 08:42:12 +00:00
Martin
e43c2f1407 feat(procedure_revision.compate): track and show diff for TypeDeChamp.explication between draft and published revisions 2023-12-19 10:51:06 +01:00
Martin
f7feca5fd1 feat(editable_champ.explication): show downloadable AttachedOne 2023-12-19 09:53:27 +01:00
Martin
95fd6c2a69 tech(combobox): propage le changement de signature dans le reste de la codebase 2023-12-15 11:23:25 +01:00
Paul Chavard
dd24a935bf fix(date): show correct format based on browser locale 2023-12-01 21:02:14 +00:00
Lisa Durand
31cb62e27d improve dark mode for admin user 2023-11-15 19:09:11 +01:00
Martin
13624f0f7e add type de champs ej bin/rails generate add_champ EngagementJuridique 2023-11-09 10:09:13 +01:00
Eric Leroy-Terquem
0968f02a26
Merge pull request #9648 from demarches-simplifiees/add-rnf-service
Ajout d'un nouveau référentiel : le Répertoire National des Fondations (RNF)
2023-11-08 09:06:47 +00:00
Paul Chavard
34a76d8afd feat(dossier): commune champ is an autocomplete now 2023-11-07 20:58:39 +01:00
Eric Leroy-Terquem
694cbcd0a2 feat(rnf): add rnf type_de_champ 2023-11-07 14:21:28 +01:00
Colin Darie
c4272e3bac
fix(dropdown-other): other input alignement/markup 2023-10-30 11:05:27 +01:00
Paul Chavard
d76123831c fix(drop_down_list): fix other option with combobox and some cleanup 2023-10-27 18:11:26 +02:00
mfo
81ccc8ace2
Merge pull request #9630 from tchak/fix-champ-address
fix(address): champ address should allow custom values
2023-10-23 13:23:59 +00:00
Paul Chavard
045b4942d9 fix(epci): do not show let select departements with no epci 2023-10-23 12:41:24 +02:00
Paul Chavard
cf3249dba5 fix(address): champ address should allow custom values 2023-10-23 12:35:19 +02:00
Kara Diaby
870efba29b
Merge pull request #9535 from demarches-simplifiees/feat/9411
ETQ administrateur, je veux pouvoir valider des champs avec des règles simples (Regexp)
2023-10-17 09:11:32 +00:00
Paul Chavard
63303e51f8 fix(dossier): improuve decimal field formatting 2023-10-16 16:50:07 +02:00
Kara Diaby
a26df43577 User : Ajoute le type de champ Expression régulière coté utilisateur 2023-10-16 08:53:52 +00:00
Paul Chavard
89582d2e09 feat(dossier): use new combobox on champ adresse 2023-10-12 20:18:08 +02:00
Colin Darie
5ea7c15251
style(champ civilite): better vertical margin between label & fieldset 2023-10-09 13:15:15 +02:00
Colin Darie
9e5ade817a
fix(form): conditional hides fieldset__element so vertical margins are not cumulated 2023-10-09 13:15:13 +02:00
Eric Leroy-Terquem
c53b0a1c9e fix(editable_champ): can enter negative number 2023-10-06 15:43:59 +02:00
Eric Leroy-Terquem
e17d694b30 fix(editable_champ): can enter negative integer number 2023-10-06 15:43:59 +02:00
Colin Darie
9673485904
chore(flipper): delete disable_label_optional_champ_2023_06_29 feature flag 2023-10-03 14:37:41 +02:00
Colin Darie
8c66f4d6df
chore(form): remove "optional" mention because people never fill them
Closes #9540
2023-10-03 14:37:20 +02:00
Colin Darie
60882e0844
chore(form): respect dsfr fr-fieldset and elements expected markup 2023-09-28 18:33:26 +02:00
Colin Darie
75bf30bed2
feat(champ-numbers): format value in input to a backend compatible value 2023-09-28 15:26:35 +02:00
Colin Darie
aac7de208f
chore(champs-number): render as text input to validate them when invalid
Les input=number n'ont pas de value lorsque la valeur saisie n'est pas un
nombre. Par conséquent dans ces cas là, nous ne pouvions faire remonter
au backend pour validation / enregistrement, et il n'y avait aucun
feedback signalement l'erreur à l'usager.

On les convertit en inputs texte, avec les adaptations nécessaires
pour montrer le pavé numérique sur mobile, et un style correct.
2023-09-28 15:26:33 +02:00
Christophe Robillard
abad463bb1 remove placeholder for decimal number component 2023-09-25 18:17:04 +02:00
Christophe Robillard
168616b8c6 remove placeholder for phone component 2023-09-25 18:17:04 +02:00
Christophe Robillard
18e5c32363 remove placehoder for rna component 2023-09-25 18:17:04 +02:00
Christophe Robillard
8bacb30e36 remove placeholder for iban component 2023-09-25 18:17:04 +02:00
Christophe Robillard
bd3f7eeb38 remove placeholder for siret component 2023-09-25 18:17:04 +02:00
Christophe Robillard
ae08f044ed remove placeholder for email component 2023-09-25 18:17:04 +02:00
Christophe Robillard
e972514ec6 remove useless blank line 2023-09-25 18:17:04 +02:00
Christophe Robillard
9c2c378588 use model locales for titre identite hint 2023-09-25 18:17:04 +02:00
Martin
04fe3ad2b6 correctif(repetition.commune): ETQ usager, lorsque j'ai plus d'une repetition ayant un champ commune, les ids des options des input[type=radio] des communes partageant le meme code postal ne sont pas uniques, on boucle sur la 1ere repetition 2023-09-20 17:56:17 +02:00
Paul Chavard
fb917a221d feat(combobox): use ComboboxComponent on drop_down_list champs 2023-09-15 14:49:13 +02:00
LeSim
d8bfe07246
Merge pull request #9461 from colinux/fix-spinner-position
ETQ usager, fix position du spinner pour les champs conditionnels
2023-09-06 14:32:09 +00:00
Colin Darie
95159feb25 fix(spinner): remove obsolete siret spinner 2023-09-06 13:17:01 +02:00
Kara Diaby
47f305216f champ civilite au DSFR 2023-09-06 09:02:25 +00:00
simon lehericey
9e0aadd2dd fix: always add an empty option in mandatory 2023-09-05 14:18:44 +02:00
Martin
4d2307f683 amelioration(choix.simple): lorsqu'il y a un champ autre, le positionne proprement 2023-09-04 10:55:48 +02:00
Martin
9a754e4559 amelioration(choix.multiple): utilise le aria-pressed plutot qu'une class custom 2023-09-04 10:55:48 +02:00
Martin
094f4f3ce6 tech(refacto): extrait la logique de rendu du dsfr sur les composants 2023-09-04 10:55:48 +02:00
Martin
f54ab0bf96 amelioration(form): utilise les bonnes classes DSFR pour divers composants 2023-09-04 10:55:48 +02:00
Martin
2c04be5289 amelioration(champs.multiple_dropdown_list): passe le champs choix multiple au DSFR, l'encapsule dans un fieldset 2023-09-04 10:55:48 +02:00
Martin
b4593a947d amelioration(champs.linked_dropdown_list): passe le champs liste liées au DSFR, l'encapsule dans un fieldset 2023-09-04 10:55:48 +02:00
Martin
3697d8335d correctif(checkbox_component): ajoute le labelledby_id au <label> des checkbox unique car elles n'ont pas de de ChampLabelComponent (inlinées) 2023-09-04 10:55:48 +02:00
Martin
40d1de22ea correctif(champ_label_component): ajoute le labelledby_id aux <legend> sans quoi les ancres vers les erreurs plantent 2023-09-04 10:55:48 +02:00
Martin
b34b4fcb0c tech(extraction.erreurs): isole l'affichage des erreurs d'un champs ds un composant 2023-09-04 10:55:48 +02:00
Martin
d164605f32 amelioration(champs.commune): passe le champs commune au DSFR, l'encapsule dans un fieldset et améliore le wording 2023-09-04 10:55:48 +02:00
Martin
a947457b57 amelioration(champs.epci): passe le champs epci au DSFR et l'encapsule dans un fieldset 2023-09-04 10:55:48 +02:00
Kara Diaby
27e7bc1dbd Deux menus deroulants liés au DSFR 2023-09-04 10:55:48 +02:00
Kara Diaby
74d04c84f5 Multiple drop down list au DSFR 2023-09-04 10:55:48 +02:00
Kara Diaby
58bcdb406d Multiple drop down list au DSFR 2023-09-04 10:55:48 +02:00
Kara Diaby
37796b8843 Checkbox au DSFR 2023-09-04 10:55:48 +02:00
Kara Diaby
0ab31ba649 Boutons radio au DSFR 2023-09-04 10:55:48 +02:00
Kara Diaby
fb8fcd00b3 Passe les champs select au DSFR 2023-09-04 10:55:46 +02:00
Martin
c86c1efcb7 amelioration(design): ETQ usager la cohabitation du design d'un form mi-DSFR, mi-DS n'est pas trop moche
amelioration(design): ETQ usager la cohabitation du design d'un form mi-DSFR, mi-DS n'est pas trop moche
2023-07-26 14:27:50 +02:00
Martin
405c8dec17 amelioration(champ.textarea): affiche les retours UX [taille max et ou taille actuelle] avec le composant DSFR 2023-07-26 14:27:50 +02:00
Martin
4858239768 amelioration(champ.rna): affiche les retours UX avec les bons composant text dsfr 2023-07-26 14:27:50 +02:00
Martin
0edf5d2c58 amelioration(champ.siret): affiche l'etablissement avec le hint dsfr info 2023-07-26 14:27:50 +02:00
Martin
b88b537518 poc(erreur): sur les champs 2023-07-26 14:27:50 +02:00
Paul Chavard
d5820277c0 feat(cojo): add cojo type de champ 2023-07-10 14:57:34 +02:00
Paul Chavard
a9f431caa5 feat(dossier): implement champ polling 2023-07-10 14:57:34 +02:00
Martin
2350b5cc7f amelioration(admin): permet a un admin de desactiver le suffix "facultatif" sur les labels des champs non obligatoires 2023-06-29 11:20:14 +02:00
Martin
217f32deca review(colin): quelques suggestions de co-linux 2023-06-23 10:45:35 +02:00
Martin
43c6f03d10 amelioration(users/dossiers#demande): passage a la nouvelle ui/ux
wip
2023-06-22 16:54:17 +02:00