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?
|
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
|
|
|
|
- else
|
2022-07-13 15:38:43 +02:00
|
|
|
= turbo_stream.remove dom_id(@tdc.stable_self, :conditions)
|