form: display index of section in header

This commit is contained in:
Pierre de La Morinerie 2020-02-13 10:07:10 +00:00
parent f2b7200edc
commit f8ed7ec051
5 changed files with 53 additions and 1 deletions

View file

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