[fix #2612] Admin: add missing steps to admin UI
This commit is contained in:
parent
8ca7eb1c54
commit
a197285742
6 changed files with 43 additions and 6 deletions
|
@ -362,6 +362,20 @@ class Procedure < ApplicationRecord
|
|||
end
|
||||
end
|
||||
|
||||
def missing_steps
|
||||
result = []
|
||||
|
||||
if service.nil?
|
||||
result << :service
|
||||
end
|
||||
|
||||
if gestionnaires.empty?
|
||||
result << :instructeurs
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def claim_path_ownership!(path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue