Commit graph

182 commits

Author SHA1 Message Date
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
Paul Chavard
a432323843 fix(dossier): only show optional text on public champs 2023-06-14 19:00:06 +01:00
Kara Diaby
804f89f444 Changements sur le caractère obligatoire / facultatif et l'asterisque interface usager et page de connexion 2023-06-12 14:43:10 +00:00
Eric Leroy-Terquem
ea9213bf90 fix typos in components 2023-06-12 15:13:25 +02:00
Colin Darie
628026f524
Merge pull request #9154 from colinux/fix-form-owned-button-turbo
ETQ utilisateur je veux que mes PJ soient supprimées en turbo
2023-06-12 11:59:56 +00:00
Paul Chavard
f563e210f3 refactor(carto): geo area as component 2023-06-12 10:33:56 +02:00
Colin Darie
61bc59109d fix(turbo): PJ deletion: turbo: true must be set on button in addition to form 2023-06-08 11:16:55 +02:00
Paul Chavard
6945b3f438 fix(carte): no autosave on champ carte 2023-06-06 16:46:32 +02:00
simon lehericey
017ebbcd18 UI: change alert to warning 2023-05-12 10:04:11 +02:00
simon lehericey
7b17bfe0a1 feat: add info for screen reader 2023-05-12 10:03:54 +02:00
Colin Darie
79f450a422
Merge pull request #9021 from colinux/feat-en-construction-fork
ETQ usager, je modifie et soumets à nouveau mon dossier “en construction"
2023-05-10 19:46:40 +00:00
Colin Darie
f135df0c74
refactor(fork): feedback to user that a modification must be submitted 2023-05-09 18:49:53 +02:00
Paul Chavard
08a2a2c9aa
feat(dossier): fork dossier when editing en construction 2023-05-09 17:16:47 +02:00
Martin
180c659a84 correctif(sections.numerotation-automatique): ETQ administrateur, je souhaite que la numerotation automatique des titres de section fonctionne meme quand si deux titres de sections se succèdent 2023-05-09 14:23:53 +02: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
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
04fbfa15b7
Merge pull request #8844 from demarches-simplifiees/feat/7739
Ajoute un compteur sur les champ texte
2023-04-27 13:53:20 +00:00
Paul Chavard
a64549d716
Merge pull request #8956 from tchak/update-coldwired
ETQ usager, je veux que le focus suive les changement d'interface
2023-04-27 09:31:45 +00:00
Paul Chavard
f9b8dac024 feat(champ): use new data-turbo-focus-group to manage focus on multiple drop down 2023-04-27 10:40:14 +02:00
mfo
79a7877a09
Merge pull request #8961 from mfo/US/fix-fieldset-max-width
ETQ usager, quand une les balises <select> avec une <option> ayant un libelle tres long, le select prends la largueur du contenu de l'option et force un scroll horizontal sur la page
2023-04-27 08:33:29 +00: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
Martin
bbd565edee correctif(ui): les balises <select> avec un balise <option> à rallonge prenent la largueur du contenu de l'option
Update app/components/editable_champ/drop_down_list_component.rb

