feedback review - remove unused class and simplify method
This commit is contained in:
parent
1de9130ab5
commit
be8303f1c4
2 changed files with 2 additions and 2 deletions
|
@ -316,7 +316,7 @@ module Administrateurs
|
|||
end
|
||||
|
||||
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
|
||||
|
||||
def allow_expert_review
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
%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?
|
||||
.fr-select-group
|
||||
= label_tag :new_procedure, class: 'fr-label' do
|
||||
|
|
Loading…
Reference in a new issue