Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formulaire info perso: utilisation du DSFR pour les alertes et les icones #4922

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions app/views/users/users/_form.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,13 @@ ruby:
- if rdv_wizard&.rdv&.requires_ants_predemande_number?
= f.input :ants_pre_demande_number, required: true, hint: t("simple_form.hints.user.ants_pre_demande_number_html"), input_html: {style: "text-transform: uppercase;"}
- if user.logged_once_with_franceconnect?
.alert.alert-info.d-flex.align-items-center
.mr-3
.fa.fa-info
div= I18n.t("users.franceconnect_frozen_fields")
.fr-alert.fr-alert--info.fr-mb-1w
= I18n.t("users.franceconnect_frozen_fields")
- if current_user.signed_in_with_invitation_token?
= f.input :email, disabled: user.email.present? && !user.email_changed?, required: true
= f.input :phone_number, as: :tel, required: rdv_wizard&.motif&.phone?
- if user.phone_number.present? && !user.phone_number_mobile?
.alert.alert-warning Vous ne recevrez pas de SMS avec ce numéro non-mobile
.fr-alert.fr-alert--warning.fr-mb-1w Vous ne recevrez pas de SMS avec ce numéro non-mobile
div.mb-2 Préférences de notifications
div= f.input :notify_by_email
div= f.input :notify_by_sms
Expand Down
Loading