Co-authored-by: Colin Darie <colin@darie.eu>
2023-04-27 10:05:07 +02:00
Martin
44c84b94ca amelioration(titre-de-section): saute un niveau de profondeur pour les titres de section 2023-04-27 09:29:51 +02:00
Julie Salha
e6004d83f3
Merge branch 'main' into 8827-user-path-translations-fix 2023-04-25 09:36:05 +02:00
Martin
8c78008b4d correctif(usager.depot-dossier): ETQ usager, les titres de section conditionnés etait visible meme si la condition n'etait pas remplie 2023-04-24 10:47:20 +02: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
cc2c856ec2 amelioration(bloc-repetable): wrap les blocs repetatable dans des fieldsets 2023-04-20 08:22:02 +02:00
Martin
88abefb370 tech(remaniement): isole la logique de rendu au champs_subtree_component 2023-04-20 08:22:02 +02:00
Martin
ad77b9321b amelioration(formulaire-usager): groupes les champs suivant un titre de section dans une balise html de type <fieldset> de sorte a améliorer l'accessibilite de la plateforme 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
Colin Darie
e5df31fd66 fix(yaml): yes & no are reserved keywords in yaml, so they have to be quoted 2023-04-19 18:26:40 +02:00
Paul Chavard
0912a30eb0 feat(dossier): use turbo on select with other 2023-04-18 15:24:23 +02:00
Paul Chavard
eb599394e0 feat(dossier): use turbo on linked lists 2023-04-18 15:24:23 +02:00
Julie Salha
f80cccba93 reset component yes no structure 2023-04-18 14:54:01 +02:00
Julie Salha
93c5c52e19 add translations for yes-no radios form and update dsfr styles 2023-04-18 13:43:11 +02:00
Paul Chavard
def32a3615 chore(dossier): remove fallback from commune champ 2023-04-11 10:49:01 +02:00
Paul Chavard
52c8b0b297 feat(dossier): use turbo to select linked dossier 2023-04-05 11:40:03 +02:00
Paul Chavard
fce78bbf30 feat(dossier): multiselect without react 2023-04-03 16:54:50 +02:00
Paul Chavard
ed62d171ce fix(commune): improuve label and error message 2023-04-03 11:24:32 +02:00
Martin
035da4403f chore(a11y): mutualise la gestion des <button> qui font des action POST/DESTROY dans un composant unique 2023-03-31 16:15:40 +02:00
Martin
d161a624c5 a11y(bloc-repetable): ETQ usager qui navigue au clavier, lorsque je supprime une repetition, le focus revient soit sur le premier champ de la derniere repetition, soit sur le bouton ajouter une repetition [si il y a pas de repetition presente] 2023-03-31 08:51:39 +02:00
Martin
8b6a7689fa a11y(bloc-repetable.repetition): ajoute une repetition via un bouton et non un lien 2023-03-31 08:51:39 +02:00
Martin
92d3f9c192 a11y(bloc-repetable.repetition): supprime une repetition via un bouton et non un lien 2023-03-31 08:51:39 +02:00
Martin
a3f1e1926a a11y(bloc-repetable): ETQ usager qui navigue au clavier, lorsque j'ajoute un champs repetable, le focus vient sur le 1er champs du bloc repetable 2023-03-31 08:51:39 +02:00
Colin Darie
e36dc19cc4 fix(explication): render collapsible text into collapse element 2023-03-30 12:46:31 +02:00
Paul Chavard
f1658dedc5 feat(commune): translate messages in component 2023-03-29 15:42:33 +02:00
Paul Chavard
dc605015b3 feat(commune): chose commune by postal code 2023-03-28 16:34:19 +02:00
Paul Chavard
f8b01811c1 fix(dossier): champ explication collapsible explanation should be formatted 2023-03-22 14:59:41 +01:00
Paul Chavard
af7e16c372 fix(champ): use champ.required? 2023-03-21 11:23:45 +01:00
Paul Chavard
4dc95417c5 fix(champ): use champ.mandatory? 2023-03-21 11:23:33 +01:00
Paul Chavard
cbaa77fca7 feat(annotations): activate autosave 2023-03-14 15:22:13 +01:00
Colin Darie
126819939b
Merge pull request #8678 from colinux/fix-explication-read-more-button
fix(a11y): improve Explication "lire plus"  accessibility
2023-03-07 15:37:02 +00:00
Paul Chavard
d3ef0fcf79 fix(datetime): improuve datetime field on old browsers 2023-03-01 12:30:25 +01:00
Colin Darie
3f15647b8e
refactor(a11y/combosearch): every combo with screen reader better support 2023-03-01 09:38:45 +01:00
Colin Darie
71d43e9591
feat(a11y/combosearch): translatations for screen reader 2023-03-01 09:38:44 +01:00
Colin Darie
3de089d6c7 fix(conditional): dynamic title counters using css
Closes #8086
2023-02-27 17:29:22 +01:00
sebastiencarceles
39545671f3 refacto: better error management 2023-02-27 14:35:11 +01:00
Sébastien Carceles
e89c8385a4 fetch association data when editing the dossier 2023-02-27 14:35:11 +01:00
Sébastien Carceles
b6c74b0e83 fetch etablissement when editing the dossier 2023-02-27 13:45:16 +01:00
Martin
a584279020 chore(deadcode): drop deadcode 2023-02-23 15:23:20 +01:00
Martin
c8e9b2f008 correctif(a11y): #8105, pour les callout, utilise un div wrappant du contenu html 2023-02-23 15:23:20 +01:00
Martin
4fd799390b correctif(a11y): #8107 (et d'autres), utilise le nouveau composant pour rendre les textes saisies par les admins accessible 2023-02-23 15:23:20 +01:00
Colin Darie
e4af86fb96 fix(a11y): explication "lire plus" styled as button
Cf #8662
2023-02-22 12:56:31 +01:00
Damien Le Thiec
4b0e6ea382
Convert datetime field to datetime_local (#8572)
* Convert datetime field to datetime_local

* Fix tests

* Add value formatting view datetime component

* Add helper datetime component value
2023-02-09 15:18:38 +01:00
simon lehericey
a1487e9923 fix: allow a tag in various admin text 2023-02-06 11:01:28 +01:00
Colin Darie
c15ad573bc feat(dropdown/a11y): "other" input with label and autofocus 2023-01-30 12:16:25 +01:00
Colin Darie
5bff5542f1 refactor(spinner): dependent-conditions on champ wrapper instead of each champ 2023-01-26 09:06:30 +01:00
Colin Darie
26236a11ba feat(autosave): conditional spinner on all manager champs 2023-01-26 09:06:30 +01:00
Colin Darie
7c13449b4f feat(conditional): show loader during autosave when other champs are dependent of it 2023-01-26 09:06:30 +01:00
Paul Chavard
a4cbbe721e feat(types de champ): add EPCI champ 2023-01-20 11:32:36 +01:00
Martin
8528939b75 correctif(champs/repetitions#remove): les row id etant des ulid commence par un int. utiliser l'ulid comme selecteur css n'est pas valide. il faut donc avoir un selecteur CSS 'safe', et envoyer le row_id 2023-01-19 10:48:01 +01:00
Paul Chavard
7f9414012e refactor(turbo): use @coldwired/actions 2023-01-16 21:40:10 +01:00
Paul Chavard
5f192f93e0 refactor(js): make generic format controller 2023-01-16 21:23:33 +01:00
Paul Chavard
af33d5d65c refactor(repetition): use row_id instead of row 2023-01-10 19:31:41 +01:00
Sébastien Carceles
fa6fc077b4
normalize boolean values (#8320)
* extract parent for yes no and checkbox champs

* checkbox stores true / false instead of on / off

* normalize blank value to nil

* normalize invalid value to false

* after party task: normalize checkbox values

* after party task: normalize yes_no values
2023-01-05 11:18:27 +00:00
Paul Chavard
3f0f5e381f refactor(regions): champ regions to use simple select 2022-12-21 14:03:02 +01:00
Paul Chavard
e0b0a42bc3 refactor(departements): champ departements to use simple select 2022-12-21 14:03:02 +01:00
Paul Chavard
f7c1dff22a refactor(pays): champ pays to use simple select 2022-12-21 14:03:02 +01:00
Colin Darie
3a9a71079a
Merge branch 'main' into pj-en-construction-replace 2022-12-14 16:59:48 +01:00
Paul Chavard
1b95809f14 refactor(dossier): flatten champ attributes 2022-12-14 13:03:06 +01:00
Colin Darie
4049240c2c
feat(piece_justificative): allow user to replace a PJ for dossier en_construction 2022-12-14 09:58:15 +01:00
Colin Darie
4824363879 refactor(attachment): rename user_can_download -> explicit view_as
- link: shows a simple link to open attachment
- download: shows complete DSFR download UI
2022-12-08 20:36:15 +01:00
Colin Darie
b9d6397a9b
fix(pj_template): private proxy template url so their links are non expirable
Closes #7920
2022-12-05 11:30:00 +01:00
Colin Darie
c98021e58a chore(attachment): input name attribute follows form object name for nested attributes 2022-12-05 10:47:10 +01:00
Colin Darie
920f90d2e3 chore(titre_identite): render template if exists 2022-12-05 10:47:10 +01:00