diff --git a/app/views/instructeurs/procedures/email_usagers.html.haml b/app/views/instructeurs/procedures/email_usagers.html.haml index c5276ae50..72a54dc77 100644 --- a/app/views/instructeurs/procedures/email_usagers.html.haml +++ b/app/views/instructeurs/procedures/email_usagers.html.haml @@ -6,7 +6,7 @@ .messagerie.container - if @email_usagers_dossiers.present? %p.notice.mb-2.mt-4 Vous allez envoyer un message à #{pluralize(@dossiers_count, 'personne')} dont les dossiers sont en brouillon, dans les groupes instructeurs : #{@groupe_instructeurs.join(', ')}. - = render partial: 'shared/dossiers/messages/form', locals: { commentaire: @commentaire, form_url: create_multiple_commentaire_instructeur_procedure_path(@procedure) } + = 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 diff --git a/app/views/shared/dossiers/messages/_form.html.haml b/app/views/shared/dossiers/messages/_form.html.haml index 4fb1a683b..b07ed4940 100644 --- a/app/views/shared/dossiers/messages/_form.html.haml +++ b/app/views/shared/dossiers/messages/_form.html.haml @@ -5,11 +5,13 @@ - placeholder = t('views.shared.dossiers.messages.form.write_message_placeholder') = f.text_area :body, rows: 5, placeholder: placeholder, required: true, class: 'message-textarea persisted-input' .flex.justify-between.wrap + - disable_piece_jointe = defined?(disable_piece_jointe) ? disable_piece_jointe : false %div - = f.label :piece_jointe, for: :piece_jointe do - = t('views.shared.dossiers.messages.form.attach_dossier') - %span.notice= t('views.shared.dossiers.messages.form.attachment_size') - = f.file_field :piece_jointe, id: 'piece_jointe', direct_upload: true + - if !disable_piece_jointe + = f.label :piece_jointe, for: :piece_jointe do + = t('views.shared.dossiers.messages.form.attach_dossier') + %span.notice= t('views.shared.dossiers.messages.form.attachment_size') + = f.file_field :piece_jointe, id: 'piece_jointe', direct_upload: true %div = f.submit t('views.shared.dossiers.messages.form.send_message'), class: 'button primary send', data: { disable: true }