form: don't display index if the libelle already starts with a number
This commit is contained in:
parent
f8ed7ec051
commit
838133477e
1 changed files with 4 additions and 1 deletions
|
@ -1,2 +1,5 @@
|
|||
%h2.header-section
|
||||
= "#{champ.section_index}. #{champ.libelle}"
|
||||
- libelle_starts_with_number = (champ.libelle =~ /^\d/)
|
||||
- if !libelle_starts_with_number
|
||||
= "#{champ.section_index}."
|
||||
= champ.libelle
|
||||
|
|
Loading…
Reference in a new issue