move under types_de_champ_editor namespace
This commit is contained in:
parent
5ea8842294
commit
0ffa23c259
9 changed files with 9 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
|||
class TypesDeChamp::ConditionsComponent < ApplicationComponent
|
||||
class TypesDeChampEditor::ConditionsComponent < ApplicationComponent
|
||||
include Logic
|
||||
|
||||
def initialize(tdc:, upper_tdcs:, procedure_id:)
|
|
@ -5,7 +5,7 @@
|
|||
%p.mr-2 Logique conditionnelle
|
||||
= logic_conditionnel_button
|
||||
|
||||
= render TypesDeChamp::ConditionsErrorsComponent.new(conditions: condition_per_row, upper_tdcs: @upper_tdcs)
|
||||
= render TypesDeChampEditor::ConditionsErrorsComponent.new(conditions: condition_per_row, upper_tdcs: @upper_tdcs)
|
||||
|
||||
- if @condition.present?
|
||||
%table.condition-table.mt-2.width-100
|
|
@ -1,4 +1,4 @@
|
|||
class TypesDeChamp::ConditionsErrorsComponent < ApplicationComponent
|
||||
class TypesDeChampEditor::ConditionsErrorsComponent < ApplicationComponent
|
||||
def initialize(conditions:, upper_tdcs:)
|
||||
@conditions, @upper_tdcs = conditions, upper_tdcs
|
||||
end
|
|
@ -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
|
|
@ -1,4 +1,4 @@
|
|||
describe TypesDeChamp::ConditionsComponent, type: :component do
|
||||
describe TypesDeChampEditor::ConditionsComponent, type: :component do
|
||||
include Logic
|
||||
|
||||
describe 'render' do
|
|
@ -1,4 +1,4 @@
|
|||
describe TypesDeChamp::ConditionsErrorsComponent, type: :component do
|
||||
describe TypesDeChampEditor::ConditionsErrorsComponent, type: :component do
|
||||
include Logic
|
||||
|
||||
describe 'render' do
|
Loading…
Reference in a new issue