fix(invite): Remove title when there is no guest list

This commit is contained in:
Corinne Durrmeyer 2024-11-29 16:27:03 +01:00
parent 6eb8982db9
commit d2a7bced4f
No known key found for this signature in database
GPG key ID: DDC049DDA35585B6
3 changed files with 9 additions and 8 deletions

View file

@ -2,7 +2,7 @@
%h4.fr-h5= t('views.invites.form.modal_title')
%p.fr-highlight.fr-mb-3w= t('views.invites.form.modal_highlight')
%h5.fr-h6= t('views.invites.form.edit_dossier', count: invites.size)
= t('views.invites.form.edit_dossier_html', count: invites.size)
- if invites.present?
#invite-list
%ul

View file

@ -338,9 +338,10 @@ en:
send_invitation: Send an invitation
withdraw_permission: "Withdraw the permission"
want_to_withdraw_permission: "Would you like to withdraw the permission of %{email}?"
edit_dossier:
one: "1 user can edit this file."
other: "%{count} users can edit this file."
edit_dossier_html:
zero: '<p class="fr-h6">No user can edit this file.</p>'
one: '<h5 class="fr-h6">1 user can edit this file</h5>'
other: '<h5 class="fr-h6">%{count} users can edit this file</h5>'
submit_dossier_yourself: "You must submit the file yourself when it is complete."
pagination:
next: Next

View file

@ -331,10 +331,10 @@ fr:
send_invitation: Envoyer une invitation
withdraw_permission: "Révoquer lautorisation"
want_to_withdraw_permission: "Souhaitez-vous supprimer lautorisation de %{email} ?"
edit_dossier:
zero: "Aucun invité peut modifier ce dossier"
one: "1 invité peut modifier ce dossier"
other: "%{count} invités peuvent modifier ce dossier"
edit_dossier_html:
zero: '<p class="fr-h6">Aucun invité peut modifier ce dossier.</p>'
one: '<h5 class="fr-h6">1 invité peut modifier ce dossier</h5>'
other: '<h5 class="fr-h6">%{count} invités peuvent modifier ce dossier</h5>'
submit_dossier_yourself: "Une fois le dossier complet, vous devez le déposer vous-même."
pagination:
next: Suivant