refactor(attestation): hide libelle of empty repetitions
This commit is contained in:
parent
9f9720d65b
commit
247bb6f8c6
4 changed files with 33 additions and 5 deletions
|
@ -31,13 +31,14 @@ class ChampPresentations::RepetitionPresentation < ChampPresentations::BasePrese
|
|||
[
|
||||
{
|
||||
type: 'descriptionTerm',
|
||||
attrs: champ.blank? ? { class: 'invisible' } : nil, # still render libelle so width & alignment are preserved
|
||||
content: [
|
||||
{
|
||||
type: 'text',
|
||||
text: champ.libelle
|
||||
}
|
||||
]
|
||||
},
|
||||
}.compact,
|
||||
{
|
||||
type: 'descriptionDetails',
|
||||
content: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue