19 lines
398 B
Ruby
19 lines
398 B
Ruby
# frozen_string_literal: true
|
|
|
|
class EditableChamp::DepartementsComponent < EditableChamp::EditableChampBaseComponent
|
|
include ApplicationHelper
|
|
|
|
private
|
|
|
|
def dsfr_input_classname
|
|
'fr-select'
|
|
end
|
|
|
|
def options
|
|
APIGeoService.departement_options
|
|
end
|
|
|
|
def select_options
|
|
{ selected: @champ.selected }.merge(@champ.mandatory? ? { prompt: '' } : { include_blank: '' })
|
|
end
|
|
end
|