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:
commit
e59f7f2f87
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue