Merge pull request #9903 from colinux/attestation-ux
ETQ admin, je peux tester l'attestation v2
This commit is contained in:
commit
70e92f7c6b
50 changed files with 1776 additions and 609 deletions
|
@ -0,0 +1,33 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class TagsButtonListComponentPreview < ViewComponent::Preview
|
||||
include TagsSubstitutionConcern
|
||||
|
||||
def default
|
||||
render(TagsButtonListComponent.new(tags:
|
||||
{
|
||||
individual: TagsSubstitutionConcern::INDIVIDUAL_TAGS,
|
||||
etablissement: TagsSubstitutionConcern::ENTREPRISE_TAGS,
|
||||
dossier: TagsSubstitutionConcern::DOSSIER_TAGS,
|
||||
champ_public: [
|
||||
{
|
||||
id: 'tdc12',
|
||||
libelle: 'Votre avis',
|
||||
description: 'Détaillez votre avis'
|
||||
},
|
||||
{
|
||||
id: 'tdc13',
|
||||
libelle: 'Votre avis très ' + 'long ' * 12,
|
||||
description: 'Ce libellé a été tronqué'
|
||||
}
|
||||
],
|
||||
|
||||
champ_private: [
|
||||
{
|
||||
id: 'tdc22',
|
||||
libelle: 'Montant accordé'
|
||||
}
|
||||
]
|
||||
}))
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue