Merge pull request #9903 from colinux/attestation-ux

ETQ admin, je peux tester l'attestation v2
This commit is contained in:
Colin Darie 2024-02-06 08:09:53 +00:00 committed by GitHub
commit 70e92f7c6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
50 changed files with 1776 additions and 609 deletions

View file

@ -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