Skip to content

Conversation

@francoisfreitag
Copy link
Member

@francoisfreitag francoisfreitag commented Jul 2, 2024

🤔 Pourquoi ?

Le thème casse partiellement le MultipleChoiceField, utilisons plutôt le composant de sélection d’un seul élément.
Dans tous les cas, les utilisateurs utilisent le widget pour accéder rapidement à un candidat, et non pour limiter les éléments présents dans la liste à un ensemble de candidats.

🏝️ Comment tester

  1. Se connecter en tant que l’EI
  2. http://localhost:8000/approvals/list
  3. Utiliser le filtre de salarié

💻 Captures d'écran

image

@francoisfreitag francoisfreitag added the modifié Modifié dans le changelog. label Jul 2, 2024
@francoisfreitag francoisfreitag self-assigned this Jul 2, 2024
@francoisfreitag francoisfreitag requested a review from tonial July 2, 2024 07:55


class ApprovalForm(forms.Form):
users = forms.MultipleChoiceField(
Copy link
Contributor

Choose a reason for hiding this comment

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

le champ s'appelle user sur les PASS, est-ce qu'on veut vraiment renommer ici ?
Ou est-ce qu'il faudrait un jour renommer Approval.user en Approval.job_seeker

Copy link
Contributor

Choose a reason for hiding this comment

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

Le renommage de Approval.user en Approval.job_seeker serait à mon avis une bonne chose mais à faire de nuit 😬

Copy link
Member Author

Choose a reason for hiding this comment

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

On pourrait renommer Approval.job_seeker à mon avis, ce serait plus clair.



class ApprovalForm(forms.Form):
users = forms.MultipleChoiceField(
Copy link
Contributor

Choose a reason for hiding this comment

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

Le renommage de Approval.user en Approval.job_seeker serait à mon avis une bonne chose mais à faire de nuit 😬

The select multiple widget is partially broken with the itou-theme.
In most places, users actually just want to quickly navigate to a single
entry in the list. Simplify the UI and remove bugs by using a
ChoiceField instead of a MultipleChoiceField.
@francoisfreitag francoisfreitag enabled auto-merge July 2, 2024 16:03
@francoisfreitag francoisfreitag added this pull request to the merge queue Jul 2, 2024
Merged via the queue into master with commit 012fbc2 Jul 2, 2024
@francoisfreitag francoisfreitag deleted the ff/select-pass branch July 2, 2024 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

modifié Modifié dans le changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants