Fix(procedure library): replace infinite list by a basic search
This commit is contained in:
parent
14f67306fd
commit
369141c7f7
9 changed files with 67 additions and 18 deletions
|
@ -41,19 +41,4 @@
|
|||
%h2.header-section
|
||||
Créer une nouvelle démarche à partir d’une démarche existante
|
||||
|
||||
%p.notice
|
||||
Pour rechercher dans cette liste, utilisez la fonction "Recherche" de votre navigateur (CTRL+F ou command+F)
|
||||
|
||||
%table.table.vertical.procedure-library-list
|
||||
- @grouped_procedures.each do |_, procedures|
|
||||
%tr
|
||||
%th
|
||||
= procedures.first.organisation_name
|
||||
- procedures.sort_by(&:id).each do |procedure|
|
||||
%tr
|
||||
%td
|
||||
= procedure.libelle
|
||||
%td.flex
|
||||
= link_to('Consulter', apercu_admin_procedure_path(id: procedure.id), target: "_blank", rel: "noopener", class: 'button small')
|
||||
= link_to('Cloner', admin_procedure_clone_path(procedure.id, from_new_from_existing: true), 'data-method' => :put, class: 'button small primary')
|
||||
= link_to('Contacter', "mailto:#{procedure.administrateurs.map(&:email) * ","}", class: 'button small')
|
||||
= render Procedure::SearchComponent.new(grouped_procedures: @grouped_procedures)
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
= turbo_stream.replace 'procedure-results' do
|
||||
= render Procedure::ResultsComponent.new(grouped_procedures: @grouped_procedures)
|
Loading…
Add table
Add a link
Reference in a new issue