2022-09-14 16:34:27 +02:00
|
|
|
= turbo_stream.replace 'breadcrumbs' , render(partial: 'administrateurs/breadcrumbs',
|
|
|
|
locals: { steps: [['Démarches', admin_procedures_path],
|
|
|
|
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
|
|
|
['Configuration des champs']],
|
|
|
|
preview: @procedure.draft_revision.valid? })
|
|
|
|
|
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?
|
2023-03-24 10:31:01 +01:00
|
|
|
= turbo_stream.replace dom_id(@tdc.stable_self, :condition) do
|
2022-07-11 21:57:43 +02:00
|
|
|
- rendered
|
|
|
|
- else
|
2023-03-24 10:31:01 +01:00
|
|
|
= turbo_stream.remove dom_id(@tdc.stable_self, :condition)
|