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
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
Colin Darie
6ac0114992
test(attachments): more components tests & improvements
2022-12-05 10:47:10 +01:00
Colin Darie
b609c3dae4
refactor(attachment): bring batch user_can_destroy, update tests
2022-12-05 10:47:10 +01:00
Colin Darie
b13c5e56f6
refactor(piece_justificative): UX follows mockups
2022-12-05 10:47:10 +01:00
Colin Darie
3e992589c5
style(piece_justificative): input ux & list accepted formats
2022-12-05 10:47:10 +01:00
Colin Darie
636645f686
refactor: minor piece_justificative_multiple? question mark use
2022-12-05 10:47:10 +01:00
Colin Darie
1f8d28c678
feat(piece_justificative): limit to 1 upload for existing procedures
2022-12-05 10:47:10 +01:00
Colin Darie
6a0379086d
chore(piece_justificative): continue attachments refactor
2022-12-05 10:47:10 +01:00