i18n for status
This commit is contained in:
parent
3890b24489
commit
29be3812af
3 changed files with 12 additions and 10 deletions
|
@ -47,7 +47,7 @@
|
||||||
= f.collection_check_boxes :statuses, ['publiee', 'close'], :to_s, :to_s, include_hidden: false do |b|
|
= f.collection_check_boxes :statuses, ['publiee', 'close'], :to_s, :to_s, include_hidden: false do |b|
|
||||||
.fr-checkbox-group.fr-ml-2w
|
.fr-checkbox-group.fr-ml-2w
|
||||||
= b.check_box(checked: @statuses&.include?(b.value), 'data-action': 'autosubmit#submit')
|
= 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-col-9
|
||||||
.fr-table.fr-table--bordered
|
.fr-table.fr-table--bordered
|
||||||
|
@ -80,7 +80,7 @@
|
||||||
%td= procedure.libelle
|
%td= procedure.libelle
|
||||||
%td= procedure.id
|
%td= procedure.id
|
||||||
%td= procedure.administrateurs.count
|
%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)
|
%td= l(procedure.published_at, format: :message_date_without_time)
|
||||||
%tr.hidden{'data-expand-target': 'content'}
|
%tr.hidden{'data-expand-target': 'content'}
|
||||||
%td.fr-highlight--beige-gris-galet{colspan: '6'}
|
%td.fr-highlight--beige-gris-galet{colspan: '6'}
|
||||||
|
|
|
@ -10,10 +10,11 @@ en:
|
||||||
organisation: Service
|
organisation: Service
|
||||||
duree_conservation_dossiers_dans_ds: Duration files will be kept
|
duree_conservation_dossiers_dans_ds: Duration files will be kept
|
||||||
max_duree_conservation_dossiers_dans_ds: Max duration allowed to keep files
|
max_duree_conservation_dossiers_dans_ds: Max duration allowed to keep files
|
||||||
aasm_state/brouillon: Draft
|
aasm_state:
|
||||||
aasm_state/publiee: Published
|
brouillon: Draft
|
||||||
aasm_state/close: Close
|
publiee: Published
|
||||||
aasm_state/hidden: Destroyed
|
close: Closed
|
||||||
|
hidden: Destroyed
|
||||||
declarative_with_state/en_instruction: Instruction
|
declarative_with_state/en_instruction: Instruction
|
||||||
declarative_with_state/accepte: Accepted
|
declarative_with_state/accepte: Accepted
|
||||||
api_particulier_token: Token API Particulier
|
api_particulier_token: Token API Particulier
|
||||||
|
|
|
@ -10,10 +10,11 @@ fr:
|
||||||
organisation: Organisme
|
organisation: Organisme
|
||||||
duree_conservation_dossiers_dans_ds: Durée de conservation des dossiers sur demarches-simplifiees.fr (choisi par un usager)
|
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)
|
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:
|
||||||
aasm_state/publiee: Publiée
|
brouillon: Brouillon
|
||||||
aasm_state/close: Close
|
publiee: Publiée
|
||||||
aasm_state/hidden: Suprimée
|
close: Close
|
||||||
|
hidden: Supprimée
|
||||||
declarative_with_state/en_instruction: En instruction
|
declarative_with_state/en_instruction: En instruction
|
||||||
declarative_with_state/accepte: Accepté
|
declarative_with_state/accepte: Accepté
|
||||||
api_particulier_token: Jeton API Particulier
|
api_particulier_token: Jeton API Particulier
|
||||||
|
|
Loading…
Reference in a new issue