2021-07-22 14:32:34 +02:00
|
|
|
|
- content_for(:title, "Contacter les usagers pour #{@procedure.libelle}")
|
|
|
|
|
|
2021-11-25 16:26:55 +01:00
|
|
|
|
= render partial: 'administrateurs/breadcrumbs',
|
2022-09-09 13:08:24 +02:00
|
|
|
|
locals: { steps: [[@procedure.libelle.truncate_words(10), instructeur_procedure_path(@procedure)],
|
2022-08-17 13:53:07 +02:00
|
|
|
|
[t('.contact_users')]] }
|
2021-07-22 14:32:34 +02:00
|
|
|
|
.messagerie.container
|
2021-07-26 16:06:09 +02:00
|
|
|
|
- if @email_usagers_dossiers.present?
|
2022-04-21 10:20:14 +02:00
|
|
|
|
%p.notice.mb-2.mt-4
|
|
|
|
|
= t('.notice', dossiers_count: pluralize(@dossiers_count, 'personne'), groupe_instructeurs: @groupe_instructeurs.join(', '))
|
|
|
|
|
|
2021-10-27 11:22:03 +02:00
|
|
|
|
= render partial: 'shared/dossiers/messages/form', locals: { commentaire: @commentaire, form_url: create_multiple_commentaire_instructeur_procedure_path(@procedure), disable_piece_jointe: true }
|
2021-08-02 11:20:29 +02:00
|
|
|
|
|
|
|
|
|
- if @bulk_messages.present?
|
|
|
|
|
%section.list-avis.mt-8
|
|
|
|
|
%h1.tab-title
|
2023-06-07 21:52:31 +02:00
|
|
|
|
Messages envoyés précédemment
|
2022-10-06 12:58:02 +02:00
|
|
|
|
%span.fr-badge= @bulk_messages.count
|
2021-08-02 11:20:29 +02:00
|
|
|
|
|
|
|
|
|
%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?
|
2022-05-06 12:24:01 +02:00
|
|
|
|
= render Attachment::ShowComponent.new(attachment: message.piece_jointe.attachment)
|
2021-07-26 16:06:09 +02:00
|
|
|
|
- else
|
|
|
|
|
.page-title.center
|
2023-06-07 21:52:31 +02:00
|
|
|
|
%h2 Il n’y a aucun dossier en brouillon dans vos groupes d’instructeurs
|