style(attestation): group tags by section

This commit is contained in:
Colin Darie 2024-01-19 10:14:14 +01:00
parent a842fefa7a
commit 443e41a6ed
No known key found for this signature in database
GPG key ID: 8C76CADD40253590
8 changed files with 113 additions and 11 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