diff --git a/app/controllers/new_administrateur/types_de_champ_controller.rb b/app/controllers/new_administrateur/types_de_champ_controller.rb index 4d4e1685c..f81298751 100644 --- a/app/controllers/new_administrateur/types_de_champ_controller.rb +++ b/app/controllers/new_administrateur/types_de_champ_controller.rb @@ -57,6 +57,8 @@ module NewAdministrateur ], methods: [ :drop_down_list_value, + :drop_down_secondary_libelle, + :drop_down_secondary_description, :piece_justificative_template_filename, :piece_justificative_template_url, :editable_options @@ -73,6 +75,8 @@ module NewAdministrateur :parent_id, :private, :drop_down_list_value, + :drop_down_secondary_libelle, + :drop_down_secondary_description, :piece_justificative_template, editable_options: [ :cadastres, @@ -94,6 +98,8 @@ module NewAdministrateur :description, :mandatory, :drop_down_list_value, + :drop_down_secondary_libelle, + :drop_down_secondary_description, :piece_justificative_template, editable_options: [ :cadastres, diff --git a/app/javascript/components/TypesDeChampEditor/components/TypeDeChamp.jsx b/app/javascript/components/TypesDeChampEditor/components/TypeDeChamp.jsx index 00ce93494..5679ebedf 100644 --- a/app/javascript/components/TypesDeChampEditor/components/TypeDeChamp.jsx +++ b/app/javascript/components/TypesDeChampEditor/components/TypeDeChamp.jsx @@ -14,6 +14,7 @@ import TypeDeChampDropDownOptions from './TypeDeChampDropDownOptions'; import TypeDeChampPieceJustificative from './TypeDeChampPieceJustificative'; import TypeDeChampRepetitionOptions from './TypeDeChampRepetitionOptions'; import TypeDeChampTypesSelect from './TypeDeChampTypesSelect'; +import TypeDeChampDropDownSecondary from './TypeDeChampDropDownSecondary'; const TypeDeChamp = sortableElement( ({ typeDeChamp, dispatch, idx: index, isFirstItem, isLastItem, state }) => { @@ -22,6 +23,7 @@ const TypeDeChamp = sortableElement( 'multiple_drop_down_list', 'linked_drop_down_list' ].includes(typeDeChamp.type_champ); + const isLinkedDropDown = typeDeChamp.type_champ === 'linked_drop_down_list'; const isFile = typeDeChamp.type_champ === 'piece_justificative'; const isCarte = typeDeChamp.type_champ === 'carte'; const isExplication = typeDeChamp.type_champ === 'explication'; @@ -130,6 +132,11 @@ const TypeDeChamp = sortableElement( isVisible={isDropDown} handler={updateHandlers.drop_down_list_value} /> + + + + +