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? })
|
|
|
|
|
2024-06-03 07:44:27 +02:00
|
|
|
= turbo_stream.replace 'errors-summary', render(Procedure::ErrorsSummary.new(procedure: @procedure, validation_context: @tdc.public? ? :types_de_champ_public_editor : :types_de_champ_private_editor))
|
2022-09-14 16:07:55 +02:00
|
|
|
|
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)
|