form: display index of section in header
This commit is contained in:
parent
f2b7200edc
commit
f8ed7ec051
5 changed files with 53 additions and 1 deletions
|
@ -25,6 +25,14 @@ class Champ < ApplicationRecord
|
|||
!private?
|
||||
end
|
||||
|
||||
def siblings
|
||||
if public?
|
||||
dossier&.champs
|
||||
else
|
||||
dossier&.champs_private
|
||||
end
|
||||
end
|
||||
|
||||
def mandatory_and_blank?
|
||||
mandatory? && blank?
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue