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',
|
2021-07-22 14:32:34 +02:00
|
|
|
locals: { steps: [link_to(@procedure.libelle, instructeur_procedure_path(@procedure)),
|
2022-04-21 10:20:14 +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
|
|
|
|
Messages envoyés précedemment
|
|
|
|
%span.count= @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 partial: 'shared/attachment/show', locals: { attachment: message.piece_jointe.attachment }
|
2021-07-26 16:06:09 +02:00
|
|
|
- else
|
|
|
|
.page-title.center
|
|
|
|
%h2 Il n'y a aucun dossier en brouillon dans vos groupes instructeurs
|