Merge pull request #7343 from betagouv/remove_tdc_tdcs_in_manager

Refactor(revision) : retire l'utilisation de type_de_champ.types_de_champ dans le manager
This commit is contained in:
Paul Chavard 2022-05-18 11:11:53 +02:00 committed by GitHub
commit e59f7f2f87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,3 +1,5 @@
- revision = page.resource.is_a?(Procedure) ? page.resource.active_revision : page.resource.revision
- if field.data.any?
%table.collection-data{ "aria-labelledby": "page-title" }
%thead
@ -11,7 +13,7 @@
locals: { type_de_champ: type_de_champ }
- if type_de_champ.type_champ == 'repetition'
- type_de_champ.types_de_champ.each do |sub_champ|
- revision.children_of(type_de_champ).each do |sub_champ|
= render partial: 'fields/types_de_champ_collection_field/type_champ_line',
locals: { type_de_champ: sub_champ }
- else