Skip to content

UX/UI: Changer de input type pour les numéros de téléphone#5388

Merged
hellodeloo merged 1 commit into
masterfrom
deloo/fix-input-type-text-to-tel
Jan 15, 2025
Merged

UX/UI: Changer de input type pour les numéros de téléphone#5388
hellodeloo merged 1 commit into
masterfrom
deloo/fix-input-type-text-to-tel

Conversation

@hellodeloo

@hellodeloo hellodeloo commented Jan 14, 2025

Copy link
Copy Markdown
Contributor

🤔 Pourquoi ?

https://www.notion.so/plateforme-inclusion/Changer-le-type-du-champ-T-l-phone-et-ajouter-un-pattern-15fe8fa5c35b8062b855e676197729dc?pvs=4

Pour permettre aux navigateurs mobiles d'ouvrir un clavier optimisé pour la saisie d'un numéro de tel

🍰 Comment ?

Passer le champ en inpup type=text des numéros de téléphone, en type=tel sans pattern

@hellodeloo hellodeloo added the modifié Modifié dans le changelog. label Jan 14, 2025
@hellodeloo hellodeloo self-assigned this Jan 14, 2025
@hellodeloo hellodeloo added the 1-recette-jetable [Payé à l’heure] Crée une recette jetable sur CC label Jan 14, 2025
@github-actions

Copy link
Copy Markdown

🥁 La recette jetable est prête ! 👉 Je veux tester cette PR !

@francoisfreitag francoisfreitag left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Autrement ça m’a l’air bien.

Comment thread itou/www/companies_views/forms.py Outdated
widgets = {
"description": EasyMDEEditor,
}
widgets = {"description": EasyMDEEditor, "phone": forms.TextInput(attrs={"type": "tel"})}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

L’ajout de la virgule dira au formatteur de laisser sur plusieurs lignes, ce qui est plus lisible.

Suggested change
widgets = {"description": EasyMDEEditor, "phone": forms.TextInput(attrs={"type": "tel"})}
widgets = {"description": EasyMDEEditor, "phone": forms.TextInput(attrs={"type": "tel"}),}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trop bien, ça m'énervait et je ne comprenais pas pourquoi il ne voulait pas passer les éléments à la ligne

@hellodeloo hellodeloo force-pushed the deloo/fix-input-type-text-to-tel branch from dace273 to 2d13b09 Compare January 15, 2025 08:11
Comment thread itou/www/companies_views/forms.py Outdated
@hellodeloo hellodeloo force-pushed the deloo/fix-input-type-text-to-tel branch from 2d13b09 to fda8f5e Compare January 15, 2025 08:22
@hellodeloo hellodeloo added this pull request to the merge queue Jan 15, 2025
Merged via the queue into master with commit 02a537d Jan 15, 2025
@hellodeloo hellodeloo deleted the deloo/fix-input-type-text-to-tel branch January 15, 2025 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1-recette-jetable [Payé à l’heure] Crée une recette jetable sur CC modifié Modifié dans le changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants