i18n for status

This commit is contained in:
Christophe Robillard 2022-10-28 16:15:55 +02:00
parent 3890b24489
commit 29be3812af
3 changed files with 12 additions and 10 deletions

View file

@ -47,7 +47,7 @@
= f.collection_check_boxes :statuses, ['publiee', 'close'], :to_s, :to_s, include_hidden: false do |b|
.fr-checkbox-group.fr-ml-2w
= b.check_box(checked: @statuses&.include?(b.value), 'data-action': 'autosubmit#submit')
= b.label(class: 'fr-label') { b.text }
= b.label(class: 'fr-label') { t b.text, scope: 'activerecord.attributes.procedure.aasm_state' }
.fr-col-9
.fr-table.fr-table--bordered
@ -80,7 +80,7 @@
%td= procedure.libelle
%td= procedure.id
%td= procedure.administrateurs.count
%td= procedure.aasm_state
%td= t procedure.aasm_state, scope: 'activerecord.attributes.procedure.aasm_state'
%td= l(procedure.published_at, format: :message_date_without_time)
%tr.hidden{'data-expand-target': 'content'}
%td.fr-highlight--beige-gris-galet{colspan: '6'}

View file

@ -10,10 +10,11 @@ en:
organisation: Service
duree_conservation_dossiers_dans_ds: Duration files will be kept
max_duree_conservation_dossiers_dans_ds: Max duration allowed to keep files
aasm_state/brouillon: Draft
aasm_state/publiee: Published
aasm_state/close: Close
aasm_state/hidden: Destroyed
aasm_state:
brouillon: Draft
publiee: Published
close: Closed
hidden: Destroyed
declarative_with_state/en_instruction: Instruction
declarative_with_state/accepte: Accepted
api_particulier_token: Token API Particulier

View file

@ -10,10 +10,11 @@ fr:
organisation: Organisme
duree_conservation_dossiers_dans_ds: Durée de conservation des dossiers sur demarches-simplifiees.fr (choisi par un usager)
max_duree_conservation_dossiers_dans_ds: Durée de conservation des dossiers maximum (autorisé par un super admin de DS)
aasm_state/brouillon: Brouillon
aasm_state/publiee: Publiée
aasm_state/close: Close
aasm_state/hidden: Suprimée
aasm_state:
brouillon: Brouillon
publiee: Publiée
close: Close
hidden: Supprimée
declarative_with_state/en_instruction: En instruction
declarative_with_state/accepte: Accepté
api_particulier_token: Jeton API Particulier