feat: display tree structure of a group

This commit is contained in:
seb-by-ouidou 2023-12-10 17:25:58 +00:00 committed by Colin Darie
parent 460240713f
commit c2c54083e8
No known key found for this signature in database
GPG key ID: 8C76CADD40253590
20 changed files with 137 additions and 32 deletions

View file

@ -0,0 +1,14 @@
= render partial: 'gestionnaires/breadcrumbs',
locals: { steps: [['Groupes gestionnaire', gestionnaire_groupe_gestionnaires_path],
["#{@groupe_gestionnaire.name.truncate_words(10)}", gestionnaire_groupe_gestionnaire_path(@groupe_gestionnaire)],
['Arborescence']], preview: false }
.fr-container
%h1 Arborescence de « #{@groupe_gestionnaire.name} »
.fr-mt-4w
%ul
- @tree_structure.each do |parent, children|
%li
= render(GroupeGestionnaire::GroupeGestionnaireTreeStructures::TreeStructureComponent.new(parent: parent, children: children))