demarches-normaliennes/app/views/instructeurs/procedures/email_usagers.html.haml
Eric Leroy-Terquem bd846e721d fix typos in views
2023-06-12 15:13:25 +02:00

32 lines
1.5 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

- content_for(:title, "Contacter les usagers pour #{@procedure.libelle}")
= render partial: 'administrateurs/breadcrumbs',
locals: { steps: [[@procedure.libelle.truncate_words(10), instructeur_procedure_path(@procedure)],
[t('.contact_users')]] }
.messagerie.container
- if @email_usagers_dossiers.present?
%p.notice.mb-2.mt-4
= t('.notice', dossiers_count: pluralize(@dossiers_count, 'personne'), groupe_instructeurs: @groupe_instructeurs.join(', '))
= render partial: 'shared/dossiers/messages/form', locals: { commentaire: @commentaire, form_url: create_multiple_commentaire_instructeur_procedure_path(@procedure), disable_piece_jointe: true }
- if @bulk_messages.present?
%section.list-avis.mt-8
%h1.tab-title
Messages envoyés précédemment
%span.fr-badge= @bulk_messages.count
%ul
- @bulk_messages.each do |message|
%li.one-avis.flex.align-start
.width-100
%h2.claimant
%span.email= message.instructeur.email
%span.date message envoyé à #{@dossiers_count} usagers le #{message.sent_at.strftime('%d/%m/%y à %H:%M')}
%p= message.body
.answer.flex.align-start
- if message.piece_jointe.present?
= render Attachment::ShowComponent.new(attachment: message.piece_jointe.attachment)
- else
.page-title.center
%h2 Il ny a aucun dossier en brouillon dans vos groupes dinstructeurs