move under types_de_champ_editor namespace

This commit is contained in:
simon lehericey 2022-07-07 11:18:47 +02:00
parent 5ea8842294
commit 0ffa23c259
9 changed files with 9 additions and 9 deletions

View file

@ -1,11 +1,11 @@
class TypesDeChamp::ConditionsComponentPreview < ViewComponent::Preview
class TypesDeChampEditor::ConditionsComponentPreview < ViewComponent::Preview
include Logic
def with_empty_condition
tdc = TypeDeChamp.create(type_champ: :text, condition: empty_operator(empty, empty), libelle: 't')
upper_tdcs = []
render TypesDeChamp::ConditionsComponent.new(
render TypesDeChampEditor::ConditionsComponent.new(
tdc: tdc, upper_tdcs: upper_tdcs, procedure_id: '1'
)
end
@ -23,7 +23,7 @@ class TypesDeChamp::ConditionsComponentPreview < ViewComponent::Preview
])
tdc = TypeDeChamp.create(type_champ: :integer_number, condition: condition, libelle: 'nb de piece')
render TypesDeChamp::ConditionsComponent.new(
render TypesDeChampEditor::ConditionsComponent.new(
tdc: tdc, upper_tdcs: upper_tdcs, procedure_id: '1'
)
end
@ -43,7 +43,7 @@ class TypesDeChamp::ConditionsComponentPreview < ViewComponent::Preview
tdc = TypeDeChamp.create(type_champ: :integer_number, condition: condition, libelle: 'nb de piece')
render TypesDeChamp::ConditionsComponent.new(
render TypesDeChampEditor::ConditionsComponent.new(
tdc: tdc, upper_tdcs: upper_tdcs, procedure_id: '1'
)
end