fix(bulk_messages): disable pj on bulk messages
This commit is contained in:
parent
1fee02e6e4
commit
6599f9a992
2 changed files with 7 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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 }
|
||||
|
|
Loading…
Reference in a new issue