Multiple drop down list au DSFR
This commit is contained in:
parent
37796b8843
commit
58bcdb406d
3 changed files with 34 additions and 5 deletions
|
@ -43,6 +43,14 @@ class Champs::MultipleDropDownListChamp < Champ
|
|||
enabled_non_empty_options.size <= THRESHOLD_NB_OPTIONS_AS_CHECKBOX
|
||||
end
|
||||
|
||||
def html_label?
|
||||
!render_as_checkboxes?
|
||||
end
|
||||
|
||||
def single_checkbox?
|
||||
render_as_checkboxes?
|
||||
end
|
||||
|
||||
def blank?
|
||||
selected_options.blank?
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue