feedback review - remove unused class and simplify method

This commit is contained in:
Lisa Durand 2023-11-06 11:22:09 +01:00
parent 1de9130ab5
commit be8303f1c4
2 changed files with 2 additions and 2 deletions

View file

@ -316,7 +316,7 @@ module Administrateurs
end end
def close def close
@published_procedures = current_administrateur.procedures.publiees.map { |p| ["#{p.libelle} (#{p.id})", p.id] }.to_h @published_procedures = current_administrateur.procedures.publiees.to_h { |p| ["#{p.libelle} (#{p.id})", p.id] }
end end
def allow_expert_review def allow_expert_review

View file

@ -10,7 +10,7 @@
%p= t('administrateurs.procedures.close.replacement_procedure_title') %p= t('administrateurs.procedures.close.replacement_procedure_title')
= form_tag admin_procedure_archive_path(@procedure), method: :put, class: "form" do = form_tag admin_procedure_archive_path(@procedure), method: :put do
- if @published_procedures.present? - if @published_procedures.present?
.fr-select-group .fr-select-group
= label_tag :new_procedure, class: 'fr-label' do = label_tag :new_procedure, class: 'fr-label' do