extract DOSSIER_ID_TAG
This commit is contained in:
parent
bbb6309b4f
commit
dbf46b1f02
1 changed files with 10 additions and 8 deletions
|
@ -61,6 +61,15 @@ module TagsSubstitutionConcern
|
|||
end
|
||||
end
|
||||
|
||||
DOSSIER_ID_TAG = {
|
||||
id: 'dossier_number',
|
||||
label: 'numéro du dossier',
|
||||
libelle: 'numéro du dossier',
|
||||
description: '',
|
||||
target: :id,
|
||||
available_for_states: Dossier::SOUMIS
|
||||
}
|
||||
|
||||
DOSSIER_TAGS = [
|
||||
{
|
||||
id: 'dossier_motivation',
|
||||
|
@ -98,13 +107,6 @@ module TagsSubstitutionConcern
|
|||
lambda: -> (d) { d.procedure.libelle },
|
||||
available_for_states: Dossier::SOUMIS
|
||||
},
|
||||
{
|
||||
id: 'dossier_number',
|
||||
libelle: 'numéro du dossier',
|
||||
description: '',
|
||||
target: :id,
|
||||
available_for_states: Dossier::SOUMIS
|
||||
},
|
||||
{
|
||||
id: 'dossier_service_name',
|
||||
libelle: 'nom du service',
|
||||
|
@ -112,7 +114,7 @@ module TagsSubstitutionConcern
|
|||
lambda: -> (d) { d.procedure.organisation_name || '' },
|
||||
available_for_states: Dossier::SOUMIS
|
||||
}
|
||||
]
|
||||
].push(DOSSIER_ID_TAG)
|
||||
|
||||
DOSSIER_TAGS_FOR_MAIL = [
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue