i18n: localize dossiers edition
This commit is contained in:
parent
b7c0a42fd5
commit
7de10731a6
28 changed files with 426 additions and 165 deletions
|
@ -3,7 +3,7 @@
|
|||
.card
|
||||
= render partial: "shared/dossiers/infos_generales", locals: { dossier: dossier }
|
||||
|
||||
.tab-title Identité du demandeur
|
||||
.tab-title= t('views.shared.dossiers.demande.requester_identity')
|
||||
.card
|
||||
- if dossier.france_connect_information.present?
|
||||
= render partial: "shared/dossiers/france_connect_informations", locals: { user_information: dossier.france_connect_information }
|
||||
|
@ -14,16 +14,16 @@
|
|||
|
||||
- if profile == 'usager' && !dossier.read_only?
|
||||
.flex.row-reverse
|
||||
= link_to "Modifier le SIRET", siret_dossier_path(dossier), class: 'button'
|
||||
= link_to t('views.shared.dossiers.demande.edit_siret'), siret_dossier_path(dossier), class: 'button'
|
||||
|
||||
- if dossier.individual.present?
|
||||
= render partial: "shared/dossiers/identite_individual", locals: { individual: dossier.individual }
|
||||
|
||||
- if profile == 'usager' && !dossier.read_only?
|
||||
.flex.row-reverse
|
||||
= link_to "Modifier l'identité", identite_dossier_path(dossier), class: 'button'
|
||||
= link_to t('views.shared.dossiers.demande.edit_identity'), identite_dossier_path(dossier), class: 'button'
|
||||
|
||||
.tab-title Formulaire
|
||||
.tab-title= t('views.shared.dossiers.demande.form')
|
||||
- champs = dossier.champs.includes(:type_de_champ)
|
||||
- if champs.any? || dossier.procedure.routee?
|
||||
.card
|
||||
|
|
|
@ -11,14 +11,11 @@
|
|||
= form_for dossier, form_options.merge({ html: { id: 'dossier-edit-form', class: dossier_form_class(dossier), multipart: true } }) do |f|
|
||||
|
||||
.prologue
|
||||
%p.mandatory-explanation
|
||||
Les champs suivis d’un astérisque (
|
||||
%span.mandatory> *
|
||||
) sont obligatoires.
|
||||
%p.mandatory-explanation= t('utils.asterisk_html')
|
||||
- if dossier.brouillon?
|
||||
%p.mandatory-explanation
|
||||
- if autosave_available?(dossier)
|
||||
Votre dossier est enregistré automatiquement après chaque modification. Vous pouvez à tout moment fermer la fenêtre et reprendre plus tard là où vous en étiez.
|
||||
= t('views.shared.dossiers.edit.autosave')
|
||||
- else
|
||||
Pour enregistrer votre dossier et le reprendre plus tard, cliquez sur le bouton « Enregistrer le brouillon » en bas à gauche du formulaire.
|
||||
- if !apercu && dossier.france_connect_information.present?
|
||||
|
@ -56,7 +53,7 @@
|
|||
data: { 'disable-with': "Envoi en cours…" }
|
||||
|
||||
- if dossier.can_transition_to_en_construction?
|
||||
= f.button 'Déposer le dossier',
|
||||
= f.button t('views.shared.dossiers.edit.submit_dossier'),
|
||||
name: :submit_draft,
|
||||
value: true,
|
||||
class: 'button send primary',
|
||||
|
@ -64,7 +61,7 @@
|
|||
data: { 'disable-with': "Envoi en cours…" }
|
||||
|
||||
- else
|
||||
= f.button 'Enregistrer les modifications du dossier',
|
||||
= f.button t('views.shared.dossiers.edit.save_changes'),
|
||||
class: 'button send primary',
|
||||
data: { 'disable-with': "Envoi en cours…" }
|
||||
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
= form_for(commentaire, url: form_url, html: { class: 'form' }) do |f|
|
||||
- placeholder = 'Écrivez votre message à l’administration ici'
|
||||
- placeholder = t('views.shared.dossiers.messages.form.write_message_to_administration_placeholder')
|
||||
- if instructeur_signed_in? || administrateur_signed_in?
|
||||
- placeholder = 'Écrivez votre message ici'
|
||||
- placeholder = t('views.shared.dossiers.messages.form.write_message_placeholder')
|
||||
= f.text_area :body, rows: 5, placeholder: placeholder, required: true, class: 'message-textarea'
|
||||
.flex.justify-between.wrap
|
||||
%div
|
||||
= f.label :piece_jointe, for: :piece_jointe do
|
||||
Joindre un document
|
||||
%span.notice (taille max : 20 Mo)
|
||||
= 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 'Envoyer le message', class: 'button primary send', data: { disable: true }
|
||||
= f.submit t('views.shared.dossiers.messages.form.send_message'), class: 'button primary send', data: { disable: true }
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
%span.mail
|
||||
= render partial: 'shared/dossiers/messages/message_issuer', locals: { commentaire: commentaire, connected_user: connected_user }
|
||||
- if commentaire_is_from_guest(commentaire)
|
||||
%span.guest Invité
|
||||
%span.guest= t('views.shared.dossiers.messages.message.guest')
|
||||
%span.date{ class: highlight_if_unseen_class(messagerie_seen_at, commentaire.created_at) }
|
||||
= commentaire_date(commentaire)
|
||||
.rich-text= pretty_commentaire(commentaire)
|
||||
|
@ -18,4 +18,4 @@
|
|||
- if show_reply_button
|
||||
= button_tag type: 'button', class: 'button small message-answer-button', onclick: 'document.querySelector("#commentaire_body").focus()' do
|
||||
%span.icon.reply
|
||||
Répondre
|
||||
= t('views.shared.dossiers.messages.message.reply')
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
- if commentaire.sent_by_system?
|
||||
Email automatique
|
||||
= t('views.shared.dossiers.messages.message_issuer.automatic_email')
|
||||
- elsif commentaire.sent_by?(connected_user)
|
||||
Vous
|
||||
= t('views.shared.dossiers.messages.message_issuer.you')
|
||||
- else
|
||||
= commentaire.redacted_email
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue