chore(messagerie): add missing label on comment form
This commit is contained in:
parent
3b7b18ef90
commit
6748551240
3 changed files with 13 additions and 4 deletions
|
@ -8,10 +8,13 @@
|
||||||
%p.mandatory-explanation= t('asterisk_html', scope: [:utils])
|
%p.mandatory-explanation= t('asterisk_html', scope: [:utils])
|
||||||
|
|
||||||
= render Dsfr::InputComponent.new(form: f, attribute: :body, input_type: :text_area, opts: { rows: 5, placeholder: placeholder, title: placeholder, class: 'fr-input message-textarea'})
|
= render Dsfr::InputComponent.new(form: f, attribute: :body, input_type: :text_area, opts: { rows: 5, placeholder: placeholder, title: placeholder, class: 'fr-input message-textarea'})
|
||||||
|
|
||||||
- if local_assigns.has_key?(:dossier)
|
- if local_assigns.has_key?(:dossier)
|
||||||
.fr-mt-3w{ data: { controller: "file-input-reset", delete_label: t('views.shared.messages.remove_file') } }
|
.fr-mt-3w.fr-input-group
|
||||||
= render Attachment::MultipleComponent.new(attached_file: commentaire.piece_jointe)
|
= f.label :piece_jointe, class: "fr-label"
|
||||||
%ul{ data: { 'file-input-reset-target': 'fileList' } }
|
%div{ data: { controller: "file-input-reset", delete_label: t('views.shared.messages.remove_file') } }
|
||||||
|
= render Attachment::MultipleComponent.new(attached_file: commentaire.piece_jointe)
|
||||||
|
%ul{ data: { 'file-input-reset-target': 'fileList' } }
|
||||||
|
|
||||||
.fr-mt-3w
|
.fr-mt-3w
|
||||||
= f.submit t('views.shared.dossiers.messages.form.send_message'), class: 'fr-btn', data: { disable: true }
|
= f.submit t('views.shared.dossiers.messages.form.send_message'), class: 'fr-btn', data: { disable: true }
|
||||||
|
|
6
config/locales/models/commentaire/en.yml
Normal file
6
config/locales/models/commentaire/en.yml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
en:
|
||||||
|
activerecord:
|
||||||
|
attributes:
|
||||||
|
commentaire:
|
||||||
|
body: 'Your message'
|
||||||
|
piece_jointe: "Attachment"
|
|
@ -3,4 +3,4 @@ fr:
|
||||||
attributes:
|
attributes:
|
||||||
commentaire:
|
commentaire:
|
||||||
body: 'Votre message'
|
body: 'Votre message'
|
||||||
file: fichier
|
piece_jointe: "Pièce jointe"
|
||||||
|
|
Loading…
Add table
Reference in a new issue