2022-09-14 16:07:55 +02:00
|
|
|
= turbo_stream.replace 'errors-summary', render(TypesDeChampEditor::ErrorsSummary.new(revision: @procedure.draft_revision))
|
|
|
|
|
2022-07-11 21:57:43 +02:00
|
|
|
- rendered = render @condition_component
|
|
|
|
|
|
|
|
- if rendered.present?
|
2022-07-13 15:38:43 +02:00
|
|
|
= turbo_stream.morph dom_id(@tdc.stable_self, :conditions) do
|
2022-07-11 21:57:43 +02:00
|
|
|
- rendered
|
|
|
|
end
|
|
|
|
- else
|
2022-07-13 15:38:43 +02:00
|
|
|
= turbo_stream.remove dom_id(@tdc.stable_self, :conditions)
|